| /optee_os_MISRA/arm_core/ldelf_hex.c |
|
4: |
Declaration of object 'ldelf_data' does not precede its definition |
MISRAC2012-RULE_8_4-a-2 |
|
4: |
More than 32767 bytes in an object: 32768 |
MISRAC2012-RULE_1_1-a-2 |
|
4: |
The 'ldelf_data' object has incompatible declarations in other translation units |
MISRAC2012-RULE_8_3-c-2 |
|
4: |
The array of type 'const uint8_t [32768]' shall not be partially initialized |
MISRAC2012-RULE_9_3-a-2 |
|
3927: |
Declaration of object 'ldelf_code_size' does not precede its definition |
MISRAC2012-RULE_8_4-a-2 |
|
3928: |
Declaration of object 'ldelf_data_size' does not precede its definition |
MISRAC2012-RULE_8_4-a-2 |
|
3929: |
Declaration of object 'ldelf_entry' does not precede its definition |
MISRAC2012-RULE_8_4-a-2 |
|
3929: |
The 'ldelf_entry' object has incompatible declarations in other translation units |
MISRAC2012-RULE_8_3-c-2 |
| /optee_os_MISRA/arm_core/ta_pub_key.c |
|
4: |
Declaration of object 'ta_pub_key_exponent' does not precede its definition |
MISRAC2012-RULE_8_4-a-2 |
|
6: |
Declaration of object 'ta_pub_key_modulus' does not precede its definition |
MISRAC2012-RULE_8_4-a-2 |
|
40: |
Declaration of object 'ta_pub_key_modulus_size' does not precede its definition |
MISRAC2012-RULE_8_4-a-2 |
| /optee_os_MISRA/ext/arch/arm/auxval.c |
|
8: |
Reserved name '__getauxval' used |
MISRAC2012-RULE_21_2-a-2 |
|
9: |
Parameter 'type' is not used in function '__getauxval' |
MISRAC2012-RULE_2_7-a-4 |
|
9: |
Reserved name '__getauxval' used |
MISRAC2012-RULE_21_2-a-2 |
| /optee_os_MISRA/ext/consttime_memcmp.c |
|
37: |
Pointer to void type should not be converted to pointer to object type 'const unsigned char *' |
MISRAC2012-RULE_11_5-a-4 |
|
38: |
Pointer to void type should not be converted to pointer to object type 'const unsigned char *' |
MISRAC2012-RULE_11_5-a-4 |
|
41: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
43: |
Disallowed comma operator is used in function 'consttime_memcmp' |
MISRAC2012-RULE_12_3-a-4 |
|
43: |
Parameter 'nb' is modified in function 'consttime_memcmp' |
MISRAC2012-RULE_17_8-a-4 |
|
43: |
The '++' operator should cause the only side effect in an expression |
MISRAC2012-RULE_13_3-a-4 |
|
43: |
The '++' operator should cause the only side effect in an expression |
MISRAC2012-RULE_13_3-a-4 |
|
43: |
The third clause of a 'for' statement should not contain a comma operator |
MISRAC2012-RULE_14_2-d-2 |
|
50: |
Composite expression with 'unsigned' essential type category shall not be cast to different essential type category 'signed' |
MISRAC2012-RULE_10_8-a-2 |
|
50: |
Composite expression with 'unsigned' essential type category shall not be cast to different essential type category 'signed' |
MISRAC2012-RULE_10_8-a-2 |
| /optee_os_MISRA/ext/include/atomic.h |
|
7: |
Do not use reserved identifiers : __ATOMIC_H |
MISRAC2012-RULE_21_1-a-2 |
|
12: |
The 'atomic_inc32' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
13: |
The 'atomic_dec32' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
15: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
15: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
16: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
26: |
Pass parameter "p" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
26: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
26: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
28: |
The expression of the 'essentially unsigned' type is returned from function 'atomic_load_int' with the 'essentially signed'
type
|
MISRAC2012-RULE_10_3-b-2 |
|
31: |
Pass parameter "p" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
31: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
31: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
33: |
The expression of the 'essentially unsigned' type is returned from function 'atomic_load_short' with the 'essentially signed'
type
|
MISRAC2012-RULE_10_3-b-2 |
|
36: |
Pass parameter "p" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
36: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
36: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
46: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
46: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
48: |
The argument number '2' ('essentially signed' type) is passed to the function '__atomic_store_4' as a parameter with the 'essentially
unsigned' type
|
MISRAC2012-RULE_10_3-b-2 |
|
51: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
51: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
53: |
The argument number '2' ('essentially signed' type) is passed to the function '__atomic_store_2' as a parameter with the 'essentially
unsigned' type
|
MISRAC2012-RULE_10_3-b-2 |
|
56: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
56: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
| /optee_os_MISRA/ext/include/bitstring.h |
|
37: |
Do not use reserved identifiers : _SYS_BITSTRING_H_ |
MISRAC2012-RULE_21_1-a-2 |
|
39: |
Typedef name 'bitstr_t' does not contain any digits indicating the size |
MISRAC2012-DIR_4_6-a-4 |
|
39: |
Use type from stdint.h instead of declaring your own type 'bitstr_t' |
MISRAC2012-DIR_4_6-c-4 |
|
43: |
Do not define function-like macro: _bit_byte |
MISRAC2012-DIR_4_9-a-4 |
|
43: |
Do not use reserved identifiers : _bit_byte |
MISRAC2012-RULE_21_1-a-2 |
|
47: |
Do not define function-like macro: _bit_mask |
MISRAC2012-DIR_4_9-a-4 |
|
47: |
Do not use reserved identifiers : _bit_mask |
MISRAC2012-RULE_21_1-a-2 |
|
52: |
Do not define function-like macro: bitstr_size |
MISRAC2012-DIR_4_9-a-4 |
|
56: |
Do not define function-like macro: bit_alloc |
MISRAC2012-DIR_4_9-a-4 |
|
60: |
Do not define function-like macro: bit_decl |
MISRAC2012-DIR_4_9-a-4 |
|
64: |
Do not define function-like macro: bit_test |
MISRAC2012-DIR_4_9-a-4 |
|
68: |
Do not define function-like macro: bit_set |
MISRAC2012-DIR_4_9-a-4 |
|
72: |
Do not define function-like macro: bit_clear |
MISRAC2012-DIR_4_9-a-4 |
|
76: |
Do not define function-like macro: bit_nclear |
MISRAC2012-DIR_4_9-a-4 |
|
93: |
Do not define function-like macro: bit_nset |
MISRAC2012-DIR_4_9-a-4 |
|
110: |
Do not define function-like macro: bit_ffc |
MISRAC2012-DIR_4_9-a-4 |
|
123: |
Each instance of parameter: 'nbits' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
129: |
Do not define function-like macro: bit_ffs |
MISRAC2012-DIR_4_9-a-4 |
|
142: |
Each instance of parameter: 'nbits' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
| /optee_os_MISRA/ext/include/compiler.h |
|
18: |
Do not use reserved identifiers : __deprecated |
MISRAC2012-RULE_21_1-a-2 |
|
20: |
Do not use reserved identifiers : __packed |
MISRAC2012-RULE_21_1-a-2 |
|
22: |
Do not use reserved identifiers : __weak |
MISRAC2012-RULE_21_1-a-2 |
|
24: |
Do not use reserved identifiers : __noreturn |
MISRAC2012-RULE_21_1-a-2 |
|
26: |
Do not use reserved identifiers : __pure |
MISRAC2012-RULE_21_1-a-2 |
|
27: |
Do not define function-like macro: __aligned |
MISRAC2012-DIR_4_9-a-4 |
|
27: |
Do not use reserved identifiers : __aligned |
MISRAC2012-RULE_21_1-a-2 |
|
28: |
Do not define function-like macro: __printf |
MISRAC2012-DIR_4_9-a-4 |
|
28: |
Do not use reserved identifiers : __printf |
MISRAC2012-RULE_21_1-a-2 |
|
28: |
Each instance of parameter: 'a' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
28: |
Each instance of parameter: 'b' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
29: |
Do not use reserved identifiers : __noinline |
MISRAC2012-RULE_21_1-a-2 |
|
30: |
Do not use reserved identifiers : __attr_const |
MISRAC2012-RULE_21_1-a-2 |
|
32: |
Do not use reserved identifiers : __unused |
MISRAC2012-RULE_21_1-a-2 |
|
34: |
Do not use reserved identifiers : __maybe_unused |
MISRAC2012-RULE_21_1-a-2 |
|
36: |
Do not use reserved identifiers : __used |
MISRAC2012-RULE_21_1-a-2 |
|
38: |
Do not use reserved identifiers : __must_check |
MISRAC2012-RULE_21_1-a-2 |
|
39: |
Do not use reserved identifiers : __cold |
MISRAC2012-RULE_21_1-a-2 |
|
40: |
Do not define function-like macro: __section |
MISRAC2012-DIR_4_9-a-4 |
|
40: |
Do not use reserved identifiers : __section |
MISRAC2012-RULE_21_1-a-2 |
|
41: |
Do not use reserved identifiers : __data |
MISRAC2012-RULE_21_1-a-2 |
|
42: |
Do not use reserved identifiers : __bss |
MISRAC2012-RULE_21_1-a-2 |
|
44: |
Do not use reserved identifiers : __SECTION_FLAGS_RODATA |
MISRAC2012-RULE_21_1-a-2 |
|
46: |
Do not embed "//" comment marker inside C-style comment: /* * Override sections flags/type generated by the C compiler to
make sure they * are: "a",%progbits (thus creating an allocatable, non-writeable, non- * executable data section). * The trailing
'//' comments out the flags generated by the compiler. * This avoids a harmless warning with GCC. */
|
MISRAC2012-RULE_3_1-b-2 |
|
53: |
Do not use reserved identifiers : __SECTION_FLAGS_RODATA |
MISRAC2012-RULE_21_1-a-2 |
|
55: |
Do not use reserved identifiers : __rodata |
MISRAC2012-RULE_21_1-a-2 |
|
56: |
Do not use reserved identifiers : __rodata_unpaged |
MISRAC2012-RULE_21_1-a-2 |
|
58: |
Do not use reserved identifiers : __nex_bss |
MISRAC2012-RULE_21_1-a-2 |
|
59: |
Do not use reserved identifiers : __nex_data |
MISRAC2012-RULE_21_1-a-2 |
|
61: |
Do not use reserved identifiers : __nex_bss |
MISRAC2012-RULE_21_1-a-2 |
|
62: |
Do not use reserved identifiers : __nex_data |
MISRAC2012-RULE_21_1-a-2 |
|
64: |
Do not use reserved identifiers : __noprof |
MISRAC2012-RULE_21_1-a-2 |
|
65: |
Do not use reserved identifiers : __nostackcheck |
MISRAC2012-RULE_21_1-a-2 |
|
67: |
Do not define function-like macro: __compiler_bswap64 |
MISRAC2012-DIR_4_9-a-4 |
|
67: |
Do not use reserved identifiers : __compiler_bswap64 |
MISRAC2012-RULE_21_1-a-2 |
|
68: |
Do not define function-like macro: __compiler_bswap32 |
MISRAC2012-DIR_4_9-a-4 |
|
68: |
Do not use reserved identifiers : __compiler_bswap32 |
MISRAC2012-RULE_21_1-a-2 |
|
69: |
Do not define function-like macro: __compiler_bswap16 |
MISRAC2012-DIR_4_9-a-4 |
|
69: |
Do not use reserved identifiers : __compiler_bswap16 |
MISRAC2012-RULE_21_1-a-2 |
|
71: |
Do not use reserved identifiers : __GCC_VERSION |
MISRAC2012-RULE_21_1-a-2 |
|
75: |
Do not use reserved identifiers : __HAVE_BUILTIN_OVERFLOW |
MISRAC2012-RULE_21_1-a-2 |
|
79: |
Do not define function-like macro: __compiler_add_overflow |
MISRAC2012-DIR_4_9-a-4 |
|
79: |
Do not use reserved identifiers : __compiler_add_overflow |
MISRAC2012-RULE_21_1-a-2 |
|
82: |
Do not define function-like macro: __compiler_sub_overflow |
MISRAC2012-DIR_4_9-a-4 |
|
82: |
Do not use reserved identifiers : __compiler_sub_overflow |
MISRAC2012-RULE_21_1-a-2 |
|
85: |
Do not define function-like macro: __compiler_mul_overflow |
MISRAC2012-DIR_4_9-a-4 |
|
85: |
Do not use reserved identifiers : __compiler_mul_overflow |
MISRAC2012-RULE_21_1-a-2 |
|
93: |
Do not define function-like macro: __INTOF_ASSIGN |
MISRAC2012-DIR_4_9-a-4 |
|
93: |
Do not use reserved identifiers : __INTOF_ASSIGN |
MISRAC2012-RULE_21_1-a-2 |
|
101: |
Do not define function-like macro: __INTOF_ADD |
MISRAC2012-DIR_4_9-a-4 |
|
101: |
Do not use reserved identifiers : __INTOF_ADD |
MISRAC2012-RULE_21_1-a-2 |
|
139: |
Do not define function-like macro: __INTOF_SUB |
MISRAC2012-DIR_4_9-a-4 |
|
139: |
Do not use reserved identifiers : __INTOF_SUB |
MISRAC2012-RULE_21_1-a-2 |
|
140: |
Each instance of parameter: 'a' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
141: |
Each instance of parameter: 'b' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
208: |
Do not use reserved identifiers : __intof_mul_negate |
MISRAC2012-RULE_21_1-a-2 |
|
209: |
Do not use reserved identifiers : __intof_mul_hshift |
MISRAC2012-RULE_21_1-a-2 |
|
210: |
Do not use reserved identifiers : __intof_mul_hmask |
MISRAC2012-RULE_21_1-a-2 |
|
211: |
Do not use reserved identifiers : __intof_mul_a0 |
MISRAC2012-RULE_21_1-a-2 |
|
212: |
Do not use reserved identifiers : __intof_mul_b0 |
MISRAC2012-RULE_21_1-a-2 |
|
213: |
Do not use reserved identifiers : __intof_mul_a1 |
MISRAC2012-RULE_21_1-a-2 |
|
214: |
Do not use reserved identifiers : __intof_mul_b1 |
MISRAC2012-RULE_21_1-a-2 |
|
215: |
Do not use reserved identifiers : __intof_mul_t |
MISRAC2012-RULE_21_1-a-2 |
|
218: |
Do not define function-like macro: __INTOF_MUL |
MISRAC2012-DIR_4_9-a-4 |
|
218: |
Do not use reserved identifiers : __INTOF_MUL |
MISRAC2012-RULE_21_1-a-2 |
|
236: |
Do not define function-like macro: __compiler_add_overflow |
MISRAC2012-DIR_4_9-a-4 |
|
236: |
Do not use reserved identifiers : __compiler_add_overflow |
MISRAC2012-RULE_21_1-a-2 |
|
237: |
Do not define function-like macro: __compiler_sub_overflow |
MISRAC2012-DIR_4_9-a-4 |
|
237: |
Do not use reserved identifiers : __compiler_sub_overflow |
MISRAC2012-RULE_21_1-a-2 |
|
238: |
Do not define function-like macro: __compiler_mul_overflow |
MISRAC2012-DIR_4_9-a-4 |
|
238: |
Do not use reserved identifiers : __compiler_mul_overflow |
MISRAC2012-RULE_21_1-a-2 |
|
242: |
Do not define function-like macro: __compiler_compare_and_swap |
MISRAC2012-DIR_4_9-a-4 |
|
242: |
Do not use reserved identifiers : __compiler_compare_and_swap |
MISRAC2012-RULE_21_1-a-2 |
|
246: |
Do not define function-like macro: __compiler_atomic_load |
MISRAC2012-DIR_4_9-a-4 |
|
246: |
Do not use reserved identifiers : __compiler_atomic_load |
MISRAC2012-RULE_21_1-a-2 |
|
247: |
Do not define function-like macro: __compiler_atomic_store |
MISRAC2012-DIR_4_9-a-4 |
|
247: |
Do not use reserved identifiers : __compiler_atomic_store |
MISRAC2012-RULE_21_1-a-2 |
|
250: |
Do not define function-like macro: barrier |
MISRAC2012-DIR_4_9-a-4 |
|
253: |
Do not define function-like macro: __has_attribute |
MISRAC2012-DIR_4_9-a-4 |
|
253: |
Do not use reserved identifiers : __has_attribute |
MISRAC2012-RULE_21_1-a-2 |
|
256: |
Macro might be not defined: __fallthrough__ |
MISRAC2012-RULE_20_9-b-2 |
| /optee_os_MISRA/ext/include/config.h |
|
7: |
Do not use reserved identifiers : __CONFIG_H_ |
MISRAC2012-RULE_21_1-a-2 |
|
9: |
Section of code should not be 'commented out' |
MISRAC2012-DIR_4_4-a-4 |
|
30: |
Do not define function-like macro: IS_ENABLED |
MISRAC2012-DIR_4_9-a-4 |
|
37: |
Do not define function-like macro: Z_IS_ENABLED1 |
MISRAC2012-DIR_4_9-a-4 |
|
37: |
Preprocessor operator ## should not be used |
MISRAC2012-RULE_20_10-a-4 |
|
46: |
Do not use reserved identifiers : _XXXX1 |
MISRAC2012-RULE_21_1-a-2 |
|
54: |
Do not define function-like macro: Z_IS_ENABLED2 |
MISRAC2012-DIR_4_9-a-4 |
|
60: |
Do not define function-like macro: Z_IS_ENABLED3 |
MISRAC2012-DIR_4_9-a-4 |
|
60: |
Each instance of parameter: 'val' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
| /optee_os_MISRA/ext/include/confine_array_index.h |
|
39: |
Section of code should not be 'commented out' |
MISRAC2012-DIR_4_4-a-4 |
|
70: |
Do not mix C/C++ code and assembler code in function 'confine_array_index' |
MISRAC2012-DIR_4_3-a-2 |
| /optee_os_MISRA/ext/include/mempool.h |
|
7: |
Do not use reserved identifiers : __MEMPOOL_H |
MISRAC2012-RULE_21_1-a-2 |
|
37: |
The 'mempool_default' object has no definition |
MISRAC2012-RULE_8_6-a-2 |
| /optee_os_MISRA/ext/include/printk.h |
|
18: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
20: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
20: |
The identifier 'va_list' shall not be used |
MISRAC2012-RULE_17_1-a-2 |
|
20: |
The identifier 'va_list' shall not be used |
MISRAC2012-RULE_17_1-b-2 |
|
23: |
Reserved name '__vsnprintf' used |
MISRAC2012-RULE_21_2-a-2 |
|
23: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
23: |
The identifier 'va_list' shall not be used |
MISRAC2012-RULE_17_1-a-2 |
|
23: |
The identifier 'va_list' shall not be used |
MISRAC2012-RULE_17_1-b-2 |
|
23: |
The names of the identifiers '__vsnprintf' and 'vsnprintf' (line: 21 in the 'stdio.h' file) differ only in the presence/absence
of the underscore character
|
MISRAC2012-DIR_4_5-a-4 |
|
25: |
Reserved name '__vsprintf' used |
MISRAC2012-RULE_21_2-a-2 |
|
25: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
25: |
The identifier 'va_list' shall not be used |
MISRAC2012-RULE_17_1-a-2 |
|
25: |
The identifier 'va_list' shall not be used |
MISRAC2012-RULE_17_1-b-2 |
| /optee_os_MISRA/ext/include/speculation_barrier.h |
|
1: |
Multiple include guard should appear as first #ifndef or #if preprocessor directive |
MISRAC2012-DIR_4_10-a-2 |
|
30: |
Do not define function-like macro: load_no_speculate |
MISRAC2012-DIR_4_9-a-4 |
|
33: |
Each instance of parameter: '__high' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
33: |
Each instance of parameter: '__low' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
37: |
Do not define function-like macro: load_no_speculate_fail |
MISRAC2012-DIR_4_9-a-4 |
|
40: |
Each instance of parameter: '__high' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
40: |
Each instance of parameter: '__low' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
41: |
Each instance of parameter: '__failval' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
44: |
Do not define function-like macro: load_no_speculate_cmp |
MISRAC2012-DIR_4_9-a-4 |
|
45: |
Each instance of parameter: '__cmpptr' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
45: |
Each instance of parameter: '__failval' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
45: |
Each instance of parameter: '__high' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
45: |
Each instance of parameter: '__low' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
45: |
Each instance of parameter: '__ptr' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
50: |
Do not use reserved identifiers : __UNUSED |
MISRAC2012-RULE_21_1-a-2 |
|
52: |
Do not use reserved identifiers : __UNUSED |
MISRAC2012-RULE_21_1-a-2 |
|
57: |
Do not define function-like macro: __load_no_speculate1 |
MISRAC2012-DIR_4_9-a-4 |
|
57: |
Do not use reserved identifiers : __load_no_speculate1 |
MISRAC2012-RULE_21_1-a-2 |
|
70: |
Each instance of parameter: '__high' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
71: |
Each instance of parameter: '__high' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
122: |
Do not define function-like macro: __load_no_speculate |
MISRAC2012-DIR_4_9-a-4 |
|
122: |
Do not use reserved identifiers : __load_no_speculate |
MISRAC2012-RULE_21_1-a-2 |
|
128: |
Each instance of parameter: '__high' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
128: |
Each instance of parameter: '__low' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
128: |
Each instance of parameter: '__ptr' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
129: |
Each instance of parameter: '__cmpptr' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
129: |
Each instance of parameter: '__failval' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
132: |
Each instance of parameter: '__high' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
132: |
Each instance of parameter: '__low' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
132: |
Each instance of parameter: '__ptr' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
133: |
Each instance of parameter: '__cmpptr' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
133: |
Each instance of parameter: '__failval' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
136: |
Each instance of parameter: '__high' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
136: |
Each instance of parameter: '__low' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
136: |
Each instance of parameter: '__ptr' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
137: |
Each instance of parameter: '__cmpptr' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
137: |
Each instance of parameter: '__failval' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
140: |
Each instance of parameter: '__high' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
140: |
Each instance of parameter: '__low' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
140: |
Each instance of parameter: '__ptr' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
141: |
Each instance of parameter: '__cmpptr' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
141: |
Each instance of parameter: '__failval' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
154: |
Do not define function-like macro: load_no_speculate |
MISRAC2012-DIR_4_9-a-4 |
|
157: |
Each instance of parameter: '__high' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
157: |
Each instance of parameter: '__low' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
160: |
Do not define function-like macro: load_no_speculate_fail |
MISRAC2012-DIR_4_9-a-4 |
|
163: |
Each instance of parameter: '__high' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
163: |
Each instance of parameter: '__low' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
164: |
Each instance of parameter: '__failval' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
167: |
Do not define function-like macro: load_no_speculate_cmp |
MISRAC2012-DIR_4_9-a-4 |
|
168: |
Each instance of parameter: '__cmpptr' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
168: |
Each instance of parameter: '__failval' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
168: |
Each instance of parameter: '__high' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
168: |
Each instance of parameter: '__low' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
168: |
Each instance of parameter: '__ptr' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
175: |
Do not define function-like macro: __load_no_speculate1 |
MISRAC2012-DIR_4_9-a-4 |
|
175: |
Do not use reserved identifiers : __load_no_speculate1 |
MISRAC2012-RULE_21_1-a-2 |
|
186: |
Each instance of parameter: '__high' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
187: |
Each instance of parameter: '__high' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
246: |
Do not define function-like macro: __load_no_speculate2 |
MISRAC2012-DIR_4_9-a-4 |
|
246: |
Do not use reserved identifiers : __load_no_speculate2 |
MISRAC2012-RULE_21_1-a-2 |
|
257: |
Each instance of parameter: '__high' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
258: |
Each instance of parameter: '__high' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
325: |
Do not define function-like macro: __load_no_speculate1 |
MISRAC2012-DIR_4_9-a-4 |
|
325: |
Do not use reserved identifiers : __load_no_speculate1 |
MISRAC2012-RULE_21_1-a-2 |
|
336: |
Each instance of parameter: '__high' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
337: |
Each instance of parameter: '__high' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
387: |
Do not define function-like macro: __load_no_speculate2 |
MISRAC2012-DIR_4_9-a-4 |
|
387: |
Do not use reserved identifiers : __load_no_speculate2 |
MISRAC2012-RULE_21_1-a-2 |
|
398: |
Each instance of parameter: '__high' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
399: |
Each instance of parameter: '__high' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
456: |
Do not define function-like macro: __load_no_speculate |
MISRAC2012-DIR_4_9-a-4 |
|
456: |
Do not use reserved identifiers : __load_no_speculate |
MISRAC2012-RULE_21_1-a-2 |
|
462: |
Each instance of parameter: '__high' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
462: |
Each instance of parameter: '__low' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
462: |
Each instance of parameter: '__ptr' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
463: |
Each instance of parameter: '__cmpptr' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
463: |
Each instance of parameter: '__failval' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
466: |
Each instance of parameter: '__high' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
466: |
Each instance of parameter: '__low' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
466: |
Each instance of parameter: '__ptr' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
467: |
Each instance of parameter: '__cmpptr' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
467: |
Each instance of parameter: '__failval' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
470: |
Each instance of parameter: '__high' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
470: |
Each instance of parameter: '__low' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
470: |
Each instance of parameter: '__ptr' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
471: |
Each instance of parameter: '__cmpptr' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
471: |
Each instance of parameter: '__failval' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
474: |
Each instance of parameter: '__high' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
474: |
Each instance of parameter: '__low' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
474: |
Each instance of parameter: '__ptr' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
475: |
Each instance of parameter: '__cmpptr' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
475: |
Each instance of parameter: '__failval' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
488: |
Do not define function-like macro: load_no_speculate |
MISRAC2012-DIR_4_9-a-4 |
|
491: |
Each instance of parameter: '__high' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
491: |
Each instance of parameter: '__low' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
494: |
Do not define function-like macro: load_no_speculate_fail |
MISRAC2012-DIR_4_9-a-4 |
|
497: |
Each instance of parameter: '__high' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
497: |
Each instance of parameter: '__low' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
498: |
Each instance of parameter: '__failval' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
501: |
Do not define function-like macro: load_no_speculate_cmp |
MISRAC2012-DIR_4_9-a-4 |
|
502: |
Each instance of parameter: '__cmpptr' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
502: |
Each instance of parameter: '__failval' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
502: |
Each instance of parameter: '__high' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
502: |
Each instance of parameter: '__low' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
502: |
Each instance of parameter: '__ptr' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
| /optee_os_MISRA/ext/include/string_ext.h |
|
16: |
Section of code should not be 'commented out' |
MISRAC2012-DIR_4_4-a-4 |
|
25: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
28: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
| /optee_os_MISRA/ext/include/trace.h |
|
25: |
'trace_ext_prefix ' array size should be stated explicitly or defined implicitly by initialisation |
MISRAC2012-RULE_8_11-a-4 |
|
27: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
28: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
29: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
33: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
33: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
34: |
The identifier 'va_list' shall not be used |
MISRAC2012-RULE_17_1-a-2 |
|
34: |
The identifier 'va_list' shall not be used |
MISRAC2012-RULE_17_1-b-2 |
|
35: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
35: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
38: |
Do not define function-like macro: trace_printf_helper |
MISRAC2012-DIR_4_9-a-4 |
|
44: |
Do not define function-like macro: MSG |
MISRAC2012-DIR_4_9-a-4 |
|
46: |
Do not define function-like macro: MSG |
MISRAC2012-DIR_4_9-a-4 |
|
51: |
Do not define function-like macro: EMSG |
MISRAC2012-DIR_4_9-a-4 |
|
53: |
Do not define function-like macro: EMSG |
MISRAC2012-DIR_4_9-a-4 |
|
58: |
Do not define function-like macro: IMSG |
MISRAC2012-DIR_4_9-a-4 |
|
60: |
Do not define function-like macro: IMSG |
MISRAC2012-DIR_4_9-a-4 |
|
65: |
Do not define function-like macro: DMSG |
MISRAC2012-DIR_4_9-a-4 |
|
67: |
Do not define function-like macro: DMSG |
MISRAC2012-DIR_4_9-a-4 |
|
72: |
Do not define function-like macro: FMSG |
MISRAC2012-DIR_4_9-a-4 |
|
74: |
Do not define function-like macro: FMSG |
MISRAC2012-DIR_4_9-a-4 |
|
78: |
Do not define function-like macro: INMSG |
MISRAC2012-DIR_4_9-a-4 |
|
80: |
Do not define function-like macro: OUTMSG |
MISRAC2012-DIR_4_9-a-4 |
|
83: |
Do not define function-like macro: OUTRMSG |
MISRAC2012-DIR_4_9-a-4 |
|
85: |
Each instance of parameter: 'r' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
86: |
Each instance of parameter: 'r' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
89: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
89: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
90: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
92: |
Do not define function-like macro: DHEXDUMP |
MISRAC2012-DIR_4_9-a-4 |
|
94: |
Do not define function-like macro: DHEXDUMP |
MISRAC2012-DIR_4_9-a-4 |
|
95: |
Each instance of parameter: 'buf' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
95: |
Each instance of parameter: 'len' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
101: |
Do not define function-like macro: trace_printf_helper_raw |
MISRAC2012-DIR_4_9-a-4 |
|
106: |
Do not define function-like macro: MSG_RAW |
MISRAC2012-DIR_4_9-a-4 |
|
108: |
Do not define function-like macro: MSG_RAW |
MISRAC2012-DIR_4_9-a-4 |
|
113: |
Do not define function-like macro: EMSG_RAW |
MISRAC2012-DIR_4_9-a-4 |
|
115: |
Do not define function-like macro: EMSG_RAW |
MISRAC2012-DIR_4_9-a-4 |
|
120: |
Do not define function-like macro: IMSG_RAW |
MISRAC2012-DIR_4_9-a-4 |
|
122: |
Do not define function-like macro: IMSG_RAW |
MISRAC2012-DIR_4_9-a-4 |
|
127: |
Do not define function-like macro: DMSG_RAW |
MISRAC2012-DIR_4_9-a-4 |
|
129: |
Do not define function-like macro: DMSG_RAW |
MISRAC2012-DIR_4_9-a-4 |
|
134: |
Do not define function-like macro: FMSG_RAW |
MISRAC2012-DIR_4_9-a-4 |
|
136: |
Do not define function-like macro: FMSG_RAW |
MISRAC2012-DIR_4_9-a-4 |
|
140: |
Do not define function-like macro: SMSG |
MISRAC2012-DIR_4_9-a-4 |
|
147: |
Do not define function-like macro: SMSG |
MISRAC2012-DIR_4_9-a-4 |
| /optee_os_MISRA/ext/include/types_ext.h |
|
25: |
Do not use reserved identifiers : __SIZEOF_PADDR__ |
MISRAC2012-RULE_21_1-a-2 |
|
31: |
Do not use reserved identifiers : __SIZEOF_PADDR__ |
MISRAC2012-RULE_21_1-a-2 |
| /optee_os_MISRA/ext/include/util.h |
|
20: |
Do not define function-like macro: MAX |
MISRAC2012-DIR_4_9-a-4 |
|
25: |
Do not define function-like macro: MIN |
MISRAC2012-DIR_4_9-a-4 |
|
30: |
Do not define function-like macro: MAX |
MISRAC2012-DIR_4_9-a-4 |
|
31: |
Do not define function-like macro: MIN |
MISRAC2012-DIR_4_9-a-4 |
|
40: |
Do not define function-like macro: MAX_UNSAFE |
MISRAC2012-DIR_4_9-a-4 |
|
41: |
Do not define function-like macro: MIN_UNSAFE |
MISRAC2012-DIR_4_9-a-4 |
|
44: |
Do not define function-like macro: ARRAY_SIZE |
MISRAC2012-DIR_4_9-a-4 |
|
49: |
Do not define function-like macro: ROUNDUP |
MISRAC2012-DIR_4_9-a-4 |
|
52: |
Do not define function-like macro: ROUNDUP_OVERFLOW |
MISRAC2012-DIR_4_9-a-4 |
|
60: |
Section of code should not be 'commented out' |
MISRAC2012-DIR_4_4-a-4 |
|
68: |
Do not define function-like macro: ROUNDUP_DIV |
MISRAC2012-DIR_4_9-a-4 |
|
76: |
Do not define function-like macro: ROUNDDOWN |
MISRAC2012-DIR_4_9-a-4 |
|
79: |
Do not define function-like macro: UDIV_ROUND_NEAREST |
MISRAC2012-DIR_4_9-a-4 |
|
84: |
Do not define function-like macro: ROUNDUP |
MISRAC2012-DIR_4_9-a-4 |
|
85: |
Do not define function-like macro: ROUNDDOWN |
MISRAC2012-DIR_4_9-a-4 |
|
86: |
Do not define function-like macro: UDIV_ROUND_NEAREST |
MISRAC2012-DIR_4_9-a-4 |
|
90: |
Do not define function-like macro: IS_POWER_OF_TWO |
MISRAC2012-DIR_4_9-a-4 |
|
92: |
Do not define function-like macro: ALIGNMENT_IS_OK |
MISRAC2012-DIR_4_9-a-4 |
|
95: |
Do not define function-like macro: TO_STR |
MISRAC2012-DIR_4_9-a-4 |
|
96: |
Do not define function-like macro: _TO_STR |
MISRAC2012-DIR_4_9-a-4 |
|
96: |
Do not use reserved identifiers : _TO_STR |
MISRAC2012-RULE_21_1-a-2 |
|
96: |
Preprocessor operator # should not be used |
MISRAC2012-RULE_20_10-a-4 |
|
98: |
Do not define function-like macro: CONCAT |
MISRAC2012-DIR_4_9-a-4 |
|
98: |
Each instance of parameter: 'x' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
98: |
Each instance of parameter: 'y' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
99: |
Do not define function-like macro: _CONCAT |
MISRAC2012-DIR_4_9-a-4 |
|
99: |
Do not use reserved identifiers : _CONCAT |
MISRAC2012-RULE_21_1-a-2 |
|
99: |
Preprocessor operator ## should not be used |
MISRAC2012-RULE_20_10-a-4 |
|
101: |
Do not define function-like macro: container_of |
MISRAC2012-DIR_4_9-a-4 |
|
103: |
Each instance of parameter: 'type' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
104: |
Each instance of parameter: 'member' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
104: |
Each instance of parameter: 'type' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
104: |
Each instance of parameter: 'type' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
107: |
Do not define function-like macro: MEMBER_SIZE |
MISRAC2012-DIR_4_9-a-4 |
|
107: |
Each instance of parameter: 'type' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
110: |
Do not define function-like macro: BIT32 |
MISRAC2012-DIR_4_9-a-4 |
|
111: |
Do not define function-like macro: BIT64 |
MISRAC2012-DIR_4_9-a-4 |
|
112: |
Do not define function-like macro: SHIFT_U32 |
MISRAC2012-DIR_4_9-a-4 |
|
113: |
Do not define function-like macro: SHIFT_U64 |
MISRAC2012-DIR_4_9-a-4 |
|
115: |
Do not define function-like macro: BIT32 |
MISRAC2012-DIR_4_9-a-4 |
|
116: |
Do not define function-like macro: BIT64 |
MISRAC2012-DIR_4_9-a-4 |
|
117: |
Do not define function-like macro: SHIFT_U32 |
MISRAC2012-DIR_4_9-a-4 |
|
118: |
Do not define function-like macro: SHIFT_U64 |
MISRAC2012-DIR_4_9-a-4 |
|
120: |
Do not define function-like macro: BIT |
MISRAC2012-DIR_4_9-a-4 |
|
127: |
Do not define function-like macro: GENMASK_32 |
MISRAC2012-DIR_4_9-a-4 |
|
130: |
Do not define function-like macro: GENMASK_64 |
MISRAC2012-DIR_4_9-a-4 |
|
140: |
Do not define function-like macro: ADD_OVERFLOW |
MISRAC2012-DIR_4_9-a-4 |
|
141: |
Do not define function-like macro: SUB_OVERFLOW |
MISRAC2012-DIR_4_9-a-4 |
|
142: |
Do not define function-like macro: MUL_OVERFLOW |
MISRAC2012-DIR_4_9-a-4 |
|
145: |
Do not define function-like macro: CMP_TRILEAN |
MISRAC2012-DIR_4_9-a-4 |
|
156: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
162: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with a narrower essential type (4 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
163: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with a narrower essential type (4 byte) |
MISRAC2012-RULE_10_3-a-2 |
| /optee_os_MISRA/ext/mempool.c |
|
73: |
Parameter 'pool' is not used in function 'get_pool' |
MISRAC2012-RULE_2_7-a-4 |
|
73: |
Pass parameter "pool" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
80: |
Parameter 'pool' is not used in function 'put_pool' |
MISRAC2012-RULE_2_7-a-4 |
|
80: |
Pass parameter "pool" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
99: |
Parameter 'release_mem' is not used in function 'mempool_alloc_pool' |
MISRAC2012-RULE_2_7-a-4 |
|
101: |
'calloc' function should not be used |
MISRAC2012-RULE_21_3-a-2 |
|
101: |
'calloc' function should not be used |
MISRAC2012-DIR_4_12-a-2 |
|
101: |
Pointer to void type should not be converted to pointer to object type 'struct mempool *' |
MISRAC2012-RULE_11_5-a-4 |
|
103: |
Do not use the '_Alignof' operator |
MISRAC2012-RULE_1_4-h-2 |
|
103: |
Do not use the '_Alignof' operator |
MISRAC2012-RULE_1_4-h-2 |
|
103: |
Missing statement or comment before terminating 'break' |
MISRAC2012-RULE_16_4-b-2 |
|
103: |
Missing statement or comment before terminating 'break' |
MISRAC2012-RULE_16_1-f-2 |
|
103: |
The 'switch' statement contains less than two switch-clauses |
MISRAC2012-RULE_16_6-a-2 |
|
103: |
The 'switch' statement contains less than two switch-clauses |
MISRAC2012-RULE_16_1-h-2 |
|
104: |
Do not use the '_Alignof' operator |
MISRAC2012-RULE_1_4-h-2 |
|
104: |
Pointer to void type should not be converted to arithmetic type 'unsigned long' |
MISRAC2012-RULE_11_6-a-2 |
|
104: |
Potential macro 'MEMPOOL_ALIGN' used as '1' parameter of potential macro 'assert' |
MISRAC2012-RULE_20_12-a-2 |
|
106: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
108: |
Pointer to void type should not be converted to arithmetic type 'unsigned long' |
MISRAC2012-RULE_11_6-a-2 |
|
130: |
Integral type 'unsigned long' should not be converted to pointer to object type 'struct mempool_item *' |
MISRAC2012-RULE_11_4-a-4 |
|
134: |
Do not use the '_Alignof' operator |
MISRAC2012-RULE_1_4-h-2 |
|
136: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
139: |
Parameter 'size' is modified in function 'mempool_alloc' |
MISRAC2012-RULE_17_8-a-4 |
|
140: |
Do not use the '_Alignof' operator |
MISRAC2012-RULE_1_4-h-2 |
|
140: |
Parameter 'size' is modified in function 'mempool_alloc' |
MISRAC2012-RULE_17_8-a-4 |
|
141: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
142: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
144: |
Integral type 'unsigned long' should not be converted to pointer to object type 'struct mempool_item *' |
MISRAC2012-RULE_11_4-a-4 |
|
147: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
148: |
The expression of the 'essentially unsigned' type is assigned to an object with the 'essentially signed' type |
MISRAC2012-RULE_10_3-b-2 |
|
150: |
The expression of the 'essentially unsigned' type is assigned to an object with the 'essentially signed' type |
MISRAC2012-RULE_10_3-b-2 |
|
159: |
The variable 'new_item' used as the left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
176: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
177: |
Unused function's "memset" return value |
MISRAC2012-RULE_17_7-a-2 |
|
192: |
Integral type 'unsigned long' should not be converted to pointer to object type 'struct mempool_item *' |
MISRAC2012-RULE_11_4-a-4 |
|
192: |
Pointer to void type should not be converted to arithmetic type 'unsigned long' |
MISRAC2012-RULE_11_6-a-2 |
|
195: |
Integral type 'unsigned long' should not be converted to pointer to object type 'struct mempool_item *' |
MISRAC2012-RULE_11_4-a-4 |
|
202: |
Integral type 'unsigned long' should not be converted to pointer to object type 'struct mempool_item *' |
MISRAC2012-RULE_11_4-a-4 |
| /optee_os_MISRA/ext/memzero_explicit.c |
|
17: |
Global variable 'memset_func' is being used only in a single function 'memzero_explicit' |
MISRAC2012-RULE_8_9-a-4 |
|
17: |
Names shall be given for all parameters in a function type 'volatile void *(void *, int, size_t)' |
MISRAC2012-RULE_8_2-b-2 |
|
18: |
Names shall be given for all parameters in a function type 'volatile void *(void *, int, size_t)' |
MISRAC2012-RULE_8_2-b-2 |
|
18: |
Pointer to function 'void *(void *, int, size_t)' is cast to pointer to incompatible function 'volatile void *(void *, int,
size_t)'
|
MISRAC2012-RULE_11_1-b-2 |
|
22: |
Unused function value (function called through expression) |
MISRAC2012-RULE_17_7-a-2 |
| /optee_os_MISRA/ext/nex_strdup.c |
|
12: |
'malloc' function should not be used |
MISRAC2012-RULE_21_3-a-2 |
|
12: |
'malloc' function should not be used |
MISRAC2012-DIR_4_12-a-2 |
|
12: |
Pointer to void type should not be converted to pointer to object type 'char *' |
MISRAC2012-RULE_11_5-a-4 |
|
14: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
15: |
Unused function's "memcpy" return value |
MISRAC2012-RULE_17_7-a-2 |
| /optee_os_MISRA/ext/snprintk.c |
|
77: |
An unused macro declaration 'TOCONS' has been found |
MISRAC2012-RULE_2_5-a-4 |
|
78: |
An unused macro declaration 'TOTTY' has been found |
MISRAC2012-RULE_2_5-a-4 |
|
79: |
An unused macro declaration 'TOLOG' has been found |
MISRAC2012-RULE_2_5-a-4 |
|
81: |
An unused macro declaration 'TODDB' has been found |
MISRAC2012-RULE_2_5-a-4 |
|
82: |
An unused macro declaration 'NOLOCK' has been found |
MISRAC2012-RULE_2_5-a-4 |
|
96: |
Do not define function-like macro: __UNCONST |
MISRAC2012-DIR_4_9-a-4 |
|
96: |
Do not use reserved identifiers : __UNCONST |
MISRAC2012-RULE_21_1-a-2 |
|
98: |
Do not define function-like macro: putchar |
MISRAC2012-DIR_4_9-a-4 |
|
98: |
Do not use reserved identifiers : putchar |
MISRAC2012-RULE_21_1-b-2 |
|
98: |
Do not use reserved identifiers : putchar |
MISRAC2012-RULE_21_1-c-2 |
|
102: |
The identifier 'va_list' shall not be used |
MISRAC2012-RULE_17_1-a-2 |
|
102: |
The identifier 'va_list' shall not be used |
MISRAC2012-RULE_17_1-b-2 |
|
104: |
Global variable 'hexdigits' is being used only in a single function 'kprintf' |
MISRAC2012-RULE_8_9-a-4 |
|
105: |
Global variable 'HEXDIGITS' is being used only in a single function 'kprintf' |
MISRAC2012-RULE_8_9-a-4 |
|
105: |
The names of the identifiers 'HEXDIGITS' and 'hexdigits' (line: 104 in the 'snprintk.c' file) differ only in capitalization |
MISRAC2012-DIR_4_5-a-4 |
|
112: |
Identifiers given in declaration of 'snprintk' function (file: 'printk.h', line: '18') are: 'str' not: 'bf' |
MISRAC2012-RULE_8_3-b-2 |
|
115: |
The identifier 'va_list' shall not be used |
MISRAC2012-RULE_17_1-a-2 |
|
115: |
The identifier 'va_list' shall not be used |
MISRAC2012-RULE_17_1-b-2 |
|
117: |
The identifier 'va_start' shall not be used |
MISRAC2012-RULE_17_1-a-2 |
|
117: |
The identifier 'va_start' shall not be used |
MISRAC2012-RULE_17_1-b-2 |
|
118: |
Function "vsnprintk" is called recursively |
MISRAC2012-RULE_17_2-a-2 |
|
119: |
The identifier 'va_end' shall not be used |
MISRAC2012-RULE_17_1-a-2 |
|
119: |
The identifier 'va_end' shall not be used |
MISRAC2012-RULE_17_1-b-2 |
|
129: |
Identifiers given in declaration of 'vsnprintk' function (file: 'printk.h', line: '20') are: 'str' not: 'bf' |
MISRAC2012-RULE_8_3-b-2 |
|
129: |
The identifier 'va_list' shall not be used |
MISRAC2012-RULE_17_1-a-2 |
|
129: |
The identifier 'va_list' shall not be used |
MISRAC2012-RULE_17_1-b-2 |
|
131: |
Function "__vsnprintf" is called recursively |
MISRAC2012-RULE_17_2-a-2 |
|
135: |
Identifiers given in declaration of '__vsnprintf' function (file: 'printk.h', line: '23') are: 'str' not: 'bf' |
MISRAC2012-RULE_8_3-b-2 |
|
135: |
Reserved name '__vsnprintf' used |
MISRAC2012-RULE_21_2-a-2 |
|
135: |
The identifier 'va_list' shall not be used |
MISRAC2012-RULE_17_1-a-2 |
|
135: |
The identifier 'va_list' shall not be used |
MISRAC2012-RULE_17_1-b-2 |
|
142: |
The variable 'bf' used as the left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
143: |
Function "kprintf" is called recursively |
MISRAC2012-RULE_17_2-a-2 |
|
144: |
The operands of a logical '&&' in function '__vsnprintf' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
154: |
Reserved name '__vsprintf' used |
MISRAC2012-RULE_21_2-a-2 |
|
154: |
The identifier 'va_list' shall not be used |
MISRAC2012-RULE_17_1-a-2 |
|
154: |
The identifier 'va_list' shall not be used |
MISRAC2012-RULE_17_1-b-2 |
|
170: |
Do not define function-like macro: to_digit |
MISRAC2012-DIR_4_9-a-4 |
|
171: |
Do not define function-like macro: is_digit |
MISRAC2012-DIR_4_9-a-4 |
|
172: |
Do not define function-like macro: to_char |
MISRAC2012-DIR_4_9-a-4 |
|
180: |
An unused macro declaration 'LONGDBL' has been found |
MISRAC2012-RULE_2_5-a-4 |
|
188: |
An unused macro declaration 'FPT' has been found |
MISRAC2012-RULE_2_5-a-4 |
|
194: |
Do not define function-like macro: SARG |
MISRAC2012-DIR_4_9-a-4 |
|
195: |
The identifier 'va_arg' shall not be used |
MISRAC2012-RULE_17_1-a-2 |
|
195: |
The identifier 'va_arg' shall not be used |
MISRAC2012-RULE_17_1-b-2 |
|
196: |
The identifier 'va_arg' shall not be used |
MISRAC2012-RULE_17_1-a-2 |
|
196: |
The identifier 'va_arg' shall not be used |
MISRAC2012-RULE_17_1-b-2 |
|
197: |
The identifier 'va_arg' shall not be used |
MISRAC2012-RULE_17_1-a-2 |
|
197: |
The identifier 'va_arg' shall not be used |
MISRAC2012-RULE_17_1-b-2 |
|
198: |
The identifier 'va_arg' shall not be used |
MISRAC2012-RULE_17_1-a-2 |
|
198: |
The identifier 'va_arg' shall not be used |
MISRAC2012-RULE_17_1-b-2 |
|
199: |
The identifier 'va_arg' shall not be used |
MISRAC2012-RULE_17_1-a-2 |
|
199: |
The identifier 'va_arg' shall not be used |
MISRAC2012-RULE_17_1-b-2 |
|
200: |
The identifier 'va_arg' shall not be used |
MISRAC2012-RULE_17_1-a-2 |
|
200: |
The identifier 'va_arg' shall not be used |
MISRAC2012-RULE_17_1-b-2 |
|
201: |
The identifier 'va_arg' shall not be used |
MISRAC2012-RULE_17_1-a-2 |
|
201: |
The identifier 'va_arg' shall not be used |
MISRAC2012-RULE_17_1-b-2 |
|
202: |
Do not define function-like macro: UARG |
MISRAC2012-DIR_4_9-a-4 |
|
203: |
The identifier 'va_arg' shall not be used |
MISRAC2012-RULE_17_1-a-2 |
|
203: |
The identifier 'va_arg' shall not be used |
MISRAC2012-RULE_17_1-b-2 |
|
204: |
The identifier 'va_arg' shall not be used |
MISRAC2012-RULE_17_1-a-2 |
|
204: |
The identifier 'va_arg' shall not be used |
MISRAC2012-RULE_17_1-b-2 |
|
205: |
The identifier 'va_arg' shall not be used |
MISRAC2012-RULE_17_1-a-2 |
|
205: |
The identifier 'va_arg' shall not be used |
MISRAC2012-RULE_17_1-b-2 |
|
206: |
The identifier 'va_arg' shall not be used |
MISRAC2012-RULE_17_1-a-2 |
|
206: |
The identifier 'va_arg' shall not be used |
MISRAC2012-RULE_17_1-b-2 |
|
207: |
The identifier 'va_arg' shall not be used |
MISRAC2012-RULE_17_1-a-2 |
|
207: |
The identifier 'va_arg' shall not be used |
MISRAC2012-RULE_17_1-b-2 |
|
208: |
The identifier 'va_arg' shall not be used |
MISRAC2012-RULE_17_1-a-2 |
|
208: |
The identifier 'va_arg' shall not be used |
MISRAC2012-RULE_17_1-b-2 |
|
209: |
The identifier 'va_arg' shall not be used |
MISRAC2012-RULE_17_1-a-2 |
|
209: |
The identifier 'va_arg' shall not be used |
MISRAC2012-RULE_17_1-b-2 |
|
211: |
Do not define function-like macro: KPRINTF_PUTCHAR |
MISRAC2012-DIR_4_9-a-4 |
|
227: |
Pointer to void type should not be converted to pointer to object type 'struct <unnamed> *' |
MISRAC2012-RULE_11_5-a-4 |
|
229: |
Function "snprintk" is called recursively |
MISRAC2012-RULE_17_2-a-2 |
|
242: |
The identifier 'va_list' shall not be used |
MISRAC2012-RULE_17_1-a-2 |
|
242: |
The identifier 'va_list' shall not be used |
MISRAC2012-RULE_17_1-b-2 |
|
242: |
Value 100 is out of acceptable range: 'lower than 30' |
METRIC.CC-3 |
|
255: |
Reserved name '_uquad' used |
MISRAC2012-RULE_21_2-a-2 |
|
264: |
The operands of a logical '&&' in function 'kprintf' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
265: |
Pointer to void type should not be converted to pointer to object type 'char **' |
MISRAC2012-RULE_11_5-a-4 |
| +
|
270: |
Value of "size" is never used |
MISRAC2012-RULE_2_2-b-2 |
| |
|
Point where value is declared
Point where value is declared
snprintk.c (270): size = 0; /* XXX: shutup gcc */ |
|
|
280: |
Only one 'goto' statement in loop is allowed. This loop contains 'goto' in lines: 286, 306, 309, 318, 323, 326, 331, 339,
347, 356, 359, 362, 370, 373, 376, 379, 396, 419, 446, 475, 478, 540, 548
|
MISRAC2012-RULE_15_4-a-4 |
|
281: |
The operands of a logical '&&' in function 'kprintf' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
281: |
The operands of a logical '&&' in function 'kprintf' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
283: |
Parameter 'sbuf' is modified in function 'kprintf' |
MISRAC2012-RULE_17_8-a-4 |
|
283: |
The '++' operator should cause the only side effect in an expression |
MISRAC2012-RULE_13_3-a-4 |
|
286: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
296: |
The '++' operator should cause the only side effect in an expression |
MISRAC2012-RULE_13_3-a-4 |
|
296: |
The expression of the 'essentially character' type is assigned to an object with the 'essentially signed' type |
MISRAC2012-RULE_10_3-b-2 |
|
298: |
Every non empty case clause in a switch statement shall be terminated with a break statement |
MISRAC2012-RULE_16_1-c-2 |
|
298: |
Every non empty case clause in a switch statement shall be terminated with a break statement |
MISRAC2012-RULE_16_3-a-2 |
|
298: |
The expression of the 'essentially character' type in a switch statement's case label is converted to the 'essentially signed'
type
|
MISRAC2012-RULE_10_3-b-2 |
|
306: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
306: |
The goto statement jumps to 'rflag' label declared earlier in the same function body |
MISRAC2012-RULE_15_2-a-2 |
|
307: |
Every non empty case clause in a switch statement shall be terminated with a break statement |
MISRAC2012-RULE_16_1-c-2 |
|
307: |
Every non empty case clause in a switch statement shall be terminated with a break statement |
MISRAC2012-RULE_16_3-a-2 |
|
307: |
The expression of the 'essentially character' type in a switch statement's case label is converted to the 'essentially signed'
type
|
MISRAC2012-RULE_10_3-b-2 |
|
309: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
309: |
The goto statement jumps to 'rflag' label declared earlier in the same function body |
MISRAC2012-RULE_15_2-a-2 |
|
310: |
Every non empty case clause in a switch statement shall be terminated with a break statement |
MISRAC2012-RULE_16_1-c-2 |
|
310: |
Every non empty case clause in a switch statement shall be terminated with a break statement |
MISRAC2012-RULE_16_3-a-2 |
|
310: |
The expression of the 'essentially character' type in a switch statement's case label is converted to the 'essentially signed'
type
|
MISRAC2012-RULE_10_3-b-2 |
|
317: |
The identifier 'va_arg' shall not be used |
MISRAC2012-RULE_17_1-a-2 |
|
317: |
The identifier 'va_arg' shall not be used |
MISRAC2012-RULE_17_1-b-2 |
|
318: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
318: |
The goto statement jumps to 'rflag' label declared earlier in the same function body |
MISRAC2012-RULE_15_2-a-2 |
|
321: |
Every non empty case clause in a switch statement shall be terminated with a break statement |
MISRAC2012-RULE_16_1-c-2 |
|
321: |
Every non empty case clause in a switch statement shall be terminated with a break statement |
MISRAC2012-RULE_16_3-a-2 |
|
321: |
The expression of the 'essentially character' type in a switch statement's case label is converted to the 'essentially signed'
type
|
MISRAC2012-RULE_10_3-b-2 |
|
323: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
323: |
The goto statement jumps to 'rflag' label declared earlier in the same function body |
MISRAC2012-RULE_15_2-a-2 |
|
324: |
Every non empty case clause in a switch statement shall be terminated with a break statement |
MISRAC2012-RULE_16_1-c-2 |
|
324: |
Every non empty case clause in a switch statement shall be terminated with a break statement |
MISRAC2012-RULE_16_3-a-2 |
|
324: |
The expression of the 'essentially character' type in a switch statement's case label is converted to the 'essentially signed'
type
|
MISRAC2012-RULE_10_3-b-2 |
|
326: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
326: |
The goto statement jumps to 'rflag' label declared earlier in the same function body |
MISRAC2012-RULE_15_2-a-2 |
|
327: |
Every non empty case clause in a switch statement shall be terminated with a break statement |
MISRAC2012-RULE_16_1-c-2 |
|
327: |
Every non empty case clause in a switch statement shall be terminated with a break statement |
MISRAC2012-RULE_16_3-a-2 |
|
327: |
The expression of the 'essentially character' type in a switch statement's case label is converted to the 'essentially signed'
type
|
MISRAC2012-RULE_10_3-b-2 |
|
328: |
Assignment operator '=' is used in improper context |
MISRAC2012-RULE_13_4-a-4 |
|
328: |
The '++' operator should cause the only side effect in an expression |
MISRAC2012-RULE_13_3-a-4 |
|
328: |
The expression of the 'essentially character' type is assigned to an object with the 'essentially signed' type |
MISRAC2012-RULE_10_3-b-2 |
|
329: |
The identifier 'va_arg' shall not be used |
MISRAC2012-RULE_17_1-a-2 |
|
329: |
The identifier 'va_arg' shall not be used |
MISRAC2012-RULE_17_1-b-2 |
|
330: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
331: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
331: |
The goto statement jumps to 'rflag' label declared earlier in the same function body |
MISRAC2012-RULE_15_2-a-2 |
|
334: |
Composite expression with 'signed' essential type category shall not be cast to different essential type category 'unsigned' |
MISRAC2012-RULE_10_8-a-2 |
|
334: |
The right hand operand of the '-' operator has essentially character type and is used inappropriately |
MISRAC2012-RULE_10_2-a-2 |
|
335: |
The right hand operand of the '-' operator has essentially character type and is used inappropriately |
MISRAC2012-RULE_10_2-a-2 |
|
335: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
336: |
The '++' operator should cause the only side effect in an expression |
MISRAC2012-RULE_13_3-a-4 |
|
336: |
The expression of the 'essentially character' type is assigned to an object with the 'essentially signed' type |
MISRAC2012-RULE_10_3-b-2 |
|
338: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
339: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
339: |
The goto statement jumps to 'reswitch' label declared earlier in the same function body |
MISRAC2012-RULE_15_2-a-2 |
|
340: |
Every non empty case clause in a switch statement shall be terminated with a break statement |
MISRAC2012-RULE_16_1-c-2 |
|
340: |
Every non empty case clause in a switch statement shall be terminated with a break statement |
MISRAC2012-RULE_16_3-a-2 |
|
340: |
The expression of the 'essentially character' type in a switch statement's case label is converted to the 'essentially signed'
type
|
MISRAC2012-RULE_10_3-b-2 |
|
347: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
347: |
The goto statement jumps to 'rflag' label declared earlier in the same function body |
MISRAC2012-RULE_15_2-a-2 |
|
348: |
The expression of the 'essentially character' type in a switch statement's case label is converted to the 'essentially signed'
type
|
MISRAC2012-RULE_10_3-b-2 |
|
349: |
Every non empty case clause in a switch statement shall be terminated with a break statement |
MISRAC2012-RULE_16_1-c-2 |
|
349: |
Every non empty case clause in a switch statement shall be terminated with a break statement |
MISRAC2012-RULE_16_3-a-2 |
|
352: |
The right hand operand of the '-' operator has essentially character type and is used inappropriately |
MISRAC2012-RULE_10_2-a-2 |
|
352: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
353: |
The '++' operator should cause the only side effect in an expression |
MISRAC2012-RULE_13_3-a-4 |
|
353: |
The expression of the 'essentially character' type is assigned to an object with the 'essentially signed' type |
MISRAC2012-RULE_10_3-b-2 |
|
354: |
Composite expression with 'signed' essential type category shall not be cast to different essential type category 'unsigned' |
MISRAC2012-RULE_10_8-a-2 |
|
354: |
The right hand operand of the '-' operator has essentially character type and is used inappropriately |
MISRAC2012-RULE_10_2-a-2 |
|
356: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
356: |
The goto statement jumps to 'reswitch' label declared earlier in the same function body |
MISRAC2012-RULE_15_2-a-2 |
|
357: |
Every non empty case clause in a switch statement shall be terminated with a break statement |
MISRAC2012-RULE_16_1-c-2 |
|
357: |
Every non empty case clause in a switch statement shall be terminated with a break statement |
MISRAC2012-RULE_16_3-a-2 |
|
357: |
The expression of the 'essentially character' type in a switch statement's case label is converted to the 'essentially signed'
type
|
MISRAC2012-RULE_10_3-b-2 |
|
359: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
359: |
The goto statement jumps to 'rflag' label declared earlier in the same function body |
MISRAC2012-RULE_15_2-a-2 |
|
360: |
Every non empty case clause in a switch statement shall be terminated with a break statement |
MISRAC2012-RULE_16_1-c-2 |
|
360: |
Every non empty case clause in a switch statement shall be terminated with a break statement |
MISRAC2012-RULE_16_3-a-2 |
|
360: |
The expression of the 'essentially character' type in a switch statement's case label is converted to the 'essentially signed'
type
|
MISRAC2012-RULE_10_3-b-2 |
|
362: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
362: |
The goto statement jumps to 'rflag' label declared earlier in the same function body |
MISRAC2012-RULE_15_2-a-2 |
|
363: |
Every non empty case clause in a switch statement shall be terminated with a break statement |
MISRAC2012-RULE_16_1-c-2 |
|
363: |
Every non empty case clause in a switch statement shall be terminated with a break statement |
MISRAC2012-RULE_16_3-a-2 |
|
363: |
The expression of the 'essentially character' type in a switch statement's case label is converted to the 'essentially signed'
type
|
MISRAC2012-RULE_10_3-b-2 |
|
370: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
370: |
The goto statement jumps to 'rflag' label declared earlier in the same function body |
MISRAC2012-RULE_15_2-a-2 |
|
371: |
Every non empty case clause in a switch statement shall be terminated with a break statement |
MISRAC2012-RULE_16_1-c-2 |
|
371: |
Every non empty case clause in a switch statement shall be terminated with a break statement |
MISRAC2012-RULE_16_3-a-2 |
|
371: |
The expression of the 'essentially character' type in a switch statement's case label is converted to the 'essentially signed'
type
|
MISRAC2012-RULE_10_3-b-2 |
|
373: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
373: |
The goto statement jumps to 'rflag' label declared earlier in the same function body |
MISRAC2012-RULE_15_2-a-2 |
|
374: |
Every non empty case clause in a switch statement shall be terminated with a break statement |
MISRAC2012-RULE_16_1-c-2 |
|
374: |
Every non empty case clause in a switch statement shall be terminated with a break statement |
MISRAC2012-RULE_16_3-a-2 |
|
374: |
The expression of the 'essentially character' type in a switch statement's case label is converted to the 'essentially signed'
type
|
MISRAC2012-RULE_10_3-b-2 |
|
376: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
376: |
The goto statement jumps to 'rflag' label declared earlier in the same function body |
MISRAC2012-RULE_15_2-a-2 |
|
377: |
Every non empty case clause in a switch statement shall be terminated with a break statement |
MISRAC2012-RULE_16_1-c-2 |
|
377: |
Every non empty case clause in a switch statement shall be terminated with a break statement |
MISRAC2012-RULE_16_3-a-2 |
|
377: |
The expression of the 'essentially character' type in a switch statement's case label is converted to the 'essentially signed'
type
|
MISRAC2012-RULE_10_3-b-2 |
|
379: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
379: |
The goto statement jumps to 'rflag' label declared earlier in the same function body |
MISRAC2012-RULE_15_2-a-2 |
|
380: |
The expression of the 'essentially character' type in a switch statement's case label is converted to the 'essentially signed'
type
|
MISRAC2012-RULE_10_3-b-2 |
|
381: |
The identifier 'va_arg' shall not be used |
MISRAC2012-RULE_17_1-a-2 |
|
381: |
The identifier 'va_arg' shall not be used |
MISRAC2012-RULE_17_1-b-2 |
|
385: |
Every non empty case clause in a switch statement shall be terminated with a break statement |
MISRAC2012-RULE_16_1-c-2 |
|
385: |
Every non empty case clause in a switch statement shall be terminated with a break statement |
MISRAC2012-RULE_16_3-a-2 |
|
385: |
The expression of the 'essentially character' type in a switch statement's case label is converted to the 'essentially signed'
type
|
MISRAC2012-RULE_10_3-b-2 |
|
388: |
The expression of the 'essentially character' type in a switch statement's case label is converted to the 'essentially signed'
type
|
MISRAC2012-RULE_10_3-b-2 |
|
389: |
Every non empty case clause in a switch statement shall be terminated with a break statement |
MISRAC2012-RULE_16_1-c-2 |
|
389: |
Every non empty case clause in a switch statement shall be terminated with a break statement |
MISRAC2012-RULE_16_3-a-2 |
|
390: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
390: |
The expression of the 'essentially signed' type is assigned to an object with the 'essentially unsigned' type |
MISRAC2012-RULE_10_3-b-2 |
|
392: |
The operand of the unary '-' operator has essentially unsigned type: 'unsigned long' |
MISRAC2012-RULE_10_1-g-2 |
|
396: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
396: |
There is no label 'number' declared in the same block, or in a block enclosing the goto statement |
MISRAC2012-RULE_15_3-a-2 |
|
397: |
Every non empty case clause in a switch statement shall be terminated with a break statement |
MISRAC2012-RULE_16_1-c-2 |
|
397: |
Every non empty case clause in a switch statement shall be terminated with a break statement |
MISRAC2012-RULE_16_3-a-2 |
|
397: |
The expression of the 'essentially character' type in a switch statement's case label is converted to the 'essentially signed'
type
|
MISRAC2012-RULE_10_3-b-2 |
|
398: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
399: |
The identifier 'va_arg' shall not be used |
MISRAC2012-RULE_17_1-a-2 |
|
399: |
The identifier 'va_arg' shall not be used |
MISRAC2012-RULE_17_1-b-2 |
|
400: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
401: |
The identifier 'va_arg' shall not be used |
MISRAC2012-RULE_17_1-a-2 |
|
401: |
The identifier 'va_arg' shall not be used |
MISRAC2012-RULE_17_1-b-2 |
|
402: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
403: |
The identifier 'va_arg' shall not be used |
MISRAC2012-RULE_17_1-a-2 |
|
403: |
The identifier 'va_arg' shall not be used |
MISRAC2012-RULE_17_1-b-2 |
|
404: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
405: |
The identifier 'va_arg' shall not be used |
MISRAC2012-RULE_17_1-a-2 |
|
405: |
The identifier 'va_arg' shall not be used |
MISRAC2012-RULE_17_1-b-2 |
|
406: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
407: |
The identifier 'va_arg' shall not be used |
MISRAC2012-RULE_17_1-a-2 |
|
407: |
The identifier 'va_arg' shall not be used |
MISRAC2012-RULE_17_1-b-2 |
|
408: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
409: |
The identifier 'va_arg' shall not be used |
MISRAC2012-RULE_17_1-a-2 |
|
409: |
The identifier 'va_arg' shall not be used |
MISRAC2012-RULE_17_1-b-2 |
|
411: |
The identifier 'va_arg' shall not be used |
MISRAC2012-RULE_17_1-a-2 |
|
411: |
The identifier 'va_arg' shall not be used |
MISRAC2012-RULE_17_1-b-2 |
|
413: |
Every non empty case clause in a switch statement shall be terminated with a break statement |
MISRAC2012-RULE_16_1-c-2 |
|
413: |
Every non empty case clause in a switch statement shall be terminated with a break statement |
MISRAC2012-RULE_16_3-a-2 |
|
413: |
The expression of the 'essentially character' type in a switch statement's case label is converted to the 'essentially signed'
type
|
MISRAC2012-RULE_10_3-b-2 |
|
416: |
Every non empty case clause in a switch statement shall be terminated with a break statement |
MISRAC2012-RULE_16_1-c-2 |
|
416: |
Every non empty case clause in a switch statement shall be terminated with a break statement |
MISRAC2012-RULE_16_3-a-2 |
|
416: |
The expression of the 'essentially character' type in a switch statement's case label is converted to the 'essentially signed'
type
|
MISRAC2012-RULE_10_3-b-2 |
|
417: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
419: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
419: |
There is no label 'nosign' declared in the same block, or in a block enclosing the goto statement |
MISRAC2012-RULE_15_3-a-2 |
|
420: |
Every non empty case clause in a switch statement shall be terminated with a break statement |
MISRAC2012-RULE_16_1-c-2 |
|
420: |
Every non empty case clause in a switch statement shall be terminated with a break statement |
MISRAC2012-RULE_16_3-a-2 |
|
420: |
The expression of the 'essentially character' type in a switch statement's case label is converted to the 'essentially signed'
type
|
MISRAC2012-RULE_10_3-b-2 |
|
421: |
The operands of a logical '&&' in function 'kprintf' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
421: |
The operands of a logical '&&' in function 'kprintf' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
421: |
The variable 'fmt' used as the left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
426: |
The variable 'fmt' used as the left hand side operand of the '+=' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
427: |
Function "uuid2str" is called recursively |
MISRAC2012-RULE_17_2-a-2 |
|
428: |
The identifier 'va_arg' shall not be used |
MISRAC2012-RULE_17_1-a-2 |
|
428: |
The identifier 'va_arg' shall not be used |
MISRAC2012-RULE_17_1-b-2 |
|
441: |
The identifier 'va_arg' shall not be used |
MISRAC2012-RULE_17_1-a-2 |
|
441: |
The identifier 'va_arg' shall not be used |
MISRAC2012-RULE_17_1-b-2 |
|
445: |
The expression of the 'essentially character' type is assigned to an object with the 'essentially signed' type |
MISRAC2012-RULE_10_3-b-2 |
|
446: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
446: |
There is no label 'nosign' declared in the same block, or in a block enclosing the goto statement |
MISRAC2012-RULE_15_3-a-2 |
|
447: |
The expression of the 'essentially character' type in a switch statement's case label is converted to the 'essentially signed'
type
|
MISRAC2012-RULE_10_3-b-2 |
|
448: |
The identifier 'va_arg' shall not be used |
MISRAC2012-RULE_17_1-a-2 |
|
448: |
The identifier 'va_arg' shall not be used |
MISRAC2012-RULE_17_1-b-2 |
|
450: |
Arithmetic type 'unsigned long' should not be converted to pointer to void type |
MISRAC2012-RULE_11_6-a-2 |
|
450: |
Pointer to void type should not be converted to arithmetic type 'unsigned long' |
MISRAC2012-RULE_11_6-a-2 |
|
450: |
Pointer to void type should not be converted to pointer to object type 'char *' |
MISRAC2012-RULE_11_5-a-4 |
|
457: |
Pointer to void type should not be converted to pointer to object type 'char *' |
MISRAC2012-RULE_11_5-a-4 |
|
457: |
The argument number '3' ('essentially signed' type) is passed to the function 'memchr' as a parameter with the 'essentially
unsigned' type
|
MISRAC2012-RULE_10_3-b-2 |
|
460: |
The expression of the 'long' essential type (8 byte) is assigned to an object with a narrower essential type (4 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
466: |
The expression of the 'essentially unsigned' type is assigned to an object with the 'essentially signed' type |
MISRAC2012-RULE_10_3-b-2 |
|
469: |
Every non empty case clause in a switch statement shall be terminated with a break statement |
MISRAC2012-RULE_16_1-c-2 |
|
469: |
Every non empty case clause in a switch statement shall be terminated with a break statement |
MISRAC2012-RULE_16_3-a-2 |
|
469: |
The expression of the 'essentially character' type in a switch statement's case label is converted to the 'essentially signed'
type
|
MISRAC2012-RULE_10_3-b-2 |
|
472: |
Every non empty case clause in a switch statement shall be terminated with a break statement |
MISRAC2012-RULE_16_1-c-2 |
|
472: |
Every non empty case clause in a switch statement shall be terminated with a break statement |
MISRAC2012-RULE_16_3-a-2 |
|
472: |
The expression of the 'essentially character' type in a switch statement's case label is converted to the 'essentially signed'
type
|
MISRAC2012-RULE_10_3-b-2 |
|
473: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
475: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
475: |
There is no label 'nosign' declared in the same block, or in a block enclosing the goto statement |
MISRAC2012-RULE_15_3-a-2 |
|
476: |
Every non empty case clause in a switch statement shall be terminated with a break statement |
MISRAC2012-RULE_16_1-c-2 |
|
476: |
Every non empty case clause in a switch statement shall be terminated with a break statement |
MISRAC2012-RULE_16_3-a-2 |
|
476: |
The expression of the 'essentially character' type in a switch statement's case label is converted to the 'essentially signed'
type
|
MISRAC2012-RULE_10_3-b-2 |
|
478: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
478: |
There is no label 'hex' declared in the same block, or in a block enclosing the goto statement |
MISRAC2012-RULE_15_3-a-2 |
|
479: |
The expression of the 'essentially character' type in a switch statement's case label is converted to the 'essentially signed'
type
|
MISRAC2012-RULE_10_3-b-2 |
|
481: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
481: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
484: |
The operands of a logical '&&' in function 'kprintf' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
484: |
The operands of a logical '&&' in function 'kprintf' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
494: |
Assignment operator '=' is used in improper context |
MISRAC2012-RULE_13_4-a-4 |
|
502: |
The variable 'bf' used as the left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
511: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
512: |
The '--' operator should cause the only side effect in an expression |
MISRAC2012-RULE_13_3-a-4 |
|
512: |
The expression of the 'essentially unsigned' type is assigned to an object with the 'essentially character' type |
MISRAC2012-RULE_10_3-b-2 |
|
516: |
The operands of a logical '&&' in function 'kprintf' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
516: |
The operands of a logical '&&' in function 'kprintf' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
517: |
The '--' operator should cause the only side effect in an expression |
MISRAC2012-RULE_13_3-a-4 |
|
523: |
The '--' operator should cause the only side effect in an expression |
MISRAC2012-RULE_13_3-a-4 |
|
523: |
The expression of the 'essentially unsigned' type is assigned to an object with the 'essentially character' type |
MISRAC2012-RULE_10_3-b-2 |
|
526: |
The '--' operator should cause the only side effect in an expression |
MISRAC2012-RULE_13_3-a-4 |
|
526: |
The expression of the 'essentially unsigned' type is assigned to an object with the 'essentially character' type |
MISRAC2012-RULE_10_3-b-2 |
|
530: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
531: |
The '--' operator should cause the only side effect in an expression |
MISRAC2012-RULE_13_3-a-4 |
|
536: |
Every non empty default clause in a switch statement shall be terminated with a break statement |
MISRAC2012-RULE_16_1-d-2 |
|
536: |
Every non empty default clause in a switch statement shall be terminated with a break statement |
MISRAC2012-RULE_16_3-b-2 |
|
538: |
Arithmetic type 'unsigned long' should not be converted to pointer to void type |
MISRAC2012-RULE_11_6-a-2 |
|
538: |
Pointer to void type should not be converted to arithmetic type 'unsigned long' |
MISRAC2012-RULE_11_6-a-2 |
|
538: |
Pointer to void type should not be converted to pointer to object type 'char *' |
MISRAC2012-RULE_11_5-a-4 |
|
539: |
The expression of the 'essentially unsigned' type is assigned to an object with the 'essentially signed' type |
MISRAC2012-RULE_10_3-b-2 |
|
540: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
543: |
The expression of the 'long' essential type (8 byte) is assigned to an object with a narrower essential type (4 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
543: |
The variable 'bf' used as the left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
543: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
548: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
551: |
The expression of the 'essentially signed' type is assigned to an object with the 'essentially character' type |
MISRAC2012-RULE_10_3-b-2 |
|
571: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
572: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
574: |
Provide 'else' after the last 'else-if' construct |
MISRAC2012-RULE_15_7-a-2 |
|
574: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
578: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
584: |
Parameter 'sbuf' is modified in function 'kprintf' |
MISRAC2012-RULE_17_8-a-4 |
|
584: |
The '++' operator should cause the only side effect in an expression |
MISRAC2012-RULE_13_3-a-4 |
|
588: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
589: |
Parameter 'sbuf' is modified in function 'kprintf' |
MISRAC2012-RULE_17_8-a-4 |
|
589: |
The '++' operator should cause the only side effect in an expression |
MISRAC2012-RULE_13_3-a-4 |
|
590: |
Provide 'else' after the last 'else-if' construct |
MISRAC2012-RULE_15_7-a-2 |
|
590: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
591: |
Parameter 'sbuf' is modified in function 'kprintf' |
MISRAC2012-RULE_17_8-a-4 |
|
591: |
The '++' operator should cause the only side effect in an expression |
MISRAC2012-RULE_13_3-a-4 |
|
592: |
Parameter 'sbuf' is modified in function 'kprintf' |
MISRAC2012-RULE_17_8-a-4 |
|
592: |
The '++' operator should cause the only side effect in an expression |
MISRAC2012-RULE_13_3-a-4 |
|
592: |
The expression of the 'essentially signed' type is assigned to an object with the 'essentially character' type |
MISRAC2012-RULE_10_3-b-2 |
|
599: |
Parameter 'sbuf' is modified in function 'kprintf' |
MISRAC2012-RULE_17_8-a-4 |
|
599: |
The '++' operator should cause the only side effect in an expression |
MISRAC2012-RULE_13_3-a-4 |
|
605: |
Parameter 'sbuf' is modified in function 'kprintf' |
MISRAC2012-RULE_17_8-a-4 |
|
605: |
The '++' operator should cause the only side effect in an expression |
MISRAC2012-RULE_13_3-a-4 |
|
608: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
608: |
The second clause of a 'for' statement contains an expression that has a persistent side effect |
MISRAC2012-RULE_14_2-c-2 |
|
608: |
The second clause of a 'for' statement does not contain a loop counter |
MISRAC2012-RULE_14_2-c-2 |
|
608: |
The third clause of a 'for' statement contains an expression with a persistent side effect other than modification of a loop
counter
|
MISRAC2012-RULE_14_2-d-2 |
|
609: |
Parameter 'sbuf' is modified in function 'kprintf' |
MISRAC2012-RULE_17_8-a-4 |
|
609: |
The '++' operator should cause the only side effect in an expression |
MISRAC2012-RULE_13_3-a-4 |
|
611: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
614: |
Parameter 'sbuf' is modified in function 'kprintf' |
MISRAC2012-RULE_17_8-a-4 |
|
614: |
The '++' operator should cause the only side effect in an expression |
MISRAC2012-RULE_13_3-a-4 |
|
620: |
Pointer to void type should not be converted to pointer to object type 'char **' |
MISRAC2012-RULE_11_5-a-4 |
| /optee_os_MISRA/ext/strlcat.c |
|
39: |
#include statements are not grouped properly. This is the last #include in file. Some statements are in line 34 |
MISRAC2012-RULE_20_1-a-4 |
|
40: |
Section of code should not be 'commented out' |
MISRAC2012-DIR_4_4-a-4 |
|
42: |
Reserved name 'strlen' used |
MISRAC2012-RULE_21_2-b-2 |
|
42: |
Reserved name 'strlen' used |
MISRAC2012-RULE_21_2-c-2 |
|
50: |
Identifiers given in declaration of 'strlcat' function (file: 'string_ext.h', line: '22') are: 'size' not: 'siz' |
MISRAC2012-RULE_8_3-b-2 |
|
58: |
'while' statement in a function 'strlcat' should be followed by a block |
MISRAC2012-RULE_15_6-a-2 |
|
60: |
The expression of the 'essentially signed' type is assigned to an object with the 'essentially unsigned' type |
MISRAC2012-RULE_10_3-b-2 |
|
68: |
The '++' operator should cause the only side effect in an expression |
MISRAC2012-RULE_13_3-a-4 |
| +
|
69: |
Integer overflow: value of --n will be 18,446,744,073,709,551,615 instead of -1 (result type: 64 bits, unsigned, min: 0, max:
18,446,744,073,709,551,615)
|
MISRAC2012-DIR_4_1-k-2 |
| |
|
Start of the path
strlcat.c (66): while (*s != '\0') { *** Loop condition evaluation: (int)*s != 0 (assuming true) *** Entering the loop
strlcat.c (67): if (n != 1) { *** Condition evaluation: (n != 1) (assuming false)
strlcat.c (71): s++;
strlcat.c (66): while (*s != '\0') { *** Loop condition evaluation: (*s != 0) (true) *** Entering the loop
strlcat.c (67): if (n != 1) { *** Condition evaluation: n != 1 (assuming 1) -> n = 0 *** Condition evaluation: (n != 1) (assuming true)
strlcat.c (68): *d++ = *s;
Integer overflow point
strlcat.c (69): n--; *** Variable assignment: n = --n -> n = 18446744073709551615 |
|
| /optee_os_MISRA/ext/strlcpy.c |
|
39: |
#include statements are not grouped properly. This is the last #include in file. Some statements are in line 34 |
MISRAC2012-RULE_20_1-a-4 |
|
41: |
Section of code should not be 'commented out' |
MISRAC2012-DIR_4_4-a-4 |
|
46: |
Identifiers given in declaration of 'strlcpy' function (file: 'string_ext.h', line: '21') are: 'size' not: 'siz' |
MISRAC2012-RULE_8_3-b-2 |
|
53: |
Do not use expressions with side effects in the right-hand operand of a logical '&&' operator |
MISRAC2012-RULE_13_5-a-2 |
|
55: |
Assignment operator '=' is used in improper context |
MISRAC2012-RULE_13_4-a-4 |
|
55: |
The '++' operator should cause the only side effect in an expression |
MISRAC2012-RULE_13_3-a-4 |
|
55: |
The '++' operator should cause the only side effect in an expression |
MISRAC2012-RULE_13_3-a-4 |
|
64: |
'while' statement in a function 'strlcpy' should be followed by a block |
MISRAC2012-RULE_15_6-a-2 |
|
64: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
68: |
The expression of the 'essentially signed' type is returned from function 'strlcpy' with the 'essentially unsigned' type |
MISRAC2012-RULE_10_3-b-2 |
| /optee_os_MISRA/ext/trace.c |
|
88: |
Parameter 'bs' is not used in function 'print_core_id' |
MISRAC2012-RULE_2_7-a-4 |
|
88: |
Parameter 'buf' is not used in function 'print_core_id' |
MISRAC2012-RULE_2_7-a-4 |
|
88: |
Pass parameter "buf" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
95: |
Identifiers given in declaration of 'trace_printf' function (file: 'trace.h', line: '35') are: 'func' not: 'function' |
MISRAC2012-RULE_8_3-b-2 |
|
98: |
The identifier 'va_list' shall not be used |
MISRAC2012-RULE_17_1-a-2 |
|
98: |
The identifier 'va_list' shall not be used |
MISRAC2012-RULE_17_1-b-2 |
|
100: |
The identifier 'va_start' shall not be used |
MISRAC2012-RULE_17_1-a-2 |
|
100: |
The identifier 'va_start' shall not be used |
MISRAC2012-RULE_17_1-b-2 |
|
102: |
The identifier 'va_end' shall not be used |
MISRAC2012-RULE_17_1-a-2 |
|
102: |
The identifier 'va_end' shall not be used |
MISRAC2012-RULE_17_1-b-2 |
|
104: |
Identifiers given in declaration of 'trace_vprintf' function (file: 'trace.h', line: '33') are: 'func, args' not: 'function,
ap'
|
MISRAC2012-RULE_8_3-b-2 |
|
105: |
The identifier 'va_list' shall not be used |
MISRAC2012-RULE_17_1-a-2 |
|
105: |
The identifier 'va_list' shall not be used |
MISRAC2012-RULE_17_1-b-2 |
|
122: |
The variable 'buf' used as the left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
128: |
Shifting operation should be enclosed with if checking that RHS operand lies between zero and one less than the width in bits
of the underlying type of the LHS operand
|
MISRAC2012-RULE_12_2-a-2 |
|
128: |
The right hand operand of the shift operator '<<' has essentially signed type 'int' |
MISRAC2012-RULE_10_1-f-2 |
|
130: |
The variable 'buf' used as the left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
136: |
The variable 'buf' used as the left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
141: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
142: |
The variable 'buf' used as the left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
150: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
152: |
The '++' operator should cause the only side effect in an expression |
MISRAC2012-RULE_13_3-a-4 |
|
153: |
The expression of the 'essentially signed' type is assigned to an object with the 'essentially character' type |
MISRAC2012-RULE_10_3-b-2 |
|
156: |
The variable 'buf' used as the left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
164: |
'while' statement in a function 'trace_vprintf' should be followed by a block |
MISRAC2012-RULE_15_6-a-2 |
|
207: |
The identifier 'va_list' shall not be used |
MISRAC2012-RULE_17_1-a-2 |
|
207: |
The identifier 'va_list' shall not be used |
MISRAC2012-RULE_17_1-b-2 |
|
212: |
The identifier 'va_start' shall not be used |
MISRAC2012-RULE_17_1-a-2 |
|
212: |
The identifier 'va_start' shall not be used |
MISRAC2012-RULE_17_1-b-2 |
|
214: |
The identifier 'va_end' shall not be used |
MISRAC2012-RULE_17_1-a-2 |
|
214: |
The identifier 'va_end' shall not be used |
MISRAC2012-RULE_17_1-b-2 |
|
276: |
Parameter 'function' is not used in function 'dhex_dump' |
MISRAC2012-RULE_2_7-a-4 |
|
276: |
Parameter 'line' is not used in function 'dhex_dump' |
MISRAC2012-RULE_2_7-a-4 |
|
277: |
Parameter 'level' is not used in function 'dhex_dump' |
MISRAC2012-RULE_2_7-a-4 |
|
278: |
Parameter 'buf' is not used in function 'dhex_dump' |
MISRAC2012-RULE_2_7-a-4 |
|
278: |
Parameter 'len' is not used in function 'dhex_dump' |
MISRAC2012-RULE_2_7-a-4 |
| /optee_os_MISRA/isoc/bget.c |
|
1: |
Section of code should not be 'commented out' |
MISRAC2012-DIR_4_4-a-4 |
|
414: |
Section of code should not be 'commented out' |
MISRAC2012-DIR_4_4-a-4 |
|
474: |
Whole code in file should be secured from multiple inclusion |
MISRAC2012-DIR_4_10-a-2 |
|
514: |
Do not define function-like macro: BH |
MISRAC2012-DIR_4_9-a-4 |
|
523: |
Do not define function-like macro: BDH |
MISRAC2012-DIR_4_9-a-4 |
|
531: |
Do not define function-like macro: BFH |
MISRAC2012-DIR_4_9-a-4 |
|
579: |
Pass parameter "bf" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
592: |
Pointer to object type 'struct bfhead *' should not be converted to integral type 'unsigned long' |
MISRAC2012-RULE_11_4-a-4 |
|
592: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
595: |
Pointer to object type 'struct bfhead *' should not be converted to integral type 'unsigned long' |
MISRAC2012-RULE_11_4-a-4 |
|
595: |
The expression of the 'essentially unsigned' type is assigned to an object with the 'essentially signed' type |
MISRAC2012-RULE_10_3-b-2 |
|
599: |
The second and third operand have different essential types: 'signed char' and 'unsigned long' |
MISRAC2012-RULE_10_4-b-2 |
|
599: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
607: |
Function 'bget' is not in prototype form |
MISRAC2012-RULE_8_2-c-2 |
|
607: |
Identifiers given in declaration of 'bget' function (file: 'bget.h', line: '35') are: 'align, size' not: 'requested_align,
requested_size'
|
MISRAC2012-RULE_8_3-b-2 |
|
607: |
The function 'bget' is referenced only in the translation unit where it is defined |
MISRAC2012-RULE_8_7-a-4 |
|
626: |
Missing statement or comment before terminating 'break' |
MISRAC2012-RULE_16_4-b-2 |
|
626: |
Missing statement or comment before terminating 'break' |
MISRAC2012-RULE_16_1-f-2 |
|
626: |
The 'switch' statement contains less than two switch-clauses |
MISRAC2012-RULE_16_6-a-2 |
|
626: |
The 'switch' statement contains less than two switch-clauses |
MISRAC2012-RULE_16_1-h-2 |
|
626: |
The second and third operand have different essential types: 'signed char' and 'unsigned long' |
MISRAC2012-RULE_10_4-b-2 |
|
630: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
633: |
The second and third operand have different essential types: 'signed char' and 'unsigned long' |
MISRAC2012-RULE_10_4-b-2 |
|
634: |
The expression of the 'essentially unsigned' type is assigned to an object with the 'essentially signed' type |
MISRAC2012-RULE_10_3-b-2 |
|
634: |
The second and third operand have different essential types: 'signed char' and 'unsigned long' |
MISRAC2012-RULE_10_4-b-2 |
|
636: |
The second and third operand have different essential types: 'signed char' and 'unsigned long' |
MISRAC2012-RULE_10_4-b-2 |
|
637: |
The expression of the 'essentially unsigned' type is assigned to an object with the 'essentially signed' type |
MISRAC2012-RULE_10_3-b-2 |
|
637: |
The second and third operand have different essential types: 'signed char' and 'unsigned long' |
MISRAC2012-RULE_10_4-b-2 |
|
687: |
Pointer to object type 'char *' is cast to pointer to different object type 'struct bhead *' |
MISRAC2012-RULE_11_3-a-2 |
|
687: |
The left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
688: |
Pointer to object type 'char *' is cast to pointer to different object type 'struct bhead *' |
MISRAC2012-RULE_11_3-a-2 |
|
688: |
The left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
727: |
The second and third operand have different essential types: 'signed char' and 'unsigned long' |
MISRAC2012-RULE_10_4-b-2 |
|
727: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
727: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
733: |
Pointer to object type 'char *' is cast to pointer to different object type 'struct bfhead *' |
MISRAC2012-RULE_11_3-a-2 |
|
733: |
The left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
747: |
Pointer to object type 'char *' is cast to pointer to different object type 'struct bhead *' |
MISRAC2012-RULE_11_3-a-2 |
|
747: |
Potential macro 'BH' used as '1' parameter of potential macro 'assert' |
MISRAC2012-RULE_20_12-a-2 |
|
747: |
The left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
755: |
The left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
756: |
The argument number '2' ('essentially signed' type) is passed to the function 'tag_asan_alloced' as a parameter with the 'essentially
unsigned' type
|
MISRAC2012-RULE_10_3-b-2 |
|
845: |
Function 'bgetz' is not in prototype form |
MISRAC2012-RULE_8_2-c-2 |
|
845: |
The function 'bgetz' is referenced only in the translation unit where it is defined (bget_malloc.c) |
MISRAC2012-RULE_8_7-a-4 |
|
851: |
Pointer to void type should not be converted to pointer to object type 'char *' |
MISRAC2012-RULE_11_5-a-4 |
|
857: |
Pointer to object type 'char *' is cast to pointer to different object type 'struct bhead *' |
MISRAC2012-RULE_11_3-a-2 |
|
857: |
The variable 'buf' used as the left hand side operand of the '-' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
862: |
Pointer to object type 'char *' is cast to pointer to different object type 'struct bdhead *' |
MISRAC2012-RULE_11_3-a-2 |
|
862: |
The variable 'buf' used as the left hand side operand of the '-' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
863: |
The expression of the 'essentially unsigned' type is assigned to an object with the 'essentially signed' type |
MISRAC2012-RULE_10_3-b-2 |
|
868: |
The argument number '3' ('essentially signed' type) is passed to the function 'memset_unchecked' as a parameter with the 'essentially
unsigned' type
|
MISRAC2012-RULE_10_3-b-2 |
|
878: |
Function 'bgetr' is not in prototype form |
MISRAC2012-RULE_8_2-c-2 |
|
878: |
Identifiers given in declaration of 'bgetr' function (file: 'bget.h', line: '37') are: 'buffer, newsize' not: 'buf, size' |
MISRAC2012-RULE_8_3-b-2 |
|
878: |
The function 'bgetr' is referenced only in the translation unit where it is defined (bget_malloc.c) |
MISRAC2012-RULE_8_7-a-4 |
|
889: |
Assignment operator '=' is used in improper context |
MISRAC2012-RULE_13_4-a-4 |
|
895: |
Pointer to object type 'char *' is cast to pointer to different object type 'struct bhead *' |
MISRAC2012-RULE_11_3-a-2 |
|
895: |
Pointer to void type should not be converted to pointer to object type 'char *' |
MISRAC2012-RULE_11_5-a-4 |
|
895: |
The left hand side operand of the '-' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
908: |
Pointer to void type should not be converted to pointer to object type 'char *' |
MISRAC2012-RULE_11_5-a-4 |
|
908: |
Pointer to void type should not be converted to pointer to object type 'char *' |
MISRAC2012-RULE_11_5-a-4 |
|
909: |
The argument number '3' ('essentially signed' type) is passed to the function 'memcpy' as a parameter with the 'essentially
unsigned' type
|
MISRAC2012-RULE_10_3-b-2 |
|
913: |
Pointer to void type should not be converted to pointer to object type 'char *' |
MISRAC2012-RULE_11_5-a-4 |
|
913: |
The argument number '3' ('essentially signed' type) is passed to the function 'memset' as a parameter with the 'essentially
unsigned' type
|
MISRAC2012-RULE_10_3-b-2 |
|
913: |
The left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
921: |
Function 'brel' is not in prototype form |
MISRAC2012-RULE_8_2-c-2 |
|
921: |
The function 'brel' is referenced only in the translation unit where it is defined |
MISRAC2012-RULE_8_7-a-4 |
|
929: |
Pointer to object type 'char *' is cast to pointer to different object type 'struct bfhead *' |
MISRAC2012-RULE_11_3-a-2 |
|
929: |
Pointer to void type should not be converted to pointer to object type 'char *' |
MISRAC2012-RULE_11_5-a-4 |
|
929: |
The left hand side operand of the '-' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
933: |
Potential macro 'NULL' used as '1' parameter of potential macro 'assert' |
MISRAC2012-RULE_20_12-a-2 |
|
955: |
Potential macro 'NULL' used as '1' parameter of potential macro 'assert' |
MISRAC2012-RULE_20_12-a-2 |
|
974: |
Pointer to object type 'char *' is cast to pointer to different object type 'struct bhead *' |
MISRAC2012-RULE_11_3-a-2 |
|
974: |
Potential macro 'BH' used as '1' parameter of potential macro 'assert' |
MISRAC2012-RULE_20_12-a-2 |
|
974: |
The left hand side operand of the '-' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
994: |
Pointer to object type 'char *' is cast to pointer to different object type 'struct bhead *' |
MISRAC2012-RULE_11_3-a-2 |
|
994: |
Potential macro 'BH' used as '1' parameter of potential macro 'assert' |
MISRAC2012-RULE_20_12-a-2 |
|
994: |
The left hand side operand of the '-' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
995: |
Pointer to object type 'char *' is cast to pointer to different object type 'struct bfhead *' |
MISRAC2012-RULE_11_3-a-2 |
|
995: |
The left hand side operand of the '-' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
1016: |
Pointer to object type 'char *' is cast to pointer to different object type 'struct bfhead *' |
MISRAC2012-RULE_11_3-a-2 |
|
1016: |
The left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
1022: |
Pointer to object type 'char *' is cast to pointer to different object type 'struct bhead *' |
MISRAC2012-RULE_11_3-a-2 |
|
1022: |
Potential macro 'BH' used as '1' parameter of potential macro 'assert' |
MISRAC2012-RULE_20_12-a-2 |
|
1022: |
The left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
1036: |
Pointer to object type 'char *' is cast to pointer to different object type 'struct bfhead *' |
MISRAC2012-RULE_11_3-a-2 |
|
1036: |
The left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
1038: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
1039: |
The left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
1040: |
Composite expression with 'unsigned' essential type category shall not be cast to different essential type category 'signed' |
MISRAC2012-RULE_10_8-a-2 |
|
1040: |
The argument number '3' ('essentially signed' type) is passed to the function 'memset_unchecked' as a parameter with the 'essentially
unsigned' type
|
MISRAC2012-RULE_10_3-b-2 |
|
1060: |
Potential macro 'BH' used as '1' parameter of potential macro 'assert' |
MISRAC2012-RULE_20_12-a-2 |
|
1060: |
Potential macro 'ESent' used as '1' parameter of potential macro 'assert' |
MISRAC2012-RULE_20_12-a-2 |
|
1061: |
Potential macro 'BH' used as '1' parameter of potential macro 'assert' |
MISRAC2012-RULE_20_12-a-2 |
|
1074: |
The argument number '2' ('essentially signed' type) is passed to the function 'tag_asan_free' as a parameter with the 'essentially
unsigned' type
|
MISRAC2012-RULE_10_3-b-2 |
|
1097: |
Function 'bpool' is not in prototype form |
MISRAC2012-RULE_8_2-c-2 |
|
1097: |
Identifiers given in declaration of 'bpool' function (file: 'bget.h', line: '34') are: 'buffer' not: 'buf' |
MISRAC2012-RULE_8_3-b-2 |
|
1097: |
The function 'bpool' is referenced only in the translation unit where it is defined (bget_malloc.c) |
MISRAC2012-RULE_8_7-a-4 |
|
1102: |
Pointer to void type should not be converted to pointer to object type 'struct bfhead *' |
MISRAC2012-RULE_11_5-a-4 |
|
1106: |
Parameter 'len' is modified in function 'bpool' |
MISRAC2012-RULE_17_8-a-4 |
|
1125: |
Potential macro 'ESent' used as '1' parameter of potential macro 'assert' |
MISRAC2012-RULE_20_12-a-2 |
|
1125: |
Shifting operation should be enclosed with if checking that RHS operand does not exceed the upper limit (one less than the
width in bits of the underlying type of the LHS operand)
|
MISRAC2012-RULE_12_2-a-2 |
|
1125: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
1125: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
1150: |
Parameter 'len' is modified in function 'bpool' |
MISRAC2012-RULE_17_8-a-4 |
|
1156: |
Pointer to object type 'char *' is cast to pointer to different object type 'struct bhead *' |
MISRAC2012-RULE_11_3-a-2 |
|
1156: |
The left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
1159: |
The result of comparison is always true or always false |
MISRAC2012-RULE_14_3-i-2 |
|
1160: |
Shifting operation should be enclosed with if checking that RHS operand does not exceed the upper limit (one less than the
width in bits of the underlying type of the LHS operand)
|
MISRAC2012-RULE_12_2-a-2 |
|
1160: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
1167: |
Function 'bstats' is not in prototype form |
MISRAC2012-RULE_8_2-c-2 |
|
1167: |
Pass parameter "poolset" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
1393: |
#include statements are not grouped properly. This is the last #include in file. Some statements are in line 468 |
MISRAC2012-RULE_20_1-a-4 |
|
1598: |
Potential macro 'NULL' used as '1' parameter of potential macro 'assert' |
MISRAC2012-RULE_20_12-a-2 |
|
1602: |
Potential macro 'NULL' used as '1' parameter of potential macro 'assert' |
MISRAC2012-RULE_20_12-a-2 |
|
1640: |
Potential macro 'ExpIncr' used as '1' parameter of potential macro 'assert' |
MISRAC2012-RULE_20_12-a-2 |
| /optee_os_MISRA/isoc/bget.h |
|
21: |
#define _ should directly follow first #ifndef preprocessor directive |
MISRAC2012-DIR_4_10-a-2 |
|
23: |
Do not define function-like macro: _ |
MISRAC2012-DIR_4_9-a-4 |
|
23: |
Do not use reserved identifiers : _ |
MISRAC2012-RULE_21_1-a-2 |
|
23: |
Each instance of parameter: 'x' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
25: |
Do not define function-like macro: _ |
MISRAC2012-DIR_4_9-a-4 |
|
25: |
Do not use reserved identifiers : _ |
MISRAC2012-RULE_21_1-a-2 |
|
31: |
Typedef name 'bufsize' does not contain any digits indicating the size |
MISRAC2012-DIR_4_6-a-4 |
|
31: |
Use type from stdint.h instead of declaring your own type 'bufsize' |
MISRAC2012-DIR_4_6-c-4 |
|
40: |
The 'bectl' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
46: |
The 'bstatse' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
49: |
The 'bufdump' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
50: |
The 'bpoold' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
51: |
The 'bpoolv' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
| /optee_os_MISRA/isoc/bget_malloc.c |
|
8: |
Section of code should not be 'commented out' |
MISRAC2012-DIR_4_4-a-4 |
|
70: |
#undef directive is being used to undefine 'NDEBUG' macro |
MISRAC2012-RULE_20_5-a-4 |
|
121: |
Parameter 'buf' is not used in function 'tag_asan_free' |
MISRAC2012-RULE_2_7-a-4 |
|
121: |
Parameter 'len' is not used in function 'tag_asan_free' |
MISRAC2012-RULE_2_7-a-4 |
|
121: |
Pass parameter "buf" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
125: |
Parameter 'buf' is not used in function 'tag_asan_alloced' |
MISRAC2012-RULE_2_7-a-4 |
|
125: |
Parameter 'len' is not used in function 'tag_asan_alloced' |
MISRAC2012-RULE_2_7-a-4 |
|
125: |
Pass parameter "buf" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
142: |
#include statements are not grouped properly. This is the last #include in file. Some statements are in line 97 |
MISRAC2012-RULE_20_1-a-4 |
|
175: |
Parameter 'ctx' is not used in function 'malloc_lock' |
MISRAC2012-RULE_2_7-a-4 |
|
175: |
Pass parameter "ctx" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
180: |
Parameter 'ctx' is not used in function 'malloc_unlock' |
MISRAC2012-RULE_2_7-a-4 |
|
180: |
Pass parameter "ctx" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
181: |
Parameter 'exceptions' is not used in function 'malloc_unlock' |
MISRAC2012-RULE_2_7-a-4 |
|
187: |
Do not define function-like macro: DEFINE_CTX |
MISRAC2012-DIR_4_9-a-4 |
|
189: |
Each instance of parameter: 'name' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
190: |
Each instance of parameter: 'name' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
192: |
A tag name 'malloc_ctx' is reused |
MISRAC2012-RULE_5_7-a-2 |
|
198: |
Parameter 'ctx' is not used in function 'print_oom' |
MISRAC2012-RULE_2_7-a-4 |
|
198: |
Parameter 'req_size' is not used in function 'print_oom' |
MISRAC2012-RULE_2_7-a-4 |
|
198: |
Pass parameter "ctx" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
208: |
Pass parameter "p" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
212: |
The expression of the 'essentially signed' type is assigned to an object with the 'essentially unsigned' type |
MISRAC2012-RULE_10_3-b-2 |
|
218: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with a narrower essential type (4 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
219: |
The expression of the 'essentially signed' type is assigned to an object with the 'essentially unsigned' type |
MISRAC2012-RULE_10_3-b-2 |
|
246: |
Unused function's "memcpy_unchecked" return value |
MISRAC2012-RULE_17_7-a-2 |
|
247: |
The expression of the 'essentially signed' type is assigned to an object with the 'essentially unsigned' type |
MISRAC2012-RULE_10_3-b-2 |
|
276: |
Parameter 'ctx' is not used in function 'raw_malloc_validate_pools' |
MISRAC2012-RULE_2_7-a-4 |
|
276: |
Pass parameter "ctx" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
290: |
Pointer to void type should not be converted to pointer to object type 'struct bfhead *' |
MISRAC2012-RULE_11_5-a-4 |
|
299: |
Shifting operation should be enclosed with if checking that RHS operand does not exceed the upper limit (one less than the
width in bits of the underlying type of the LHS operand)
|
MISRAC2012-RULE_12_2-a-2 |
|
299: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
316: |
The left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
319: |
Pointer to object type 'uint8_t *' is cast to pointer to different object type 'struct bfhead *' |
MISRAC2012-RULE_11_3-a-2 |
|
319: |
The left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
340: |
Pointer to void type should not be converted to pointer to object type 'struct bfhead *' |
MISRAC2012-RULE_11_5-a-4 |
|
345: |
Do not define function-like macro: BPOOL_FOREACH |
MISRAC2012-DIR_4_9-a-4 |
|
362: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
368: |
The argument number '1' ('essentially unsigned' type) is passed to the function 'bget' as a parameter with the 'essentially
signed' type
|
MISRAC2012-RULE_10_3-b-2 |
|
368: |
The argument number '2' ('essentially unsigned' type) is passed to the function 'bget' as a parameter with the 'essentially
signed' type
|
MISRAC2012-RULE_10_3-b-2 |
|
382: |
The second and third operand have different essential types: 'signed char' and 'unsigned long' |
MISRAC2012-RULE_10_4-b-2 |
|
389: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
390: |
The argument number '3' ('essentially Boolean' type) is passed to the function 'brel' as a parameter with the 'essentially
signed' type
|
MISRAC2012-RULE_10_3-b-2 |
|
403: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
405: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
411: |
The argument number '2' ('essentially unsigned' type) is passed to the function 'bgetz' as a parameter with the 'essentially
signed' type
|
MISRAC2012-RULE_10_3-b-2 |
|
426: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
428: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
449: |
Pointer to object type 'char *' is cast to pointer to different object type 'struct bhead *' |
MISRAC2012-RULE_11_3-a-2 |
|
449: |
Pointer to void type should not be converted to pointer to object type 'char *' |
MISRAC2012-RULE_11_5-a-4 |
|
449: |
The left hand side operand of the '-' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
535: |
Potential macro 'MDBG_HEADER_MAGIC' used as '1' parameter of potential macro 'assert' |
MISRAC2012-RULE_20_12-a-2 |
|
536: |
Potential macro 'MDBG_FOOTER_MAGIC' used as '1' parameter of potential macro 'assert' |
MISRAC2012-RULE_20_12-a-2 |
|
606: |
Do not define function-like macro: realloc_unlocked |
MISRAC2012-DIR_4_9-a-4 |
|
607: |
Each instance of parameter: 'ctx' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
689: |
Reserved name 'malloc' used |
MISRAC2012-RULE_21_2-b-2 |
|
689: |
Reserved name 'malloc' used |
MISRAC2012-RULE_21_2-c-2 |
|
689: |
The identifier 'malloc' has the same name (or the first 31 characters of the name) as the macro defined in the current translation
unit
|
MISRAC2012-RULE_5_5-a-2 |
|
689: |
The identifier 'malloc' has the same name (or the first 63 characters of the name) as the macro defined in the current translation
unit
|
MISRAC2012-RULE_5_5-b-2 |
|
707: |
Reserved name 'calloc' used |
MISRAC2012-RULE_21_2-b-2 |
|
707: |
Reserved name 'calloc' used |
MISRAC2012-RULE_21_2-c-2 |
|
707: |
The identifier 'calloc' has the same name (or the first 31 characters of the name) as the macro defined in the current translation
unit
|
MISRAC2012-RULE_5_5-a-2 |
|
707: |
The identifier 'calloc' has the same name (or the first 63 characters of the name) as the macro defined in the current translation
unit
|
MISRAC2012-RULE_5_5-b-2 |
|
717: |
The identifier 'realloc_unlocked' has the same name (or the first 31 characters of the name) as the macro defined in the current
translation unit
|
MISRAC2012-RULE_5_5-a-2 |
|
717: |
The identifier 'realloc_unlocked' has the same name (or the first 63 characters of the name) as the macro defined in the current
translation unit
|
MISRAC2012-RULE_5_5-b-2 |
|
723: |
Reserved name 'realloc' used |
MISRAC2012-RULE_21_2-b-2 |
|
723: |
Reserved name 'realloc' used |
MISRAC2012-RULE_21_2-c-2 |
|
723: |
The identifier 'realloc' has the same name (or the first 31 characters of the name) as the macro defined in the current translation
unit
|
MISRAC2012-RULE_5_5-a-2 |
|
723: |
The identifier 'realloc' has the same name (or the first 63 characters of the name) as the macro defined in the current translation
unit
|
MISRAC2012-RULE_5_5-b-2 |
|
733: |
The identifier 'memalign' has the same name (or the first 31 characters of the name) as the macro defined in the current translation
unit
|
MISRAC2012-RULE_5_5-a-2 |
|
733: |
The identifier 'memalign' has the same name (or the first 63 characters of the name) as the macro defined in the current translation
unit
|
MISRAC2012-RULE_5_5-b-2 |
|
745: |
The expression of the 'essentially signed' type is assigned to an object with the 'essentially unsigned' type |
MISRAC2012-RULE_10_3-b-2 |
|
751: |
Reserved name 'free' used |
MISRAC2012-RULE_21_2-b-2 |
|
751: |
Reserved name 'free' used |
MISRAC2012-RULE_21_2-c-2 |
|
761: |
Pass parameter "buf" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
766: |
Pointer to void type should not be converted to arithmetic type 'unsigned long' |
MISRAC2012-RULE_11_6-a-2 |
|
770: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
784: |
Arithmetic type 'unsigned long' should not be converted to pointer to void type |
MISRAC2012-RULE_11_6-a-2 |
|
785: |
Arithmetic type 'unsigned long' should not be converted to pointer to void type |
MISRAC2012-RULE_11_6-a-2 |
|
785: |
The argument number '2' ('essentially unsigned' type) is passed to the function 'bpool' as a parameter with the 'essentially
signed' type
|
MISRAC2012-RULE_10_3-b-2 |
|
789: |
Pointer to void type should not be converted to pointer to object type 'struct malloc_pool *' |
MISRAC2012-RULE_11_5-a-4 |
|
790: |
Arithmetic type 'unsigned long' should not be converted to pointer to void type |
MISRAC2012-RULE_11_6-a-2 |
|
793: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with a narrower essential type (4 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
804: |
Pointer to void type should not be converted to pointer to object type 'uint8_t *' |
MISRAC2012-RULE_11_5-a-4 |
|
805: |
The variable 'start_buf' used as the left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
813: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
815: |
Improper expression is used in the first clause of a 'for' statement |
MISRAC2012-RULE_14_2-b-2 |
|
815: |
The second clause of a 'for' statement contains a call of the function that has a persistent side effect: 'bpool_foreach' |
MISRAC2012-RULE_14_2-c-2 |
|
815: |
The second clause of a 'for' statement does not contain a loop counter |
MISRAC2012-RULE_14_2-c-2 |
|
815: |
The third clause of a 'for' statement does not contain an expression which only modifies a loop counter |
MISRAC2012-RULE_14_2-d-2 |
|
820: |
Pointer to void type should not be converted to pointer to object type 'uint8_t *' |
MISRAC2012-RULE_11_5-a-4 |
|
821: |
The variable 'start_b' used as the left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
825: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
836: |
Pass parameter "buf" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
838: |
Pointer to void type should not be converted to arithmetic type 'unsigned long' |
MISRAC2012-RULE_11_6-a-2 |
|
846: |
Only one 'goto' statement in loop is allowed. This loop contains 'goto' in lines: 852, 857 |
MISRAC2012-RULE_15_4-a-4 |
|
847: |
Pointer to void type should not be converted to arithmetic type 'unsigned long' |
MISRAC2012-RULE_11_6-a-2 |
|
852: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
857: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
| /optee_os_MISRA/isoc/fp.c |
|
8: |
Reserved name '_FILE' used |
MISRAC2012-RULE_21_2-a-2 |
|
12: |
Reserved name '_fake_stdout' used |
MISRAC2012-RULE_21_2-a-2 |
|
13: |
Reserved name '_fake_stderr' used |
MISRAC2012-RULE_21_2-a-2 |
|
15: |
Reserved name 'stdout' used |
MISRAC2012-RULE_21_2-b-2 |
|
15: |
Reserved name 'stdout' used |
MISRAC2012-RULE_21_2-c-2 |
|
16: |
Reserved name 'stderr' used |
MISRAC2012-RULE_21_2-b-2 |
|
16: |
Reserved name 'stderr' used |
MISRAC2012-RULE_21_2-c-2 |
| /optee_os_MISRA/isoc/fputc.c |
|
9: |
Pass parameter "stream" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
9: |
Reserved name 'fputc' used |
MISRAC2012-RULE_21_2-b-2 |
|
9: |
Reserved name 'fputc' used |
MISRAC2012-RULE_21_2-c-2 |
|
12: |
The 'abort' library function should not be used |
MISRAC2012-RULE_21_8-a-2 |
|
14: |
Usage of 'putchar' function is not allowed |
MISRAC2012-RULE_21_6-a-2 |
| /optee_os_MISRA/isoc/fputs.c |
|
10: |
Pass parameter "stream" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
10: |
Reserved name 'fputs' used |
MISRAC2012-RULE_21_2-b-2 |
|
10: |
Reserved name 'fputs' used |
MISRAC2012-RULE_21_2-c-2 |
|
13: |
The 'abort' library function should not be used |
MISRAC2012-RULE_21_8-a-2 |
| /optee_os_MISRA/isoc/fwrite.c |
|
10: |
Pass parameter "stream" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
10: |
Reserved name 'fwrite' used |
MISRAC2012-RULE_21_2-b-2 |
|
10: |
Reserved name 'fwrite' used |
MISRAC2012-RULE_21_2-c-2 |
|
19: |
The 'abort' library function should not be used |
MISRAC2012-RULE_21_8-a-2 |
|
21: |
The expression of the 'essentially signed' type is returned from function 'fwrite' with the 'essentially unsigned' type |
MISRAC2012-RULE_10_3-b-2 |
| /optee_os_MISRA/isoc/include/assert.h |
|
11: |
Reserved name '_assert_break' used |
MISRAC2012-RULE_21_2-a-2 |
|
11: |
The '_assert_break' function should not be declared with the '_Noreturn' specifier |
MISRAC2012-RULE_1_4-b-2 |
|
12: |
A tag name 'file' is reused |
MISRAC2012-RULE_5_7-a-2 |
|
12: |
Reserved name '_assert_log' used |
MISRAC2012-RULE_21_2-a-2 |
|
12: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
17: |
Do not define function-like macro: assert |
MISRAC2012-DIR_4_9-a-4 |
|
17: |
Do not use reserved identifiers : assert |
MISRAC2012-RULE_21_1-b-2 |
|
17: |
Do not use reserved identifiers : assert |
MISRAC2012-RULE_21_1-c-2 |
|
19: |
Do not define function-like macro: assert |
MISRAC2012-DIR_4_9-a-4 |
|
19: |
Do not use reserved identifiers : assert |
MISRAC2012-RULE_21_1-b-2 |
|
19: |
Do not use reserved identifiers : assert |
MISRAC2012-RULE_21_1-c-2 |
|
22: |
Preprocessor operator # should not be used |
MISRAC2012-RULE_20_10-a-4 |
|
28: |
Do not define function-like macro: COMPILE_TIME_ASSERT |
MISRAC2012-DIR_4_9-a-4 |
| /optee_os_MISRA/isoc/include/ctype.h |
|
6: |
Do not use reserved identifiers : __CTYPE_H |
MISRAC2012-RULE_21_1-a-2 |
|
8: |
Reserved name 'isalnum' used |
MISRAC2012-RULE_21_2-b-2 |
|
8: |
Reserved name 'isalnum' used |
MISRAC2012-RULE_21_2-c-2 |
|
8: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
8: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
9: |
Reserved name 'isalpha' used |
MISRAC2012-RULE_21_2-b-2 |
|
9: |
Reserved name 'isalpha' used |
MISRAC2012-RULE_21_2-c-2 |
|
9: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
9: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
10: |
Reserved name 'iscntrl' used |
MISRAC2012-RULE_21_2-b-2 |
|
10: |
Reserved name 'iscntrl' used |
MISRAC2012-RULE_21_2-c-2 |
|
10: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
10: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
11: |
Reserved name 'isdigit' used |
MISRAC2012-RULE_21_2-b-2 |
|
11: |
Reserved name 'isdigit' used |
MISRAC2012-RULE_21_2-c-2 |
|
11: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
11: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
12: |
Reserved name 'isgraph' used |
MISRAC2012-RULE_21_2-b-2 |
|
12: |
Reserved name 'isgraph' used |
MISRAC2012-RULE_21_2-c-2 |
|
12: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
12: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
13: |
Reserved name 'islower' used |
MISRAC2012-RULE_21_2-b-2 |
|
13: |
Reserved name 'islower' used |
MISRAC2012-RULE_21_2-c-2 |
|
13: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
13: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
14: |
Reserved name 'isprint' used |
MISRAC2012-RULE_21_2-b-2 |
|
14: |
Reserved name 'isprint' used |
MISRAC2012-RULE_21_2-c-2 |
|
14: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
14: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
15: |
Reserved name 'ispunct' used |
MISRAC2012-RULE_21_2-b-2 |
|
15: |
Reserved name 'ispunct' used |
MISRAC2012-RULE_21_2-c-2 |
|
15: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
15: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
16: |
Reserved name 'isspace' used |
MISRAC2012-RULE_21_2-b-2 |
|
16: |
Reserved name 'isspace' used |
MISRAC2012-RULE_21_2-c-2 |
|
16: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
16: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
17: |
Reserved name 'isupper' used |
MISRAC2012-RULE_21_2-b-2 |
|
17: |
Reserved name 'isupper' used |
MISRAC2012-RULE_21_2-c-2 |
|
17: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
17: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
18: |
Reserved name 'isxdigit' used |
MISRAC2012-RULE_21_2-b-2 |
|
18: |
Reserved name 'isxdigit' used |
MISRAC2012-RULE_21_2-c-2 |
|
18: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
18: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
19: |
Reserved name 'tolower' used |
MISRAC2012-RULE_21_2-b-2 |
|
19: |
Reserved name 'tolower' used |
MISRAC2012-RULE_21_2-c-2 |
|
19: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
19: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
20: |
Reserved name 'toupper' used |
MISRAC2012-RULE_21_2-b-2 |
|
20: |
Reserved name 'toupper' used |
MISRAC2012-RULE_21_2-c-2 |
|
20: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
20: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
| /optee_os_MISRA/isoc/include/inttypes.h |
|
11: |
Do not use reserved identifiers : __PRI64_PREFIX |
MISRAC2012-RULE_21_1-a-2 |
|
14: |
Do not use reserved identifiers : __PRI64_PREFIX |
MISRAC2012-RULE_21_1-a-2 |
|
16: |
Do not use reserved identifiers : __PRIPTR_PREFIX |
MISRAC2012-RULE_21_1-a-2 |
|
18: |
Do not use reserved identifiers : PRId8 |
MISRAC2012-RULE_21_1-c-2 |
|
19: |
Do not use reserved identifiers : PRId16 |
MISRAC2012-RULE_21_1-c-2 |
|
20: |
Do not use reserved identifiers : PRId32 |
MISRAC2012-RULE_21_1-c-2 |
|
21: |
Do not use reserved identifiers : PRId64 |
MISRAC2012-RULE_21_1-c-2 |
|
22: |
Do not use reserved identifiers : PRIdPTR |
MISRAC2012-RULE_21_1-c-2 |
|
24: |
Do not use reserved identifiers : PRIi8 |
MISRAC2012-RULE_21_1-c-2 |
|
25: |
Do not use reserved identifiers : PRIi16 |
MISRAC2012-RULE_21_1-c-2 |
|
26: |
Do not use reserved identifiers : PRIi32 |
MISRAC2012-RULE_21_1-c-2 |
|
27: |
Do not use reserved identifiers : PRIi64 |
MISRAC2012-RULE_21_1-c-2 |
|
28: |
Do not use reserved identifiers : PRIiPTR |
MISRAC2012-RULE_21_1-c-2 |
|
30: |
Do not use reserved identifiers : PRIo8 |
MISRAC2012-RULE_21_1-c-2 |
|
31: |
Do not use reserved identifiers : PRIo16 |
MISRAC2012-RULE_21_1-c-2 |
|
32: |
Do not use reserved identifiers : PRIo32 |
MISRAC2012-RULE_21_1-c-2 |
|
33: |
Do not use reserved identifiers : PRIo64 |
MISRAC2012-RULE_21_1-c-2 |
|
34: |
Do not use reserved identifiers : PRIoPTR |
MISRAC2012-RULE_21_1-c-2 |
|
36: |
Do not use reserved identifiers : PRIu8 |
MISRAC2012-RULE_21_1-c-2 |
|
37: |
Do not use reserved identifiers : PRIu16 |
MISRAC2012-RULE_21_1-c-2 |
|
38: |
Do not use reserved identifiers : PRIu32 |
MISRAC2012-RULE_21_1-c-2 |
|
39: |
Do not use reserved identifiers : PRIu64 |
MISRAC2012-RULE_21_1-c-2 |
|
40: |
Do not use reserved identifiers : PRIuPTR |
MISRAC2012-RULE_21_1-c-2 |
|
42: |
Do not use reserved identifiers : PRIx8 |
MISRAC2012-RULE_21_1-c-2 |
|
43: |
Do not use reserved identifiers : PRIx16 |
MISRAC2012-RULE_21_1-c-2 |
|
44: |
Do not use reserved identifiers : PRIx32 |
MISRAC2012-RULE_21_1-c-2 |
|
45: |
Do not use reserved identifiers : PRIx64 |
MISRAC2012-RULE_21_1-c-2 |
|
46: |
Do not use reserved identifiers : PRIxPTR |
MISRAC2012-RULE_21_1-c-2 |
|
48: |
Do not use reserved identifiers : PRIX8 |
MISRAC2012-RULE_21_1-c-2 |
|
49: |
Do not use reserved identifiers : PRIX16 |
MISRAC2012-RULE_21_1-c-2 |
|
50: |
Do not use reserved identifiers : PRIX32 |
MISRAC2012-RULE_21_1-c-2 |
|
51: |
Do not use reserved identifiers : PRIX64 |
MISRAC2012-RULE_21_1-c-2 |
|
52: |
Do not use reserved identifiers : PRIXPTR |
MISRAC2012-RULE_21_1-c-2 |
| /optee_os_MISRA/isoc/include/limits.h |
|
8: |
Do not use reserved identifiers : CHAR_BIT |
MISRAC2012-RULE_21_1-c-2 |
|
11: |
Do not use reserved identifiers : CHAR_MAX |
MISRAC2012-RULE_21_1-c-2 |
|
12: |
Do not use reserved identifiers : CHAR_MIN |
MISRAC2012-RULE_21_1-c-2 |
|
14: |
Do not use reserved identifiers : CHAR_MAX |
MISRAC2012-RULE_21_1-c-2 |
|
15: |
Do not use reserved identifiers : CHAR_MIN |
MISRAC2012-RULE_21_1-c-2 |
|
18: |
Do not use reserved identifiers : INT_MAX |
MISRAC2012-RULE_21_1-c-2 |
|
19: |
Do not use reserved identifiers : INT_MIN |
MISRAC2012-RULE_21_1-c-2 |
|
21: |
Do not use reserved identifiers : LONG_MAX |
MISRAC2012-RULE_21_1-c-2 |
|
22: |
Do not use reserved identifiers : LONG_MIN |
MISRAC2012-RULE_21_1-c-2 |
|
24: |
Do not use reserved identifiers : LLONG_MAX |
MISRAC2012-RULE_21_1-c-2 |
|
25: |
Do not use reserved identifiers : LLONG_MIN |
MISRAC2012-RULE_21_1-c-2 |
|
27: |
Do not use reserved identifiers : MB_LEN_MAX |
MISRAC2012-RULE_21_1-c-2 |
|
29: |
Do not use reserved identifiers : SCHAR_MAX |
MISRAC2012-RULE_21_1-c-2 |
|
30: |
Do not use reserved identifiers : SCHAR_MIN |
MISRAC2012-RULE_21_1-c-2 |
|
32: |
Do not use reserved identifiers : SHRT_MAX |
MISRAC2012-RULE_21_1-c-2 |
|
33: |
Do not use reserved identifiers : SHRT_MIN |
MISRAC2012-RULE_21_1-c-2 |
|
35: |
Macro might be not defined: __INT_MAX__ |
MISRAC2012-RULE_20_9-b-2 |
|
35: |
Macro might be not defined: __SCHAR_MAX__ |
MISRAC2012-RULE_20_9-b-2 |
|
36: |
Do not use reserved identifiers : UCHAR_MAX |
MISRAC2012-RULE_21_1-c-2 |
|
38: |
Do not use reserved identifiers : UCHAR_MAX |
MISRAC2012-RULE_21_1-c-2 |
|
41: |
Macro might be not defined: __INT_MAX__ |
MISRAC2012-RULE_20_9-b-2 |
|
41: |
Macro might be not defined: __SHRT_MAX__ |
MISRAC2012-RULE_20_9-b-2 |
|
42: |
Do not use reserved identifiers : USHRT_MAX |
MISRAC2012-RULE_21_1-c-2 |
|
44: |
Do not use reserved identifiers : USHRT_MAX |
MISRAC2012-RULE_21_1-c-2 |
|
47: |
Do not use reserved identifiers : UINT_MAX |
MISRAC2012-RULE_21_1-c-2 |
|
49: |
Do not use reserved identifiers : ULONG_MAX |
MISRAC2012-RULE_21_1-c-2 |
|
50: |
Do not use reserved identifiers : ULLONG_MAX |
MISRAC2012-RULE_21_1-c-2 |
| /optee_os_MISRA/isoc/include/malloc.h |
|
11: |
Reserved name 'free' used |
MISRAC2012-RULE_21_2-b-2 |
|
11: |
Reserved name 'free' used |
MISRAC2012-RULE_21_2-c-2 |
|
15: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
16: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
17: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
18: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
21: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
23: |
Do not define function-like macro: malloc |
MISRAC2012-DIR_4_9-a-4 |
|
23: |
Do not use reserved identifiers : malloc |
MISRAC2012-RULE_21_1-b-2 |
|
23: |
Do not use reserved identifiers : malloc |
MISRAC2012-RULE_21_1-c-2 |
|
24: |
Do not define function-like macro: calloc |
MISRAC2012-DIR_4_9-a-4 |
|
24: |
Do not use reserved identifiers : calloc |
MISRAC2012-RULE_21_1-b-2 |
|
24: |
Do not use reserved identifiers : calloc |
MISRAC2012-RULE_21_1-c-2 |
|
26: |
Do not define function-like macro: realloc |
MISRAC2012-DIR_4_9-a-4 |
|
26: |
Do not use reserved identifiers : realloc |
MISRAC2012-RULE_21_1-b-2 |
|
26: |
Do not use reserved identifiers : realloc |
MISRAC2012-RULE_21_1-c-2 |
|
28: |
Do not define function-like macro: memalign |
MISRAC2012-DIR_4_9-a-4 |
|
33: |
Reserved name 'malloc' used |
MISRAC2012-RULE_21_2-b-2 |
|
33: |
Reserved name 'malloc' used |
MISRAC2012-RULE_21_2-c-2 |
|
33: |
The identifier 'malloc' has the same name (or the first 31 characters of the name) as the macro defined in the current translation
unit
|
MISRAC2012-RULE_5_5-a-2 |
|
33: |
The identifier 'malloc' has the same name (or the first 63 characters of the name) as the macro defined in the current translation
unit
|
MISRAC2012-RULE_5_5-b-2 |
|
34: |
Reserved name 'calloc' used |
MISRAC2012-RULE_21_2-b-2 |
|
34: |
Reserved name 'calloc' used |
MISRAC2012-RULE_21_2-c-2 |
|
34: |
The identifier 'calloc' has the same name (or the first 31 characters of the name) as the macro defined in the current translation
unit
|
MISRAC2012-RULE_5_5-a-2 |
|
34: |
The identifier 'calloc' has the same name (or the first 63 characters of the name) as the macro defined in the current translation
unit
|
MISRAC2012-RULE_5_5-b-2 |
|
35: |
Reserved name 'realloc' used |
MISRAC2012-RULE_21_2-b-2 |
|
35: |
Reserved name 'realloc' used |
MISRAC2012-RULE_21_2-c-2 |
|
35: |
The identifier 'realloc' has the same name (or the first 31 characters of the name) as the macro defined in the current translation
unit
|
MISRAC2012-RULE_5_5-a-2 |
|
35: |
The identifier 'realloc' has the same name (or the first 63 characters of the name) as the macro defined in the current translation
unit
|
MISRAC2012-RULE_5_5-b-2 |
|
36: |
The identifier 'memalign' has the same name (or the first 31 characters of the name) as the macro defined in the current translation
unit
|
MISRAC2012-RULE_5_5-a-2 |
|
36: |
The identifier 'memalign' has the same name (or the first 63 characters of the name) as the macro defined in the current translation
unit
|
MISRAC2012-RULE_5_5-b-2 |
|
38: |
Do not define function-like macro: mdbg_check |
MISRAC2012-DIR_4_9-a-4 |
|
70: |
Consider hiding the implementation of the structure 'malloc_stats' in a translation unit 'abort.c' |
MISRAC2012-DIR_4_8-a-4 |
|
70: |
Consider hiding the implementation of the structure 'malloc_stats' in a translation unit 'aes-cts.c' |
MISRAC2012-DIR_4_8-a-4 |
|
70: |
Consider hiding the implementation of the structure 'malloc_stats' in a translation unit 'aes-gcm.c' |
MISRAC2012-DIR_4_8-a-4 |
|
70: |
Consider hiding the implementation of the structure 'malloc_stats' in a translation unit 'arch_svc.c' |
MISRAC2012-DIR_4_8-a-4 |
|
70: |
Consider hiding the implementation of the structure 'malloc_stats' in a translation unit 'asm-defines.c' |
MISRAC2012-DIR_4_8-a-4 |
|
70: |
Consider hiding the implementation of the structure 'malloc_stats' in a translation unit 'boot.c' |
MISRAC2012-DIR_4_8-a-4 |
|
70: |
Consider hiding the implementation of the structure 'malloc_stats' in a translation unit 'cache.c' |
MISRAC2012-DIR_4_8-a-4 |
|
70: |
Consider hiding the implementation of the structure 'malloc_stats' in a translation unit 'cbc-mac.c' |
MISRAC2012-DIR_4_8-a-4 |
|
70: |
Consider hiding the implementation of the structure 'malloc_stats' in a translation unit 'console.c' |
MISRAC2012-DIR_4_8-a-4 |
|
70: |
Consider hiding the implementation of the structure 'malloc_stats' in a translation unit 'core_mmu.c' |
MISRAC2012-DIR_4_8-a-4 |
|
70: |
Consider hiding the implementation of the structure 'malloc_stats' in a translation unit 'core_mmu_lpae.c' |
MISRAC2012-DIR_4_8-a-4 |
|
70: |
Consider hiding the implementation of the structure 'malloc_stats' in a translation unit 'crypto.c' |
MISRAC2012-DIR_4_8-a-4 |
|
70: |
Consider hiding the implementation of the structure 'malloc_stats' in a translation unit 'dlfcn.c' |
MISRAC2012-DIR_4_8-a-4 |
|
70: |
Consider hiding the implementation of the structure 'malloc_stats' in a translation unit 'dt.c' |
MISRAC2012-DIR_4_8-a-4 |
|
70: |
Consider hiding the implementation of the structure 'malloc_stats' in a translation unit 'entry_fast.c' |
MISRAC2012-DIR_4_8-a-4 |
|
70: |
Consider hiding the implementation of the structure 'malloc_stats' in a translation unit 'entry_std.c' |
MISRAC2012-DIR_4_8-a-4 |
|
70: |
Consider hiding the implementation of the structure 'malloc_stats' in a translation unit 'handle.c' |
MISRAC2012-DIR_4_8-a-4 |
|
70: |
Consider hiding the implementation of the structure 'malloc_stats' in a translation unit 'ldelf_loader.c' |
MISRAC2012-DIR_4_8-a-4 |
|
70: |
Consider hiding the implementation of the structure 'malloc_stats' in a translation unit 'ldelf_syscalls.c' |
MISRAC2012-DIR_4_8-a-4 |
|
70: |
Consider hiding the implementation of the structure 'malloc_stats' in a translation unit 'link_dummies_init.c' |
MISRAC2012-DIR_4_8-a-4 |
|
70: |
Consider hiding the implementation of the structure 'malloc_stats' in a translation unit 'link_dummies_paged.c' |
MISRAC2012-DIR_4_8-a-4 |
|
70: |
Consider hiding the implementation of the structure 'malloc_stats' in a translation unit 'main.c' |
MISRAC2012-DIR_4_8-a-4 |
|
70: |
Consider hiding the implementation of the structure 'malloc_stats' in a translation unit 'mobj.c' |
MISRAC2012-DIR_4_8-a-4 |
|
70: |
Consider hiding the implementation of the structure 'malloc_stats' in a translation unit 'mobj_dyn_shm.c' |
MISRAC2012-DIR_4_8-a-4 |
|
70: |
Consider hiding the implementation of the structure 'malloc_stats' in a translation unit 'msg_param.c' |
MISRAC2012-DIR_4_8-a-4 |
|
70: |
Consider hiding the implementation of the structure 'malloc_stats' in a translation unit 'mutex.c' |
MISRAC2012-DIR_4_8-a-4 |
|
70: |
Consider hiding the implementation of the structure 'malloc_stats' in a translation unit 'otp_stubs.c' |
MISRAC2012-DIR_4_8-a-4 |
|
70: |
Consider hiding the implementation of the structure 'malloc_stats' in a translation unit 'panic.c' |
MISRAC2012-DIR_4_8-a-4 |
|
70: |
Consider hiding the implementation of the structure 'malloc_stats' in a translation unit 'pgt_cache.c' |
MISRAC2012-DIR_4_8-a-4 |
|
70: |
Consider hiding the implementation of the structure 'malloc_stats' in a translation unit 'pm.c' |
MISRAC2012-DIR_4_8-a-4 |
|
70: |
Consider hiding the implementation of the structure 'malloc_stats' in a translation unit 'pseudo_ta.c' |
MISRAC2012-DIR_4_8-a-4 |
|
70: |
Consider hiding the implementation of the structure 'malloc_stats' in a translation unit 'ree_fs_ta.c' |
MISRAC2012-DIR_4_8-a-4 |
|
70: |
Consider hiding the implementation of the structure 'malloc_stats' in a translation unit 'rng_fortuna.c' |
MISRAC2012-DIR_4_8-a-4 |
|
70: |
Consider hiding the implementation of the structure 'malloc_stats' in a translation unit 'rpc_io_i2c.c' |
MISRAC2012-DIR_4_8-a-4 |
|
70: |
Consider hiding the implementation of the structure 'malloc_stats' in a translation unit 'signed_hdr.c' |
MISRAC2012-DIR_4_8-a-4 |
|
70: |
Consider hiding the implementation of the structure 'malloc_stats' in a translation unit 'sm3-hash.c' |
MISRAC2012-DIR_4_8-a-4 |
|
70: |
Consider hiding the implementation of the structure 'malloc_stats' in a translation unit 'sm3-hmac.c' |
MISRAC2012-DIR_4_8-a-4 |
|
70: |
Consider hiding the implementation of the structure 'malloc_stats' in a translation unit 'sm4-cbc.c' |
MISRAC2012-DIR_4_8-a-4 |
|
70: |
Consider hiding the implementation of the structure 'malloc_stats' in a translation unit 'sm4-ctr.c' |
MISRAC2012-DIR_4_8-a-4 |
|
70: |
Consider hiding the implementation of the structure 'malloc_stats' in a translation unit 'sm4-ecb.c' |
MISRAC2012-DIR_4_8-a-4 |
|
70: |
Consider hiding the implementation of the structure 'malloc_stats' in a translation unit 'spin_lock_debug.c' |
MISRAC2012-DIR_4_8-a-4 |
|
70: |
Consider hiding the implementation of the structure 'malloc_stats' in a translation unit 'ta_elf.c' |
MISRAC2012-DIR_4_8-a-4 |
|
70: |
Consider hiding the implementation of the structure 'malloc_stats' in a translation unit 'tcb.c' |
MISRAC2012-DIR_4_8-a-4 |
|
70: |
Consider hiding the implementation of the structure 'malloc_stats' in a translation unit 'tee_api.c' |
MISRAC2012-DIR_4_8-a-4 |
|
70: |
Consider hiding the implementation of the structure 'malloc_stats' in a translation unit 'tee_api_objects.c' |
MISRAC2012-DIR_4_8-a-4 |
|
70: |
Consider hiding the implementation of the structure 'malloc_stats' in a translation unit 'tee_api_operations.c' |
MISRAC2012-DIR_4_8-a-4 |
|
70: |
Consider hiding the implementation of the structure 'malloc_stats' in a translation unit 'tee_api_property.c' |
MISRAC2012-DIR_4_8-a-4 |
|
70: |
Consider hiding the implementation of the structure 'malloc_stats' in a translation unit 'tee_time.c' |
MISRAC2012-DIR_4_8-a-4 |
|
70: |
Consider hiding the implementation of the structure 'malloc_stats' in a translation unit 'tee_time_arm_cntpct.c' |
MISRAC2012-DIR_4_8-a-4 |
|
70: |
Consider hiding the implementation of the structure 'malloc_stats' in a translation unit 'thread.c' |
MISRAC2012-DIR_4_8-a-4 |
|
70: |
Consider hiding the implementation of the structure 'malloc_stats' in a translation unit 'thread_optee_smc.c' |
MISRAC2012-DIR_4_8-a-4 |
|
70: |
Consider hiding the implementation of the structure 'malloc_stats' in a translation unit 'timer_a64.c' |
MISRAC2012-DIR_4_8-a-4 |
|
70: |
Consider hiding the implementation of the structure 'malloc_stats' in a translation unit 'trace_ext.c' |
MISRAC2012-DIR_4_8-a-4 |
|
70: |
Consider hiding the implementation of the structure 'malloc_stats' in a translation unit 'unwind_arm64.c' |
MISRAC2012-DIR_4_8-a-4 |
|
70: |
Consider hiding the implementation of the structure 'malloc_stats' in a translation unit 'user_ta_entry.c' |
MISRAC2012-DIR_4_8-a-4 |
|
70: |
Consider hiding the implementation of the structure 'malloc_stats' in a translation unit 'vendor_props.c' |
MISRAC2012-DIR_4_8-a-4 |
|
91: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
92: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
93: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
94: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
97: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
99: |
Do not define function-like macro: nex_malloc |
MISRAC2012-DIR_4_9-a-4 |
|
100: |
Do not define function-like macro: nex_calloc |
MISRAC2012-DIR_4_9-a-4 |
|
102: |
Do not define function-like macro: nex_realloc |
MISRAC2012-DIR_4_9-a-4 |
|
104: |
Do not define function-like macro: nex_memalign |
MISRAC2012-DIR_4_9-a-4 |
|
114: |
Do not define function-like macro: nex_mdbg_check |
MISRAC2012-DIR_4_9-a-4 |
|
133: |
Do not define function-like macro: nex_free |
MISRAC2012-DIR_4_9-a-4 |
|
134: |
Do not define function-like macro: nex_malloc |
MISRAC2012-DIR_4_9-a-4 |
|
135: |
Do not define function-like macro: nex_calloc |
MISRAC2012-DIR_4_9-a-4 |
|
135: |
Each instance of parameter: 'nmemb' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
135: |
Each instance of parameter: 'size' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
136: |
Do not define function-like macro: nex_realloc |
MISRAC2012-DIR_4_9-a-4 |
|
136: |
Each instance of parameter: 'ptr' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
136: |
Each instance of parameter: 'size' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
137: |
Do not define function-like macro: nex_memalign |
MISRAC2012-DIR_4_9-a-4 |
|
137: |
Each instance of parameter: 'alignment' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
137: |
Each instance of parameter: 'size' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
| /optee_os_MISRA/isoc/include/stdint.h |
|
6: |
Whole code in file should be secured from multiple inclusion |
MISRAC2012-DIR_4_10-a-2 |
|
15: |
Do not use reserved identifiers : _STDINT_H |
MISRAC2012-RULE_21_1-a-2 |
|
24: |
Macro might be not defined: __SIZEOF_INT__ |
MISRAC2012-RULE_20_9-b-2 |
|
24: |
Macro might be not defined: __SIZEOF_LONG__ |
MISRAC2012-RULE_20_9-b-2 |
|
24: |
Macro might be not defined: __SIZEOF_POINTER__ |
MISRAC2012-RULE_20_9-b-2 |
|
25: |
Do not use reserved identifiers : __ILP32__ |
MISRAC2012-RULE_21_1-a-2 |
|
27: |
Macro might be not defined: __SIZEOF_INT__ |
MISRAC2012-RULE_20_9-b-2 |
|
27: |
Macro might be not defined: __SIZEOF_LONG__ |
MISRAC2012-RULE_20_9-b-2 |
|
27: |
Macro might be not defined: __SIZEOF_POINTER__ |
MISRAC2012-RULE_20_9-b-2 |
|
28: |
Do not use reserved identifiers : __LP64__ |
MISRAC2012-RULE_21_1-a-2 |
|
41: |
Do not use reserved identifiers : __int8_t_defined |
MISRAC2012-RULE_21_1-a-2 |
|
42: |
Reserved name 'int8_t' used |
MISRAC2012-RULE_21_2-c-2 |
|
42: |
Use type from stdint.h instead of declaring your own type 'int8_t' |
MISRAC2012-DIR_4_6-c-4 |
|
43: |
Reserved name 'int16_t' used |
MISRAC2012-RULE_21_2-c-2 |
|
43: |
Use type from stdint.h instead of declaring your own type 'int16_t' |
MISRAC2012-DIR_4_6-c-4 |
|
44: |
Reserved name 'int32_t' used |
MISRAC2012-RULE_21_2-c-2 |
|
44: |
Use type from stdint.h instead of declaring your own type 'int32_t' |
MISRAC2012-DIR_4_6-c-4 |
|
50: |
Reserved name 'int64_t' used |
MISRAC2012-RULE_21_2-c-2 |
|
50: |
Use type from stdint.h instead of declaring your own type 'int64_t' |
MISRAC2012-DIR_4_6-c-4 |
|
55: |
Reserved name 'uint8_t' used |
MISRAC2012-RULE_21_2-c-2 |
|
55: |
Use type from stdint.h instead of declaring your own type 'uint8_t' |
MISRAC2012-DIR_4_6-c-4 |
|
56: |
Reserved name 'uint16_t' used |
MISRAC2012-RULE_21_2-c-2 |
|
56: |
Use type from stdint.h instead of declaring your own type 'uint16_t' |
MISRAC2012-DIR_4_6-c-4 |
|
58: |
Reserved name 'uint32_t' used |
MISRAC2012-RULE_21_2-c-2 |
|
58: |
Use type from stdint.h instead of declaring your own type 'uint32_t' |
MISRAC2012-DIR_4_6-c-4 |
|
59: |
Do not use reserved identifiers : __uint32_t_defined |
MISRAC2012-RULE_21_1-a-2 |
|
66: |
Reserved name 'uint64_t' used |
MISRAC2012-RULE_21_2-c-2 |
|
66: |
Use type from stdint.h instead of declaring your own type 'uint64_t' |
MISRAC2012-DIR_4_6-c-4 |
|
70: |
Reserved name 'int_least8_t' used |
MISRAC2012-RULE_21_2-c-2 |
|
71: |
Reserved name 'int_least16_t' used |
MISRAC2012-RULE_21_2-c-2 |
|
72: |
Reserved name 'int_least32_t' used |
MISRAC2012-RULE_21_2-c-2 |
|
73: |
Reserved name 'int_least64_t' used |
MISRAC2012-RULE_21_2-c-2 |
|
74: |
Reserved name 'uint_least8_t' used |
MISRAC2012-RULE_21_2-c-2 |
|
75: |
Reserved name 'uint_least16_t' used |
MISRAC2012-RULE_21_2-c-2 |
|
76: |
Reserved name 'uint_least32_t' used |
MISRAC2012-RULE_21_2-c-2 |
|
77: |
Reserved name 'uint_least64_t' used |
MISRAC2012-RULE_21_2-c-2 |
|
80: |
Reserved name 'int_fast8_t' used |
MISRAC2012-RULE_21_2-c-2 |
|
81: |
Reserved name 'int_fast16_t' used |
MISRAC2012-RULE_21_2-c-2 |
|
82: |
Reserved name 'int_fast32_t' used |
MISRAC2012-RULE_21_2-c-2 |
|
83: |
Reserved name 'int_fast64_t' used |
MISRAC2012-RULE_21_2-c-2 |
|
84: |
Reserved name 'uint_fast8_t' used |
MISRAC2012-RULE_21_2-c-2 |
|
85: |
Reserved name 'uint_fast16_t' used |
MISRAC2012-RULE_21_2-c-2 |
|
86: |
Reserved name 'uint_fast32_t' used |
MISRAC2012-RULE_21_2-c-2 |
|
87: |
Reserved name 'uint_fast64_t' used |
MISRAC2012-RULE_21_2-c-2 |
|
90: |
Reserved name 'intptr_t' used |
MISRAC2012-RULE_21_2-c-2 |
|
90: |
Typedef name 'intptr_t' does not contain any digits indicating the size |
MISRAC2012-DIR_4_6-a-4 |
|
90: |
Use type from stdint.h instead of declaring your own type 'intptr_t' |
MISRAC2012-DIR_4_6-c-4 |
|
91: |
Reserved name 'uintptr_t' used |
MISRAC2012-RULE_21_2-c-2 |
|
91: |
Typedef name 'uintptr_t' does not contain any digits indicating the size |
MISRAC2012-DIR_4_6-a-4 |
|
91: |
Use type from stdint.h instead of declaring your own type 'uintptr_t' |
MISRAC2012-DIR_4_6-c-4 |
|
93: |
Reserved name 'intmax_t' used |
MISRAC2012-RULE_21_2-c-2 |
|
94: |
Reserved name 'uintmax_t' used |
MISRAC2012-RULE_21_2-c-2 |
|
104: |
Do not use reserved identifiers : INT8_MIN |
MISRAC2012-RULE_21_1-c-2 |
|
105: |
Do not use reserved identifiers : INT16_MIN |
MISRAC2012-RULE_21_1-c-2 |
|
106: |
Do not use reserved identifiers : INT32_MIN |
MISRAC2012-RULE_21_1-c-2 |
|
107: |
Do not use reserved identifiers : INT64_MIN |
MISRAC2012-RULE_21_1-c-2 |
|
109: |
Do not use reserved identifiers : INT8_MAX |
MISRAC2012-RULE_21_1-c-2 |
|
110: |
Do not use reserved identifiers : INT16_MAX |
MISRAC2012-RULE_21_1-c-2 |
|
111: |
Do not use reserved identifiers : INT32_MAX |
MISRAC2012-RULE_21_1-c-2 |
|
112: |
Do not use reserved identifiers : INT64_MAX |
MISRAC2012-RULE_21_1-c-2 |
|
114: |
Do not use reserved identifiers : UINT8_MAX |
MISRAC2012-RULE_21_1-c-2 |
|
115: |
Do not use reserved identifiers : UINT16_MAX |
MISRAC2012-RULE_21_1-c-2 |
|
116: |
Do not use reserved identifiers : UINT32_MAX |
MISRAC2012-RULE_21_1-c-2 |
|
117: |
Do not use reserved identifiers : UINT64_MAX |
MISRAC2012-RULE_21_1-c-2 |
|
121: |
Do not use reserved identifiers : INT_LEAST8_MIN |
MISRAC2012-RULE_21_1-c-2 |
|
122: |
Do not use reserved identifiers : INT_LEAST16_MIN |
MISRAC2012-RULE_21_1-c-2 |
|
123: |
Do not use reserved identifiers : INT_LEAST32_MIN |
MISRAC2012-RULE_21_1-c-2 |
|
124: |
Do not use reserved identifiers : INT_LEAST64_MIN |
MISRAC2012-RULE_21_1-c-2 |
|
126: |
Do not use reserved identifiers : INT_LEAST8_MAX |
MISRAC2012-RULE_21_1-c-2 |
|
127: |
Do not use reserved identifiers : INT_LEAST16_MAX |
MISRAC2012-RULE_21_1-c-2 |
|
128: |
Do not use reserved identifiers : INT_LEAST32_MAX |
MISRAC2012-RULE_21_1-c-2 |
|
129: |
Do not use reserved identifiers : INT_LEAST64_MAX |
MISRAC2012-RULE_21_1-c-2 |
|
131: |
Do not use reserved identifiers : UINT_LEAST8_MAX |
MISRAC2012-RULE_21_1-c-2 |
|
132: |
Do not use reserved identifiers : UINT_LEAST16_MAX |
MISRAC2012-RULE_21_1-c-2 |
|
133: |
Do not use reserved identifiers : UINT_LEAST32_MAX |
MISRAC2012-RULE_21_1-c-2 |
|
134: |
Do not use reserved identifiers : UINT_LEAST64_MAX |
MISRAC2012-RULE_21_1-c-2 |
|
138: |
Do not use reserved identifiers : INT_FAST8_MIN |
MISRAC2012-RULE_21_1-c-2 |
|
139: |
Do not use reserved identifiers : INT_FAST16_MIN |
MISRAC2012-RULE_21_1-c-2 |
|
140: |
Do not use reserved identifiers : INT_FAST32_MIN |
MISRAC2012-RULE_21_1-c-2 |
|
141: |
Do not use reserved identifiers : INT_FAST64_MIN |
MISRAC2012-RULE_21_1-c-2 |
|
143: |
Do not use reserved identifiers : INT_FAST8_MAX |
MISRAC2012-RULE_21_1-c-2 |
|
144: |
Do not use reserved identifiers : INT_FAST16_MAX |
MISRAC2012-RULE_21_1-c-2 |
|
145: |
Do not use reserved identifiers : INT_FAST32_MAX |
MISRAC2012-RULE_21_1-c-2 |
|
146: |
Do not use reserved identifiers : INT_FAST64_MAX |
MISRAC2012-RULE_21_1-c-2 |
|
148: |
Do not use reserved identifiers : UINT_FAST8_MAX |
MISRAC2012-RULE_21_1-c-2 |
|
149: |
Do not use reserved identifiers : UINT_FAST16_MAX |
MISRAC2012-RULE_21_1-c-2 |
|
150: |
Do not use reserved identifiers : UINT_FAST32_MAX |
MISRAC2012-RULE_21_1-c-2 |
|
151: |
Do not use reserved identifiers : UINT_FAST64_MAX |
MISRAC2012-RULE_21_1-c-2 |
|
155: |
Do not use reserved identifiers : INTPTR_MIN |
MISRAC2012-RULE_21_1-c-2 |
|
156: |
Do not use reserved identifiers : INTPTR_MAX |
MISRAC2012-RULE_21_1-c-2 |
|
157: |
Do not use reserved identifiers : UINTPTR_MAX |
MISRAC2012-RULE_21_1-c-2 |
|
160: |
Do not use reserved identifiers : INTMAX_MAX |
MISRAC2012-RULE_21_1-c-2 |
|
161: |
Do not use reserved identifiers : INTMAX_MIN |
MISRAC2012-RULE_21_1-c-2 |
|
162: |
Do not use reserved identifiers : UINTMAX_MAX |
MISRAC2012-RULE_21_1-c-2 |
|
165: |
Do not use reserved identifiers : SIZE_MAX |
MISRAC2012-RULE_21_1-c-2 |
|
172: |
Do not define function-like macro: U |
MISRAC2012-DIR_4_9-a-4 |
|
172: |
Each instance of parameter: 'v' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
173: |
Do not define function-like macro: UL |
MISRAC2012-DIR_4_9-a-4 |
|
173: |
Each instance of parameter: 'v' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
174: |
Do not define function-like macro: ULL |
MISRAC2012-DIR_4_9-a-4 |
|
174: |
Each instance of parameter: 'v' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
175: |
Do not define function-like macro: L |
MISRAC2012-DIR_4_9-a-4 |
|
175: |
Each instance of parameter: 'v' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
176: |
Do not define function-like macro: LL |
MISRAC2012-DIR_4_9-a-4 |
|
176: |
Each instance of parameter: 'v' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
178: |
Do not define function-like macro: U |
MISRAC2012-DIR_4_9-a-4 |
|
178: |
Preprocessor operator ## should not be used |
MISRAC2012-RULE_20_10-a-4 |
|
179: |
Do not define function-like macro: UL |
MISRAC2012-DIR_4_9-a-4 |
|
179: |
Preprocessor operator ## should not be used |
MISRAC2012-RULE_20_10-a-4 |
|
180: |
Do not define function-like macro: ULL |
MISRAC2012-DIR_4_9-a-4 |
|
180: |
Preprocessor operator ## should not be used |
MISRAC2012-RULE_20_10-a-4 |
|
181: |
Do not define function-like macro: L |
MISRAC2012-DIR_4_9-a-4 |
|
181: |
Preprocessor operator ## should not be used |
MISRAC2012-RULE_20_10-a-4 |
|
182: |
Do not define function-like macro: LL |
MISRAC2012-DIR_4_9-a-4 |
|
182: |
Preprocessor operator ## should not be used |
MISRAC2012-RULE_20_10-a-4 |
|
187: |
Do not define function-like macro: INT8_C |
MISRAC2012-DIR_4_9-a-4 |
|
187: |
Do not use reserved identifiers : INT8_C |
MISRAC2012-RULE_21_1-c-2 |
|
187: |
Each instance of parameter: 'v' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
188: |
Do not define function-like macro: UINT8_C |
MISRAC2012-DIR_4_9-a-4 |
|
188: |
Do not use reserved identifiers : UINT8_C |
MISRAC2012-RULE_21_1-c-2 |
|
188: |
Each instance of parameter: 'v' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
189: |
Do not define function-like macro: INT16_C |
MISRAC2012-DIR_4_9-a-4 |
|
189: |
Do not use reserved identifiers : INT16_C |
MISRAC2012-RULE_21_1-c-2 |
|
189: |
Each instance of parameter: 'v' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
190: |
Do not define function-like macro: UINT16_C |
MISRAC2012-DIR_4_9-a-4 |
|
190: |
Do not use reserved identifiers : UINT16_C |
MISRAC2012-RULE_21_1-c-2 |
|
190: |
Each instance of parameter: 'v' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
191: |
Do not define function-like macro: INT32_C |
MISRAC2012-DIR_4_9-a-4 |
|
191: |
Do not use reserved identifiers : INT32_C |
MISRAC2012-RULE_21_1-c-2 |
|
191: |
Each instance of parameter: 'v' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
192: |
Do not define function-like macro: UINT32_C |
MISRAC2012-DIR_4_9-a-4 |
|
192: |
Do not use reserved identifiers : UINT32_C |
MISRAC2012-RULE_21_1-c-2 |
|
194: |
Do not define function-like macro: INT64_C |
MISRAC2012-DIR_4_9-a-4 |
|
194: |
Do not use reserved identifiers : INT64_C |
MISRAC2012-RULE_21_1-c-2 |
|
195: |
Do not define function-like macro: UINT64_C |
MISRAC2012-DIR_4_9-a-4 |
|
195: |
Do not use reserved identifiers : UINT64_C |
MISRAC2012-RULE_21_1-c-2 |
|
198: |
Do not define function-like macro: INT64_C |
MISRAC2012-DIR_4_9-a-4 |
|
198: |
Do not use reserved identifiers : INT64_C |
MISRAC2012-RULE_21_1-c-2 |
|
199: |
Do not define function-like macro: UINT64_C |
MISRAC2012-DIR_4_9-a-4 |
|
199: |
Do not use reserved identifiers : UINT64_C |
MISRAC2012-RULE_21_1-c-2 |
|
202: |
Do not define function-like macro: UINTPTR_C |
MISRAC2012-DIR_4_9-a-4 |
|
206: |
Do not define function-like macro: INTMAX_C |
MISRAC2012-DIR_4_9-a-4 |
|
206: |
Do not use reserved identifiers : INTMAX_C |
MISRAC2012-RULE_21_1-c-2 |
|
207: |
Do not define function-like macro: UINTMAX_C |
MISRAC2012-DIR_4_9-a-4 |
|
207: |
Do not use reserved identifiers : UINTMAX_C |
MISRAC2012-RULE_21_1-c-2 |
| /optee_os_MISRA/isoc/include/stdio.h |
|
11: |
Reserved name 'FILE' used |
MISRAC2012-RULE_21_2-b-2 |
|
11: |
Reserved name 'FILE' used |
MISRAC2012-RULE_21_2-c-2 |
|
13: |
Reserved name 'printf' used |
MISRAC2012-RULE_21_2-b-2 |
|
13: |
Reserved name 'printf' used |
MISRAC2012-RULE_21_2-c-2 |
|
13: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
16: |
Reserved name 'sprintf' used |
MISRAC2012-RULE_21_2-b-2 |
|
16: |
Reserved name 'sprintf' used |
MISRAC2012-RULE_21_2-c-2 |
|
16: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
19: |
Reserved name 'snprintf' used |
MISRAC2012-RULE_21_2-c-2 |
|
19: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
21: |
Reserved name 'vsnprintf' used |
MISRAC2012-RULE_21_2-c-2 |
|
21: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
21: |
The identifier 'va_list' shall not be used |
MISRAC2012-RULE_17_1-a-2 |
|
21: |
The identifier 'va_list' shall not be used |
MISRAC2012-RULE_17_1-b-2 |
|
21: |
The names of the identifiers 'vsnprintf' and '__vsnprintf' (line: 23 in the 'printk.h' file) differ only in the presence/absence
of the underscore character
|
MISRAC2012-DIR_4_5-a-4 |
|
24: |
Reserved name 'puts' used |
MISRAC2012-RULE_21_2-b-2 |
|
24: |
Reserved name 'puts' used |
MISRAC2012-RULE_21_2-c-2 |
|
24: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
25: |
Reserved name 'putchar' used |
MISRAC2012-RULE_21_2-b-2 |
|
25: |
Reserved name 'putchar' used |
MISRAC2012-RULE_21_2-c-2 |
|
25: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
25: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
29: |
Reserved name 'stdout' used |
MISRAC2012-RULE_21_2-b-2 |
|
29: |
Reserved name 'stdout' used |
MISRAC2012-RULE_21_2-c-2 |
|
30: |
Reserved name 'stderr' used |
MISRAC2012-RULE_21_2-b-2 |
|
30: |
Reserved name 'stderr' used |
MISRAC2012-RULE_21_2-c-2 |
|
38: |
Reserved name 'fputc' used |
MISRAC2012-RULE_21_2-b-2 |
|
38: |
Reserved name 'fputc' used |
MISRAC2012-RULE_21_2-c-2 |
|
38: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
38: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
39: |
Reserved name 'fputs' used |
MISRAC2012-RULE_21_2-b-2 |
|
39: |
Reserved name 'fputs' used |
MISRAC2012-RULE_21_2-c-2 |
|
39: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
40: |
Reserved name 'fwrite' used |
MISRAC2012-RULE_21_2-b-2 |
|
40: |
Reserved name 'fwrite' used |
MISRAC2012-RULE_21_2-c-2 |
| /optee_os_MISRA/isoc/include/stdlib.h |
|
19: |
Names shall be given for all parameters in a function type 'int (const void *, const void *)' |
MISRAC2012-RULE_8_2-b-2 |
|
19: |
Reserved name 'qsort' used |
MISRAC2012-RULE_21_2-b-2 |
|
19: |
Reserved name 'qsort' used |
MISRAC2012-RULE_21_2-c-2 |
|
19: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
21: |
Reserved name 'abort' used |
MISRAC2012-RULE_21_2-b-2 |
|
21: |
Reserved name 'abort' used |
MISRAC2012-RULE_21_2-c-2 |
|
21: |
The 'abort' function should not be declared with the '_Noreturn' specifier |
MISRAC2012-RULE_1_4-b-2 |
|
23: |
Reserved name 'abs' used |
MISRAC2012-RULE_21_2-b-2 |
|
23: |
Reserved name 'abs' used |
MISRAC2012-RULE_21_2-c-2 |
|
23: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
23: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
26: |
Do not use reserved identifiers : RAND_MAX |
MISRAC2012-RULE_21_1-b-2 |
|
26: |
Do not use reserved identifiers : RAND_MAX |
MISRAC2012-RULE_21_1-c-2 |
|
27: |
Reserved name 'rand' used |
MISRAC2012-RULE_21_2-b-2 |
|
27: |
Reserved name 'rand' used |
MISRAC2012-RULE_21_2-c-2 |
|
27: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
29: |
Reserved name '_strtoul' used |
MISRAC2012-RULE_21_2-a-2 |
|
29: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
29: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
30: |
Reserved name 'strtoul' used |
MISRAC2012-RULE_21_2-b-2 |
|
30: |
Reserved name 'strtoul' used |
MISRAC2012-RULE_21_2-c-2 |
|
30: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
30: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
30: |
The names of the identifiers 'strtoul' and '_strtoul' (line: 29 in the 'stdlib.h' file) differ only in the presence/absence
of the underscore character
|
MISRAC2012-DIR_4_5-a-4 |
| /optee_os_MISRA/isoc/include/string.h |
|
17: |
Parameter number '1' type in function 'memcpy' is non compatible with corresponding parameter type in other declaration |
MISRAC2012-RULE_8_3-a-2 |
|
17: |
Parameter number '1' type in function 'memcpy' is non compatible with corresponding parameter type in other declaration |
MISRAC2012-RULE_8_4-b-2 |
|
17: |
Parameter number '2' type in function 'memcpy' is non compatible with corresponding parameter type in other declaration |
MISRAC2012-RULE_8_3-a-2 |
|
17: |
Parameter number '2' type in function 'memcpy' is non compatible with corresponding parameter type in other declaration |
MISRAC2012-RULE_8_4-b-2 |
|
17: |
Reserved name 'memcpy' used |
MISRAC2012-RULE_21_2-b-2 |
|
17: |
Reserved name 'memcpy' used |
MISRAC2012-RULE_21_2-c-2 |
|
18: |
Reserved name 'memmove' used |
MISRAC2012-RULE_21_2-b-2 |
|
18: |
Reserved name 'memmove' used |
MISRAC2012-RULE_21_2-c-2 |
|
19: |
Reserved name 'memcmp' used |
MISRAC2012-RULE_21_2-b-2 |
|
19: |
Reserved name 'memcmp' used |
MISRAC2012-RULE_21_2-c-2 |
|
19: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
20: |
Reserved name 'memset' used |
MISRAC2012-RULE_21_2-b-2 |
|
20: |
Reserved name 'memset' used |
MISRAC2012-RULE_21_2-c-2 |
|
20: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
22: |
Reserved name 'strcmp' used |
MISRAC2012-RULE_21_2-b-2 |
|
22: |
Reserved name 'strcmp' used |
MISRAC2012-RULE_21_2-c-2 |
|
22: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
23: |
Reserved name 'strncmp' used |
MISRAC2012-RULE_21_2-b-2 |
|
23: |
Reserved name 'strncmp' used |
MISRAC2012-RULE_21_2-c-2 |
|
23: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
24: |
Reserved name 'strlen' used |
MISRAC2012-RULE_21_2-b-2 |
|
24: |
Reserved name 'strlen' used |
MISRAC2012-RULE_21_2-c-2 |
|
25: |
The identifier 'strnlen' has the same name (or the first 31 characters of the name) as the macro defined in the current translation
unit
|
MISRAC2012-RULE_5_5-a-2 |
|
25: |
The identifier 'strnlen' has the same name (or the first 63 characters of the name) as the macro defined in the current translation
unit
|
MISRAC2012-RULE_5_5-b-2 |
|
28: |
Reserved name 'strchr' used |
MISRAC2012-RULE_21_2-b-2 |
|
28: |
Reserved name 'strchr' used |
MISRAC2012-RULE_21_2-c-2 |
|
28: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
29: |
Reserved name 'strstr' used |
MISRAC2012-RULE_21_2-b-2 |
|
29: |
Reserved name 'strstr' used |
MISRAC2012-RULE_21_2-c-2 |
|
30: |
Reserved name 'strcpy' used |
MISRAC2012-RULE_21_2-b-2 |
|
30: |
Reserved name 'strcpy' used |
MISRAC2012-RULE_21_2-c-2 |
|
31: |
Parameter number '1' type in function 'strncpy' is non compatible with corresponding parameter type in other declaration |
MISRAC2012-RULE_8_3-a-2 |
|
31: |
Parameter number '1' type in function 'strncpy' is non compatible with corresponding parameter type in other declaration |
MISRAC2012-RULE_8_4-b-2 |
|
31: |
Parameter number '2' type in function 'strncpy' is non compatible with corresponding parameter type in other declaration |
MISRAC2012-RULE_8_3-a-2 |
|
31: |
Parameter number '2' type in function 'strncpy' is non compatible with corresponding parameter type in other declaration |
MISRAC2012-RULE_8_4-b-2 |
|
31: |
Reserved name 'strncpy' used |
MISRAC2012-RULE_21_2-b-2 |
|
31: |
Reserved name 'strncpy' used |
MISRAC2012-RULE_21_2-c-2 |
|
32: |
Reserved name 'strrchr' used |
MISRAC2012-RULE_21_2-b-2 |
|
32: |
Reserved name 'strrchr' used |
MISRAC2012-RULE_21_2-c-2 |
|
32: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
34: |
Reserved name 'memchr' used |
MISRAC2012-RULE_21_2-b-2 |
|
34: |
Reserved name 'memchr' used |
MISRAC2012-RULE_21_2-c-2 |
|
34: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
| /optee_os_MISRA/isoc/include/strings.h |
|
6: |
Do not use reserved identifiers : __STRINGS_H |
MISRAC2012-RULE_21_1-a-2 |
| /optee_os_MISRA/isoc/include/sys/cdefs.h |
|
14: |
Macro might be not defined: __GNUC_MINOR__ |
MISRAC2012-RULE_20_9-b-2 |
|
14: |
Macro might be not defined: __GNUC__ |
MISRAC2012-RULE_20_9-b-2 |
|
15: |
Macro might be not defined: __STDC_VERSION__ |
MISRAC2012-RULE_20_9-b-2 |
|
16: |
Do not use reserved identifiers : __restrict |
MISRAC2012-RULE_21_1-a-2 |
|
18: |
Do not use reserved identifiers : __restrict |
MISRAC2012-RULE_21_1-a-2 |
|
18: |
The 'restrict' type qualifier is used |
MISRAC2012-RULE_8_14-a-2 |
|
22: |
Do not use reserved identifiers : __always_inline |
MISRAC2012-RULE_21_1-a-2 |
| /optee_os_MISRA/isoc/include/sys/queue.h |
|
36: |
Do not use reserved identifiers : _SYS_QUEUE_H_ |
MISRAC2012-RULE_21_1-a-2 |
|
38: |
Section of code should not be 'commented out' |
MISRAC2012-DIR_4_4-a-4 |
|
89: |
Do not define function-like macro: LIST_HEAD |
MISRAC2012-DIR_4_9-a-4 |
|
94: |
Do not define function-like macro: LIST_HEAD_INITIALIZER |
MISRAC2012-DIR_4_9-a-4 |
|
97: |
Do not define function-like macro: LIST_ENTRY |
MISRAC2012-DIR_4_9-a-4 |
|
107: |
Do not define function-like macro: QUEUEDEBUG_LIST_INSERT_HEAD |
MISRAC2012-DIR_4_9-a-4 |
|
111: |
Do not define function-like macro: QUEUEDEBUG_LIST_OP |
MISRAC2012-DIR_4_9-a-4 |
|
118: |
Do not define function-like macro: QUEUEDEBUG_LIST_POSTREMOVE |
MISRAC2012-DIR_4_9-a-4 |
|
122: |
Do not define function-like macro: QUEUEDEBUG_LIST_INSERT_HEAD |
MISRAC2012-DIR_4_9-a-4 |
|
123: |
Do not define function-like macro: QUEUEDEBUG_LIST_OP |
MISRAC2012-DIR_4_9-a-4 |
|
124: |
Do not define function-like macro: QUEUEDEBUG_LIST_POSTREMOVE |
MISRAC2012-DIR_4_9-a-4 |
|
127: |
Do not define function-like macro: LIST_INIT |
MISRAC2012-DIR_4_9-a-4 |
|
131: |
Do not define function-like macro: LIST_INSERT_AFTER |
MISRAC2012-DIR_4_9-a-4 |
|
132: |
Each instance of parameter: 'field' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
140: |
Do not define function-like macro: LIST_INSERT_BEFORE |
MISRAC2012-DIR_4_9-a-4 |
|
141: |
Each instance of parameter: 'field' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
148: |
Do not define function-like macro: LIST_INSERT_HEAD |
MISRAC2012-DIR_4_9-a-4 |
|
149: |
Each instance of parameter: 'field' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
156: |
Do not define function-like macro: LIST_REMOVE |
MISRAC2012-DIR_4_9-a-4 |
|
157: |
Each instance of parameter: 'field' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
162: |
Each instance of parameter: 'field' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
165: |
Do not define function-like macro: LIST_FOREACH |
MISRAC2012-DIR_4_9-a-4 |
|
173: |
Do not define function-like macro: LIST_EMPTY |
MISRAC2012-DIR_4_9-a-4 |
|
174: |
Do not define function-like macro: LIST_FIRST |
MISRAC2012-DIR_4_9-a-4 |
|
175: |
Do not define function-like macro: LIST_NEXT |
MISRAC2012-DIR_4_9-a-4 |
|
177: |
Do not define function-like macro: LIST_FOREACH_SAFE |
MISRAC2012-DIR_4_9-a-4 |
|
179: |
Each instance of parameter: 'field' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
185: |
Do not define function-like macro: SLIST_HEAD |
MISRAC2012-DIR_4_9-a-4 |
|
190: |
Do not define function-like macro: SLIST_HEAD_INITIALIZER |
MISRAC2012-DIR_4_9-a-4 |
|
193: |
Do not define function-like macro: SLIST_ENTRY |
MISRAC2012-DIR_4_9-a-4 |
|
201: |
Do not define function-like macro: SLIST_INIT |
MISRAC2012-DIR_4_9-a-4 |
|
205: |
Do not define function-like macro: SLIST_INSERT_AFTER |
MISRAC2012-DIR_4_9-a-4 |
|
210: |
Do not define function-like macro: SLIST_INSERT_HEAD |
MISRAC2012-DIR_4_9-a-4 |
|
215: |
Do not define function-like macro: SLIST_REMOVE_HEAD |
MISRAC2012-DIR_4_9-a-4 |
|
219: |
Do not define function-like macro: SLIST_REMOVE |
MISRAC2012-DIR_4_9-a-4 |
|
221: |
Each instance of parameter: 'field' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
232: |
Do not define function-like macro: SLIST_REMOVE_AFTER |
MISRAC2012-DIR_4_9-a-4 |
|
234: |
Each instance of parameter: 'field' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
234: |
Each instance of parameter: 'field' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
237: |
Do not define function-like macro: SLIST_FOREACH |
MISRAC2012-DIR_4_9-a-4 |
|
243: |
Do not define function-like macro: SLIST_EMPTY |
MISRAC2012-DIR_4_9-a-4 |
|
244: |
Do not define function-like macro: SLIST_FIRST |
MISRAC2012-DIR_4_9-a-4 |
|
245: |
Do not define function-like macro: SLIST_NEXT |
MISRAC2012-DIR_4_9-a-4 |
|
250: |
Do not define function-like macro: STAILQ_HEAD |
MISRAC2012-DIR_4_9-a-4 |
|
256: |
Do not define function-like macro: STAILQ_HEAD_INITIALIZER |
MISRAC2012-DIR_4_9-a-4 |
|
259: |
Do not define function-like macro: STAILQ_ENTRY |
MISRAC2012-DIR_4_9-a-4 |
|
267: |
Do not define function-like macro: STAILQ_INIT |
MISRAC2012-DIR_4_9-a-4 |
|
272: |
Do not define function-like macro: STAILQ_INSERT_HEAD |
MISRAC2012-DIR_4_9-a-4 |
|
278: |
Do not define function-like macro: STAILQ_INSERT_TAIL |
MISRAC2012-DIR_4_9-a-4 |
|
284: |
Do not define function-like macro: STAILQ_INSERT_AFTER |
MISRAC2012-DIR_4_9-a-4 |
|
290: |
Do not define function-like macro: STAILQ_REMOVE_HEAD |
MISRAC2012-DIR_4_9-a-4 |
|
295: |
Do not define function-like macro: STAILQ_REMOVE |
MISRAC2012-DIR_4_9-a-4 |
|
297: |
Each instance of parameter: 'field' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
308: |
Do not define function-like macro: STAILQ_REMOVE_AFTER |
MISRAC2012-DIR_4_9-a-4 |
|
309: |
Each instance of parameter: 'elm' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
309: |
Each instance of parameter: 'field' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
310: |
Each instance of parameter: 'elm' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
310: |
Each instance of parameter: 'field' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
310: |
Each instance of parameter: 'field' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
311: |
Each instance of parameter: 'field' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
314: |
Do not define function-like macro: STAILQ_FOREACH |
MISRAC2012-DIR_4_9-a-4 |
|
319: |
Do not define function-like macro: STAILQ_FOREACH_SAFE |
MISRAC2012-DIR_4_9-a-4 |
|
321: |
Each instance of parameter: 'field' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
324: |
Do not define function-like macro: STAILQ_CONCAT |
MISRAC2012-DIR_4_9-a-4 |
|
335: |
Do not define function-like macro: STAILQ_EMPTY |
MISRAC2012-DIR_4_9-a-4 |
|
336: |
Do not define function-like macro: STAILQ_FIRST |
MISRAC2012-DIR_4_9-a-4 |
|
337: |
Do not define function-like macro: STAILQ_NEXT |
MISRAC2012-DIR_4_9-a-4 |
|
342: |
Do not define function-like macro: SIMPLEQ_HEAD |
MISRAC2012-DIR_4_9-a-4 |
|
348: |
Do not define function-like macro: SIMPLEQ_HEAD_INITIALIZER |
MISRAC2012-DIR_4_9-a-4 |
|
351: |
Do not define function-like macro: SIMPLEQ_ENTRY |
MISRAC2012-DIR_4_9-a-4 |
|
359: |
Do not define function-like macro: SIMPLEQ_INIT |
MISRAC2012-DIR_4_9-a-4 |
|
364: |
Do not define function-like macro: SIMPLEQ_INSERT_HEAD |
MISRAC2012-DIR_4_9-a-4 |
|
370: |
Do not define function-like macro: SIMPLEQ_INSERT_TAIL |
MISRAC2012-DIR_4_9-a-4 |
|
376: |
Do not define function-like macro: SIMPLEQ_INSERT_AFTER |
MISRAC2012-DIR_4_9-a-4 |
|
382: |
Do not define function-like macro: SIMPLEQ_REMOVE_HEAD |
MISRAC2012-DIR_4_9-a-4 |
|
387: |
Do not define function-like macro: SIMPLEQ_REMOVE |
MISRAC2012-DIR_4_9-a-4 |
|
389: |
Each instance of parameter: 'field' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
400: |
Do not define function-like macro: SIMPLEQ_FOREACH |
MISRAC2012-DIR_4_9-a-4 |
|
408: |
Do not define function-like macro: SIMPLEQ_EMPTY |
MISRAC2012-DIR_4_9-a-4 |
|
409: |
Do not define function-like macro: SIMPLEQ_FIRST |
MISRAC2012-DIR_4_9-a-4 |
|
410: |
Do not define function-like macro: SIMPLEQ_NEXT |
MISRAC2012-DIR_4_9-a-4 |
|
415: |
Do not define function-like macro: _TAILQ_HEAD |
MISRAC2012-DIR_4_9-a-4 |
|
415: |
Do not use reserved identifiers : _TAILQ_HEAD |
MISRAC2012-RULE_21_1-a-2 |
|
418: |
Each instance of parameter: 'qual' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
420: |
Do not define function-like macro: TAILQ_HEAD |
MISRAC2012-DIR_4_9-a-4 |
|
420: |
Each instance of parameter: 'name' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
422: |
Do not define function-like macro: TAILQ_HEAD_INITIALIZER |
MISRAC2012-DIR_4_9-a-4 |
|
425: |
Do not define function-like macro: _TAILQ_ENTRY |
MISRAC2012-DIR_4_9-a-4 |
|
425: |
Do not use reserved identifiers : _TAILQ_ENTRY |
MISRAC2012-RULE_21_1-a-2 |
|
428: |
Each instance of parameter: 'qual' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
430: |
Do not define function-like macro: TAILQ_ENTRY |
MISRAC2012-DIR_4_9-a-4 |
|
436: |
Do not define function-like macro: QUEUEDEBUG_TAILQ_INSERT_HEAD |
MISRAC2012-DIR_4_9-a-4 |
|
440: |
Do not define function-like macro: QUEUEDEBUG_TAILQ_INSERT_TAIL |
MISRAC2012-DIR_4_9-a-4 |
|
443: |
Do not define function-like macro: QUEUEDEBUG_TAILQ_OP |
MISRAC2012-DIR_4_9-a-4 |
|
450: |
Do not define function-like macro: QUEUEDEBUG_TAILQ_PREREMOVE |
MISRAC2012-DIR_4_9-a-4 |
|
455: |
Do not define function-like macro: QUEUEDEBUG_TAILQ_POSTREMOVE |
MISRAC2012-DIR_4_9-a-4 |
|
459: |
Do not define function-like macro: QUEUEDEBUG_TAILQ_INSERT_HEAD |
MISRAC2012-DIR_4_9-a-4 |
|
460: |
Do not define function-like macro: QUEUEDEBUG_TAILQ_INSERT_TAIL |
MISRAC2012-DIR_4_9-a-4 |
|
461: |
Do not define function-like macro: QUEUEDEBUG_TAILQ_OP |
MISRAC2012-DIR_4_9-a-4 |
|
462: |
Do not define function-like macro: QUEUEDEBUG_TAILQ_PREREMOVE |
MISRAC2012-DIR_4_9-a-4 |
|
463: |
Do not define function-like macro: QUEUEDEBUG_TAILQ_POSTREMOVE |
MISRAC2012-DIR_4_9-a-4 |
|
466: |
Do not define function-like macro: TAILQ_INIT |
MISRAC2012-DIR_4_9-a-4 |
|
471: |
Do not define function-like macro: TAILQ_INSERT_HEAD |
MISRAC2012-DIR_4_9-a-4 |
|
472: |
Each instance of parameter: 'field' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
482: |
Do not define function-like macro: TAILQ_INSERT_TAIL |
MISRAC2012-DIR_4_9-a-4 |
|
483: |
Each instance of parameter: 'field' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
490: |
Do not define function-like macro: TAILQ_INSERT_AFTER |
MISRAC2012-DIR_4_9-a-4 |
|
491: |
Each instance of parameter: 'field' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
501: |
Do not define function-like macro: TAILQ_INSERT_BEFORE |
MISRAC2012-DIR_4_9-a-4 |
|
502: |
Each instance of parameter: 'field' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
509: |
Do not define function-like macro: TAILQ_REMOVE |
MISRAC2012-DIR_4_9-a-4 |
|
510: |
Each instance of parameter: 'field' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
511: |
Each instance of parameter: 'field' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
518: |
Each instance of parameter: 'field' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
521: |
Do not define function-like macro: TAILQ_FOREACH |
MISRAC2012-DIR_4_9-a-4 |
|
526: |
Do not define function-like macro: TAILQ_FOREACH_SAFE |
MISRAC2012-DIR_4_9-a-4 |
|
528: |
Each instance of parameter: 'field' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
528: |
Each instance of parameter: 'var' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
531: |
Do not define function-like macro: TAILQ_FOREACH_REVERSE |
MISRAC2012-DIR_4_9-a-4 |
|
536: |
Do not define function-like macro: TAILQ_FOREACH_REVERSE_SAFE |
MISRAC2012-DIR_4_9-a-4 |
|
537: |
Each instance of parameter: 'headname' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
538: |
Each instance of parameter: 'field' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
538: |
Each instance of parameter: 'headname' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
541: |
Do not define function-like macro: TAILQ_CONCAT |
MISRAC2012-DIR_4_9-a-4 |
|
553: |
Do not define function-like macro: TAILQ_EMPTY |
MISRAC2012-DIR_4_9-a-4 |
|
554: |
Do not define function-like macro: TAILQ_FIRST |
MISRAC2012-DIR_4_9-a-4 |
|
555: |
Do not define function-like macro: TAILQ_NEXT |
MISRAC2012-DIR_4_9-a-4 |
|
557: |
Do not define function-like macro: TAILQ_LAST |
MISRAC2012-DIR_4_9-a-4 |
|
559: |
Do not define function-like macro: TAILQ_PREV |
MISRAC2012-DIR_4_9-a-4 |
|
566: |
Do not define function-like macro: QUEUEDEBUG_CIRCLEQ_HEAD |
MISRAC2012-DIR_4_9-a-4 |
|
575: |
Do not define function-like macro: QUEUEDEBUG_CIRCLEQ_ELM |
MISRAC2012-DIR_4_9-a-4 |
|
594: |
Do not define function-like macro: QUEUEDEBUG_CIRCLEQ_POSTREMOVE |
MISRAC2012-DIR_4_9-a-4 |
|
598: |
Do not define function-like macro: QUEUEDEBUG_CIRCLEQ_HEAD |
MISRAC2012-DIR_4_9-a-4 |
|
599: |
Do not define function-like macro: QUEUEDEBUG_CIRCLEQ_ELM |
MISRAC2012-DIR_4_9-a-4 |
|
600: |
Do not define function-like macro: QUEUEDEBUG_CIRCLEQ_POSTREMOVE |
MISRAC2012-DIR_4_9-a-4 |
|
603: |
Do not define function-like macro: CIRCLEQ_HEAD |
MISRAC2012-DIR_4_9-a-4 |
|
609: |
Do not define function-like macro: CIRCLEQ_HEAD_INITIALIZER |
MISRAC2012-DIR_4_9-a-4 |
|
610: |
Each instance of parameter: 'head' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
610: |
Each instance of parameter: 'head' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
612: |
Do not define function-like macro: CIRCLEQ_ENTRY |
MISRAC2012-DIR_4_9-a-4 |
|
621: |
Do not define function-like macro: CIRCLEQ_INIT |
MISRAC2012-DIR_4_9-a-4 |
|
626: |
Do not define function-like macro: CIRCLEQ_INSERT_AFTER |
MISRAC2012-DIR_4_9-a-4 |
|
627: |
Each instance of parameter: 'field' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
628: |
Each instance of parameter: 'field' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
638: |
Do not define function-like macro: CIRCLEQ_INSERT_BEFORE |
MISRAC2012-DIR_4_9-a-4 |
|
639: |
Each instance of parameter: 'field' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
640: |
Each instance of parameter: 'field' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
650: |
Do not define function-like macro: CIRCLEQ_INSERT_HEAD |
MISRAC2012-DIR_4_9-a-4 |
|
651: |
Each instance of parameter: 'field' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
661: |
Do not define function-like macro: CIRCLEQ_INSERT_TAIL |
MISRAC2012-DIR_4_9-a-4 |
|
662: |
Each instance of parameter: 'field' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
672: |
Do not define function-like macro: CIRCLEQ_REMOVE |
MISRAC2012-DIR_4_9-a-4 |
|
673: |
Each instance of parameter: 'field' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
674: |
Each instance of parameter: 'field' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
685: |
Each instance of parameter: 'field' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
688: |
Do not define function-like macro: CIRCLEQ_FOREACH |
MISRAC2012-DIR_4_9-a-4 |
|
693: |
Do not define function-like macro: CIRCLEQ_FOREACH_REVERSE |
MISRAC2012-DIR_4_9-a-4 |
|
701: |
Do not define function-like macro: CIRCLEQ_EMPTY |
MISRAC2012-DIR_4_9-a-4 |
|
702: |
Do not define function-like macro: CIRCLEQ_FIRST |
MISRAC2012-DIR_4_9-a-4 |
|
703: |
Do not define function-like macro: CIRCLEQ_LAST |
MISRAC2012-DIR_4_9-a-4 |
|
704: |
Do not define function-like macro: CIRCLEQ_NEXT |
MISRAC2012-DIR_4_9-a-4 |
|
705: |
Do not define function-like macro: CIRCLEQ_PREV |
MISRAC2012-DIR_4_9-a-4 |
|
707: |
Do not define function-like macro: CIRCLEQ_LOOP_NEXT |
MISRAC2012-DIR_4_9-a-4 |
|
710: |
Each instance of parameter: 'elm' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
711: |
Do not define function-like macro: CIRCLEQ_LOOP_PREV |
MISRAC2012-DIR_4_9-a-4 |
|
714: |
Each instance of parameter: 'elm' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
| /optee_os_MISRA/isoc/include/unistd.h |
|
11: |
Do not use reserved identifiers : __ssize_t_defined |
MISRAC2012-RULE_21_1-a-2 |
|
15: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
| /optee_os_MISRA/isoc/isalnum.c |
|
7: |
Reserved name 'isalnum' used |
MISRAC2012-RULE_21_2-b-2 |
|
7: |
Reserved name 'isalnum' used |
MISRAC2012-RULE_21_2-c-2 |
|
9: |
The expression of the 'essentially Boolean' type is returned from function 'isalnum' with the 'essentially signed' type |
MISRAC2012-RULE_10_3-b-2 |
| /optee_os_MISRA/isoc/isalpha.c |
|
7: |
Reserved name 'isalpha' used |
MISRAC2012-RULE_21_2-b-2 |
|
7: |
Reserved name 'isalpha' used |
MISRAC2012-RULE_21_2-c-2 |
| /optee_os_MISRA/isoc/iscntrl.c |
|
7: |
Reserved name 'iscntrl' used |
MISRAC2012-RULE_21_2-b-2 |
|
7: |
Reserved name 'iscntrl' used |
MISRAC2012-RULE_21_2-c-2 |
| /optee_os_MISRA/isoc/isdigit.c |
|
7: |
Reserved name 'isdigit' used |
MISRAC2012-RULE_21_2-b-2 |
|
7: |
Reserved name 'isdigit' used |
MISRAC2012-RULE_21_2-c-2 |
| /optee_os_MISRA/isoc/isgraph.c |
|
7: |
Reserved name 'isgraph' used |
MISRAC2012-RULE_21_2-b-2 |
|
7: |
Reserved name 'isgraph' used |
MISRAC2012-RULE_21_2-c-2 |
| /optee_os_MISRA/isoc/islower.c |
|
7: |
Reserved name 'islower' used |
MISRAC2012-RULE_21_2-b-2 |
|
7: |
Reserved name 'islower' used |
MISRAC2012-RULE_21_2-c-2 |
|
9: |
The expression of the 'essentially Boolean' type is returned from function 'islower' with the 'essentially signed' type |
MISRAC2012-RULE_10_3-b-2 |
| /optee_os_MISRA/isoc/isprint.c |
|
7: |
Reserved name 'isprint' used |
MISRAC2012-RULE_21_2-b-2 |
|
7: |
Reserved name 'isprint' used |
MISRAC2012-RULE_21_2-c-2 |
| /optee_os_MISRA/isoc/ispunct.c |
|
7: |
Reserved name 'ispunct' used |
MISRAC2012-RULE_21_2-b-2 |
|
7: |
Reserved name 'ispunct' used |
MISRAC2012-RULE_21_2-c-2 |
|
9: |
The expression of the 'essentially Boolean' type is returned from function 'ispunct' with the 'essentially signed' type |
MISRAC2012-RULE_10_3-b-2 |
| /optee_os_MISRA/isoc/isspace.c |
|
7: |
Reserved name 'isspace' used |
MISRAC2012-RULE_21_2-b-2 |
|
7: |
Reserved name 'isspace' used |
MISRAC2012-RULE_21_2-c-2 |
|
9: |
The expression of the 'essentially Boolean' type is returned from function 'isspace' with the 'essentially signed' type |
MISRAC2012-RULE_10_3-b-2 |
| /optee_os_MISRA/isoc/isupper.c |
|
7: |
Reserved name 'isupper' used |
MISRAC2012-RULE_21_2-b-2 |
|
7: |
Reserved name 'isupper' used |
MISRAC2012-RULE_21_2-c-2 |
|
9: |
The expression of the 'essentially Boolean' type is returned from function 'isupper' with the 'essentially signed' type |
MISRAC2012-RULE_10_3-b-2 |
| /optee_os_MISRA/isoc/isxdigit.c |
|
7: |
Reserved name 'isxdigit' used |
MISRAC2012-RULE_21_2-b-2 |
|
7: |
Reserved name 'isxdigit' used |
MISRAC2012-RULE_21_2-c-2 |
|
9: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
| /optee_os_MISRA/isoc/newlib/_ansi.h |
|
45: |
Do not use reserved identifiers : _ANSIDECL_H_ |
MISRAC2012-RULE_21_1-a-2 |
|
47: |
Section of code should not be 'commented out' |
MISRAC2012-DIR_4_4-a-4 |
|
57: |
Do not use reserved identifiers : _HAVE_STDC |
MISRAC2012-RULE_21_1-a-2 |
|
61: |
Do not use reserved identifiers : _PTR |
MISRAC2012-RULE_21_1-a-2 |
|
62: |
Do not use reserved identifiers : _AND |
MISRAC2012-RULE_21_1-a-2 |
|
63: |
Do not use reserved identifiers : _NOARGS |
MISRAC2012-RULE_21_1-a-2 |
|
64: |
Do not use reserved identifiers : _CONST |
MISRAC2012-RULE_21_1-a-2 |
|
65: |
Do not use reserved identifiers : _VOLATILE |
MISRAC2012-RULE_21_1-a-2 |
|
66: |
Do not use reserved identifiers : _SIGNED |
MISRAC2012-RULE_21_1-a-2 |
|
67: |
Do not use reserved identifiers : _DOTS |
MISRAC2012-RULE_21_1-a-2 |
|
68: |
Do not use reserved identifiers : _VOID |
MISRAC2012-RULE_21_1-a-2 |
|
70: |
Do not define function-like macro: _EXFUN |
MISRAC2012-DIR_4_9-a-4 |
|
70: |
Do not use reserved identifiers : _EXFUN |
MISRAC2012-RULE_21_1-a-2 |
|
71: |
Do not define function-like macro: _EXPARM |
MISRAC2012-DIR_4_9-a-4 |
|
71: |
Do not use reserved identifiers : _EXPARM |
MISRAC2012-RULE_21_1-a-2 |
|
71: |
Each instance of parameter: 'proto' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
73: |
Do not define function-like macro: _EXFUN |
MISRAC2012-DIR_4_9-a-4 |
|
73: |
Do not use reserved identifiers : _EXFUN |
MISRAC2012-RULE_21_1-a-2 |
|
74: |
Do not define function-like macro: _EXPARM |
MISRAC2012-DIR_4_9-a-4 |
|
74: |
Do not use reserved identifiers : _EXPARM |
MISRAC2012-RULE_21_1-a-2 |
|
74: |
Each instance of parameter: 'name' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
74: |
Each instance of parameter: 'proto' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
76: |
Do not define function-like macro: _DEFUN |
MISRAC2012-DIR_4_9-a-4 |
|
76: |
Do not use reserved identifiers : _DEFUN |
MISRAC2012-RULE_21_1-a-2 |
|
76: |
Each instance of parameter: 'name' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
77: |
Do not define function-like macro: _DEFUN_VOID |
MISRAC2012-DIR_4_9-a-4 |
|
77: |
Do not use reserved identifiers : _DEFUN_VOID |
MISRAC2012-RULE_21_1-a-2 |
|
77: |
Each instance of parameter: 'name' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
78: |
Do not use reserved identifiers : _CAST_VOID |
MISRAC2012-RULE_21_1-a-2 |
|
80: |
Do not use reserved identifiers : _LONG_DOUBLE |
MISRAC2012-RULE_21_1-a-2 |
|
83: |
Do not define function-like macro: _PARAMS |
MISRAC2012-DIR_4_9-a-4 |
|
83: |
Do not use reserved identifiers : _PARAMS |
MISRAC2012-RULE_21_1-a-2 |
|
83: |
Each instance of parameter: 'paramlist' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
86: |
Do not use reserved identifiers : _PTR |
MISRAC2012-RULE_21_1-a-2 |
|
87: |
Do not use reserved identifiers : _AND |
MISRAC2012-RULE_21_1-a-2 |
|
88: |
Do not use reserved identifiers : _NOARGS |
MISRAC2012-RULE_21_1-a-2 |
|
89: |
Do not use reserved identifiers : _CONST |
MISRAC2012-RULE_21_1-a-2 |
|
90: |
Do not use reserved identifiers : _VOLATILE |
MISRAC2012-RULE_21_1-a-2 |
|
91: |
Do not use reserved identifiers : _SIGNED |
MISRAC2012-RULE_21_1-a-2 |
|
92: |
Do not use reserved identifiers : _DOTS |
MISRAC2012-RULE_21_1-a-2 |
|
93: |
Do not use reserved identifiers : _VOID |
MISRAC2012-RULE_21_1-a-2 |
|
94: |
Do not define function-like macro: _EXFUN |
MISRAC2012-DIR_4_9-a-4 |
|
94: |
Do not use reserved identifiers : _EXFUN |
MISRAC2012-RULE_21_1-a-2 |
|
94: |
Each instance of parameter: 'name' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
95: |
Do not define function-like macro: _DEFUN |
MISRAC2012-DIR_4_9-a-4 |
|
95: |
Do not use reserved identifiers : _DEFUN |
MISRAC2012-RULE_21_1-a-2 |
|
96: |
Do not define function-like macro: _DEFUN_VOID |
MISRAC2012-DIR_4_9-a-4 |
|
96: |
Do not use reserved identifiers : _DEFUN_VOID |
MISRAC2012-RULE_21_1-a-2 |
|
96: |
Each instance of parameter: 'name' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
97: |
Do not use reserved identifiers : _CAST_VOID |
MISRAC2012-RULE_21_1-a-2 |
|
98: |
Do not use reserved identifiers : _LONG_DOUBLE |
MISRAC2012-RULE_21_1-a-2 |
|
100: |
Do not define function-like macro: _PARAMS |
MISRAC2012-DIR_4_9-a-4 |
|
100: |
Do not use reserved identifiers : _PARAMS |
MISRAC2012-RULE_21_1-a-2 |
|
107: |
Do not define function-like macro: _ATTRIBUTE |
MISRAC2012-DIR_4_9-a-4 |
|
107: |
Do not use reserved identifiers : _ATTRIBUTE |
MISRAC2012-RULE_21_1-a-2 |
|
109: |
Do not define function-like macro: _ATTRIBUTE |
MISRAC2012-DIR_4_9-a-4 |
|
109: |
Do not use reserved identifiers : _ATTRIBUTE |
MISRAC2012-RULE_21_1-a-2 |
|
117: |
Do not use reserved identifiers : _BEGIN_STD_C |
MISRAC2012-RULE_21_1-a-2 |
|
118: |
Do not use reserved identifiers : _END_STD_C |
MISRAC2012-RULE_21_1-a-2 |
|
120: |
Do not use reserved identifiers : _BEGIN_STD_C |
MISRAC2012-RULE_21_1-a-2 |
|
121: |
Do not use reserved identifiers : _END_STD_C |
MISRAC2012-RULE_21_1-a-2 |
|
125: |
Do not use reserved identifiers : _BEGIN_STD_C |
MISRAC2012-RULE_21_1-a-2 |
|
126: |
Do not use reserved identifiers : _END_STD_C |
MISRAC2012-RULE_21_1-a-2 |
| /optee_os_MISRA/isoc/newlib/abs.c |
|
33: |
Section of code should not be 'commented out' |
MISRAC2012-DIR_4_4-a-4 |
|
73: |
Reserved name 'abs' used |
MISRAC2012-RULE_21_2-b-2 |
|
73: |
Reserved name 'abs' used |
MISRAC2012-RULE_21_2-c-2 |
| /optee_os_MISRA/isoc/newlib/bcmp.c |
|
1: |
Section of code should not be 'commented out' |
MISRAC2012-DIR_4_4-a-4 |
|
36: |
Identifiers given in declaration of 'bcmp' function (file: 'strings.h', line: '8') are: 's1, s2' not: 'm1, m2' |
MISRAC2012-RULE_8_3-b-2 |
|
41: |
The first argument to the function 'memcmp()' is a pointer to an inappropriate type 'const void' |
MISRAC2012-RULE_21_16-a-2 |
|
41: |
The second argument to the function 'memcmp()' is a pointer to an inappropriate type 'const void' |
MISRAC2012-RULE_21_16-a-2 |
| /optee_os_MISRA/isoc/newlib/memchr.c |
|
33: |
Section of code should not be 'commented out' |
MISRAC2012-DIR_4_4-a-4 |
|
76: |
Do not define function-like macro: UNALIGNED |
MISRAC2012-DIR_4_9-a-4 |
|
76: |
Each instance of parameter: 'X' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
82: |
Do not define function-like macro: TOO_SMALL |
MISRAC2012-DIR_4_9-a-4 |
|
85: |
Do not define function-like macro: DETECTNULL |
MISRAC2012-DIR_4_9-a-4 |
|
89: |
Do not define function-like macro: DETECTNULL |
MISRAC2012-DIR_4_9-a-4 |
|
102: |
Do not define function-like macro: DETECTCHAR |
MISRAC2012-DIR_4_9-a-4 |
|
102: |
Each instance of parameter: 'MASK' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
102: |
Each instance of parameter: 'X' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
105: |
Identifiers given in declaration of 'memchr' function (file: 'string.h', line: '34') are: 'buf' not: 'src_void' |
MISRAC2012-RULE_8_3-b-2 |
|
105: |
Reserved name 'memchr' used |
MISRAC2012-RULE_21_2-b-2 |
|
105: |
Reserved name 'memchr' used |
MISRAC2012-RULE_21_2-c-2 |
|
108: |
Pointer to void type should not be converted to pointer to object type 'const unsigned char *' |
MISRAC2012-RULE_11_5-a-4 |
|
109: |
The expression of the 'essentially signed' type is assigned to an object with the 'essentially unsigned' type |
MISRAC2012-RULE_10_3-b-2 |
|
153: |
Parameter 'length' is modified in function 'memchr' |
MISRAC2012-RULE_17_8-a-4 |
|
153: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
155: |
Cast from 'const unsigned char *' removes 'const' qualifier |
MISRAC2012-RULE_11_8-a-2 |
| /optee_os_MISRA/isoc/newlib/memcmp.c |
|
33: |
Section of code should not be 'commented out' |
MISRAC2012-DIR_4_4-a-4 |
|
74: |
Do not define function-like macro: UNALIGNED |
MISRAC2012-DIR_4_9-a-4 |
|
75: |
Each instance of parameter: 'X' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
75: |
Each instance of parameter: 'Y' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
81: |
Do not define function-like macro: TOO_SMALL |
MISRAC2012-DIR_4_9-a-4 |
|
84: |
Identifiers given in declaration of 'memcmp' function (file: 'string.h', line: '19') are: 's1, s2' not: 'm1, m2' |
MISRAC2012-RULE_8_3-b-2 |
|
84: |
Reserved name 'memcmp' used |
MISRAC2012-RULE_21_2-b-2 |
|
84: |
Reserved name 'memcmp' used |
MISRAC2012-RULE_21_2-c-2 |
|
87: |
Cast from 'const void *' removes 'const' qualifier |
MISRAC2012-RULE_11_8-a-2 |
|
87: |
Pointer to void type should not be converted to pointer to object type 'unsigned char *' |
MISRAC2012-RULE_11_5-a-4 |
|
88: |
Cast from 'const void *' removes 'const' qualifier |
MISRAC2012-RULE_11_8-a-2 |
|
88: |
Pointer to void type should not be converted to pointer to object type 'unsigned char *' |
MISRAC2012-RULE_11_5-a-4 |
|
90: |
Parameter 'n' is modified in function 'memcmp' |
MISRAC2012-RULE_17_8-a-4 |
|
90: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
92: |
The expression of the 'essentially unsigned' type is returned from function 'memcmp' with the 'essentially signed' type |
MISRAC2012-RULE_10_3-b-2 |
| /optee_os_MISRA/isoc/newlib/memcpy.c |
|
33: |
Section of code should not be 'commented out' |
MISRAC2012-DIR_4_4-a-4 |
|
72: |
Do not define function-like macro: UNALIGNED |
MISRAC2012-DIR_4_9-a-4 |
|
73: |
Each instance of parameter: 'X' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
73: |
Each instance of parameter: 'Y' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
82: |
Do not define function-like macro: TOO_SMALL |
MISRAC2012-DIR_4_9-a-4 |
|
85: |
Identifiers given in declaration of 'memcpy' function (file: 'string.h', line: '17') are: 's1, s2, n' not: 'dst0, src0, len0' |
MISRAC2012-RULE_8_3-b-2 |
|
85: |
Reserved name 'memcpy' used |
MISRAC2012-RULE_21_2-b-2 |
|
85: |
Reserved name 'memcpy' used |
MISRAC2012-RULE_21_2-c-2 |
|
99: |
Pointer to void type should not be converted to pointer to object type 'char *' |
MISRAC2012-RULE_11_5-a-4 |
|
100: |
Pointer to void type should not be converted to pointer to object type 'const char *' |
MISRAC2012-RULE_11_5-a-4 |
|
106: |
Pointer to object type 'char *' should not be converted to integral type 'long' |
MISRAC2012-RULE_11_4-a-4 |
|
106: |
Pointer to object type 'const char *' should not be converted to integral type 'long' |
MISRAC2012-RULE_11_4-a-4 |
|
107: |
Pointer to object type 'char *' is cast to pointer to different object type 'long *' |
MISRAC2012-RULE_11_3-a-2 |
|
108: |
Cast from 'const char *' removes 'const' qualifier |
MISRAC2012-RULE_11_8-a-2 |
|
108: |
Pointer to object type 'const char *' is cast to pointer to different object type 'long *' |
MISRAC2012-RULE_11_3-a-2 |
| +
|
112: |
"aligned_src" may possibly be null |
MISRAC2012-DIR_4_1-b-2 |
| |
|
tee_api_operations.c (717): TEE_Result res;
tee_api_operations.c (719): if (dst_op == TEE_HANDLE_NULL || src_op == TEE_HANDLE_NULL) *** Condition evaluation: (dst_op == 0) (assuming false) *** Condition evaluation: (src_op == 0) (assuming false) *** Condition evaluation: dst_op == TEE_HANDLE_NULL (false)
tee_api_operations.c (721): if (dst_op->info.algorithm != src_op->info.algorithm) *** Condition evaluation: (dst_op->info.algorithm != src_op->info.algorithm) (assuming false)
tee_api_operations.c (723): if (dst_op->info.mode != src_op->info.mode) *** Condition evaluation: (dst_op->info.mode != src_op->info.mode) (assuming false)
tee_api_operations.c (725): if (src_op->info.operationClass != TEE_OPERATION_DIGEST) { *** Condition evaluation: (src_op->info.operationClass != 5) (assuming false)
tee_api_operations.c (741): dst_op->info.handleState = src_op->info.handleState;
tee_api_operations.c (742): dst_op->info.keySize = src_op->info.keySize;
tee_api_operations.c (743): dst_op->info.digestLength = src_op->info.digestLength;
tee_api_operations.c (744): dst_op->operationState = src_op->operationState;
tee_api_operations.c (746): if (dst_op->buffer_two_blocks != src_op->buffer_two_blocks || *** Condition evaluation: (dst_op->buffer_two_blocks != src_op->buffer_two_blocks) (assuming true) *** Condition evaluation: dst_op->buffer_two_blocks != src_op->buffer_two_blocks || ds...= src_op->block_size (true)
tee_api_operations.c (748): TEE_Panic(0);
tee_api_panic.c (24): _utee_panic(panicCode);
tee_api_operations.c (750): if (dst_op->buffer != NULL) { *** Condition evaluation: (dst_op->buffer != 0) (assuming true)
Source of null value
tee_api_operations.c (751): if (src_op->buffer == NULL) *** Null value carrier: src_op->buffer *** Condition evaluation: (src_op->buffer == 0) (assuming true)
tee_api_operations.c (752): TEE_Panic(0);
tee_api_panic.c (24): _utee_panic(panicCode);
tee_api_operations.c (754): memcpy(dst_op->buffer, src_op->buffer, src_op->buffer_offs);
memcpy.c (99): char *dst = dst0; *** Null value carrier: src0
memcpy.c (100): _CONST char *src = src0;
memcpy.c (101): long *aligned_dst; *** Null value carrier: src
memcpy.c (102): _CONST long *aligned_src;
memcpy.c (106): if (!TOO_SMALL(len0) && !UNALIGNED(src, dst)) {
memcpy.c (107): aligned_dst = (long *)dst;
memcpy.c (108): aligned_src = (long *)src;
memcpy.c (111): while (len0 >= BIGBLOCKSIZE) { *** Null value carrier: aligned_src *** Loop condition evaluation: (len0 >= 32) (true) *** Entering the loop
Null pointer dereferencing point
memcpy.c (112): *aligned_dst++ = *aligned_src++; *** Null value carrier: aligned_src |
|
|
112: |
The '++' operator should cause the only side effect in an expression |
MISRAC2012-RULE_13_3-a-4 |
|
112: |
The '++' operator should cause the only side effect in an expression |
MISRAC2012-RULE_13_3-a-4 |
|
113: |
The '++' operator should cause the only side effect in an expression |
MISRAC2012-RULE_13_3-a-4 |
|
113: |
The '++' operator should cause the only side effect in an expression |
MISRAC2012-RULE_13_3-a-4 |
|
114: |
The '++' operator should cause the only side effect in an expression |
MISRAC2012-RULE_13_3-a-4 |
|
114: |
The '++' operator should cause the only side effect in an expression |
MISRAC2012-RULE_13_3-a-4 |
|
115: |
The '++' operator should cause the only side effect in an expression |
MISRAC2012-RULE_13_3-a-4 |
|
115: |
The '++' operator should cause the only side effect in an expression |
MISRAC2012-RULE_13_3-a-4 |
|
116: |
Parameter 'len0' is modified in function 'memcpy' |
MISRAC2012-RULE_17_8-a-4 |
|
121: |
The '++' operator should cause the only side effect in an expression |
MISRAC2012-RULE_13_3-a-4 |
|
121: |
The '++' operator should cause the only side effect in an expression |
MISRAC2012-RULE_13_3-a-4 |
|
122: |
Parameter 'len0' is modified in function 'memcpy' |
MISRAC2012-RULE_17_8-a-4 |
|
127: |
Cast from 'const long *' removes 'const' qualifier |
MISRAC2012-RULE_11_8-a-2 |
|
130: |
'while' statement in a function 'memcpy' should be followed by a block |
MISRAC2012-RULE_15_6-a-2 |
| +
|
130: |
Integer overflow: value of --len0 will be 18,446,744,073,709,551,615 instead of -1 (result type: 64 bits, unsigned, min: 0,
max: 18,446,744,073,709,551,615)
|
MISRAC2012-DIR_4_1-k-2 |
| |
|
Start of the path
tee_api_arith_mpi.c (63): size_t n = mpi->n;
tee_api_arith_mpi.c (66): while (n && !mpi->p[n - 1]) *** Loop condition evaluation: (n != 0) (assuming false) *** Loop condition evaluation: n && !mpi->p[n - 1] (false) *** Not entering the loop
tee_api_arith_mpi.c (69): if (hdr->alloc_size < n) *** Condition evaluation: (hdr->alloc_size < n) (false)
tee_api_arith_mpi.c (72): hdr->nblimbs = n;
tee_api_arith_mpi.c (73): hdr->sign = mpi->s;
tee_api_arith_mpi.c (74): memcpy(hdr + 1, mpi->p, mpi->n * sizeof(mbedtls_mpi_uint)); *** Variable assignment: tmp$0 = (mpi->n * 4) -> tmp$0 = 0
memcpy.c (85): _DEFUN(memcpy, (dst0, src0, len0), _PTR dst0 _AND _CONST _PTR src0 _AND *** Parameter value: len0 = mpi->n * 4 -> len0 = 0
memcpy.c (99): char *dst = dst0;
memcpy.c (100): _CONST char *src = src0;
memcpy.c (101): long *aligned_dst;
memcpy.c (102): _CONST long *aligned_src;
memcpy.c (106): if (!TOO_SMALL(len0) && !UNALIGNED(src, dst)) {
Integer overflow point
memcpy.c (130): while (len0--) *** Variable assignment: len0 = --len0 -> len0 = 18446744073709551615 |
|
|
130: |
Parameter 'len0' is modified in function 'memcpy' |
MISRAC2012-RULE_17_8-a-4 |
|
130: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
| +
|
131: |
"src" may possibly be null |
MISRAC2012-DIR_4_1-b-2 |
| |
|
tee_api_operations.c (717): TEE_Result res;
tee_api_operations.c (719): if (dst_op == TEE_HANDLE_NULL || src_op == TEE_HANDLE_NULL) *** Condition evaluation: (dst_op == 0) (assuming false) *** Condition evaluation: (src_op == 0) (assuming false) *** Condition evaluation: dst_op == TEE_HANDLE_NULL (false)
tee_api_operations.c (721): if (dst_op->info.algorithm != src_op->info.algorithm) *** Condition evaluation: (dst_op->info.algorithm != src_op->info.algorithm) (assuming false)
tee_api_operations.c (723): if (dst_op->info.mode != src_op->info.mode) *** Condition evaluation: (dst_op->info.mode != src_op->info.mode) (assuming false)
tee_api_operations.c (725): if (src_op->info.operationClass != TEE_OPERATION_DIGEST) { *** Condition evaluation: (src_op->info.operationClass != 5) (assuming false)
tee_api_operations.c (741): dst_op->info.handleState = src_op->info.handleState;
tee_api_operations.c (742): dst_op->info.keySize = src_op->info.keySize;
tee_api_operations.c (743): dst_op->info.digestLength = src_op->info.digestLength;
tee_api_operations.c (744): dst_op->operationState = src_op->operationState;
tee_api_operations.c (746): if (dst_op->buffer_two_blocks != src_op->buffer_two_blocks || *** Condition evaluation: (dst_op->buffer_two_blocks != src_op->buffer_two_blocks) (assuming true) *** Condition evaluation: dst_op->buffer_two_blocks != src_op->buffer_two_blocks || ds...= src_op->block_size (true)
tee_api_operations.c (748): TEE_Panic(0);
tee_api_panic.c (24): _utee_panic(panicCode);
tee_api_operations.c (750): if (dst_op->buffer != NULL) { *** Condition evaluation: (dst_op->buffer != 0) (assuming true)
Source of null value
tee_api_operations.c (751): if (src_op->buffer == NULL) *** Null value carrier: src_op->buffer *** Condition evaluation: (src_op->buffer == 0) (assuming true)
tee_api_operations.c (752): TEE_Panic(0);
tee_api_panic.c (24): _utee_panic(panicCode);
tee_api_operations.c (754): memcpy(dst_op->buffer, src_op->buffer, src_op->buffer_offs);
memcpy.c (99): char *dst = dst0; *** Null value carrier: src0
memcpy.c (100): _CONST char *src = src0;
memcpy.c (101): long *aligned_dst; *** Null value carrier: src
memcpy.c (102): _CONST long *aligned_src;
memcpy.c (106): if (!TOO_SMALL(len0) && !UNALIGNED(src, dst)) {
memcpy.c (130): while (len0--) *** Loop condition evaluation: (len0 != 0) (true) *** Entering the loop
Null pointer dereferencing point
memcpy.c (131): *dst++ = *src++; *** Null value carrier: src |
|
|
131: |
The '++' operator should cause the only side effect in an expression |
MISRAC2012-RULE_13_3-a-4 |
|
131: |
The '++' operator should cause the only side effect in an expression |
MISRAC2012-RULE_13_3-a-4 |
| /optee_os_MISRA/isoc/newlib/memmove.c |
|
33: |
Section of code should not be 'commented out' |
MISRAC2012-DIR_4_4-a-4 |
|
75: |
Do not define function-like macro: UNALIGNED |
MISRAC2012-DIR_4_9-a-4 |
|
76: |
Each instance of parameter: 'X' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
76: |
Each instance of parameter: 'Y' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
85: |
Do not define function-like macro: TOO_SMALL |
MISRAC2012-DIR_4_9-a-4 |
|
89: |
Identifiers given in declaration of 'memmove' function (file: 'string.h', line: '18') are: 's1, s2, n' not: 'dst_void, src_void,
length'
|
MISRAC2012-RULE_8_3-b-2 |
|
89: |
Reserved name 'memmove' used |
MISRAC2012-RULE_21_2-b-2 |
|
89: |
Reserved name 'memmove' used |
MISRAC2012-RULE_21_2-c-2 |
|
93: |
Pointer to void type should not be converted to pointer to object type 'char *' |
MISRAC2012-RULE_11_5-a-4 |
|
94: |
Pointer to void type should not be converted to pointer to object type 'const char *' |
MISRAC2012-RULE_11_5-a-4 |
|
96: |
The variable 'src' used as the left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
96: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
98: |
The variable 'src' used as the left hand side operand of the '+=' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
99: |
The variable 'dst' used as the left hand side operand of the '+=' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
100: |
'while' statement in a function 'memmove' should be followed by a block |
MISRAC2012-RULE_15_6-a-2 |
|
100: |
Parameter 'length' is modified in function 'memmove' |
MISRAC2012-RULE_17_8-a-4 |
|
100: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
101: |
The '--' operator should cause the only side effect in an expression |
MISRAC2012-RULE_13_3-a-4 |
|
101: |
The '--' operator should cause the only side effect in an expression |
MISRAC2012-RULE_13_3-a-4 |
|
103: |
'while' statement in a function 'memmove' should be followed by a block |
MISRAC2012-RULE_15_6-a-2 |
| +
|
103: |
Integer overflow: value of --length will be 18,446,744,073,709,551,615 instead of -1 (result type: 64 bits, unsigned, min:
0, max: 18,446,744,073,709,551,615)
|
MISRAC2012-DIR_4_1-k-2 |
| |
|
Start of the path
core_mmu.c (571): if (n == *last) *** Condition evaluation: (n == *last) (assuming true)
core_mmu.c (572): break; *** Exit the loop
core_mmu.c (590): memmove(memory_map + n + 1, memory_map + n,
core_mmu.c (591): sizeof(struct tee_mmap_region) * (*last - n)); *** Variable assignment: tmp$0 = (*last - n) -> tmp$0 = 0 *** Variable assignment: tmp$1 = (40 * tmp$0) -> tmp$1 = 0
core_mmu.c (590): memmove(memory_map + n + 1, memory_map + n,
memmove.c (89): _DEFUN(memmove, (dst_void, src_void, length), _PTR dst_void _AND _CONST _PTR *** Parameter value: length = 40 * *last - n -> length = 0
memmove.c (93): char *dst = dst_void;
memmove.c (94): _CONST char *src = src_void;
memmove.c (96): if (src < dst && dst < src + length) { *** Condition evaluation: (src < dst) (true) *** Condition evaluation: (dst < src + length) (assuming false) *** Condition evaluation: src < dst && dst < src + length (false)
Integer overflow point
memmove.c (103): while (length--) *** Variable assignment: length = --length -> length = 18446744073709551615 |
|
|
103: |
Parameter 'length' is modified in function 'memmove' |
MISRAC2012-RULE_17_8-a-4 |
|
103: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
104: |
The '++' operator should cause the only side effect in an expression |
MISRAC2012-RULE_13_3-a-4 |
|
104: |
The '++' operator should cause the only side effect in an expression |
MISRAC2012-RULE_13_3-a-4 |
| /optee_os_MISRA/isoc/newlib/memset.c |
|
33: |
Section of code should not be 'commented out' |
MISRAC2012-DIR_4_4-a-4 |
|
72: |
Do not define function-like macro: UNALIGNED |
MISRAC2012-DIR_4_9-a-4 |
|
72: |
Each instance of parameter: 'X' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
73: |
Do not define function-like macro: TOO_SMALL |
MISRAC2012-DIR_4_9-a-4 |
|
75: |
Identifiers given in declaration of 'memset' function (file: 'string.h', line: '20') are: 's' not: 'm' |
MISRAC2012-RULE_8_3-b-2 |
|
75: |
Reserved name 'memset' used |
MISRAC2012-RULE_21_2-b-2 |
|
75: |
Reserved name 'memset' used |
MISRAC2012-RULE_21_2-c-2 |
|
77: |
Pointer to void type should not be converted to pointer to object type 'char *' |
MISRAC2012-RULE_11_5-a-4 |
|
125: |
'while' statement in a function 'memset' should be followed by a block |
MISRAC2012-RULE_15_6-a-2 |
|
125: |
Parameter 'n' is modified in function 'memset' |
MISRAC2012-RULE_17_8-a-4 |
|
125: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
126: |
The '++' operator should cause the only side effect in an expression |
MISRAC2012-RULE_13_3-a-4 |
| /optee_os_MISRA/isoc/newlib/strchr.c |
|
33: |
Section of code should not be 'commented out' |
MISRAC2012-DIR_4_4-a-4 |
|
73: |
Do not define function-like macro: UNALIGNED |
MISRAC2012-DIR_4_9-a-4 |
|
73: |
Each instance of parameter: 'X' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
79: |
Do not define function-like macro: DETECTNULL |
MISRAC2012-DIR_4_9-a-4 |
|
83: |
Do not define function-like macro: DETECTNULL |
MISRAC2012-DIR_4_9-a-4 |
|
92: |
Do not define function-like macro: DETECTCHAR |
MISRAC2012-DIR_4_9-a-4 |
|
92: |
Each instance of parameter: 'MASK' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
92: |
Each instance of parameter: 'X' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
95: |
Identifiers given in declaration of 'strchr' function (file: 'string.h', line: '28') are: 's, c' not: 's1, i' |
MISRAC2012-RULE_8_3-b-2 |
|
95: |
Reserved name 'strchr' used |
MISRAC2012-RULE_21_2-b-2 |
|
95: |
Reserved name 'strchr' used |
MISRAC2012-RULE_21_2-c-2 |
|
100: |
The expression of the 'essentially signed' type is assigned to an object with the 'essentially unsigned' type |
MISRAC2012-RULE_10_3-b-2 |
|
152: |
'while' statement in a function 'strchr' should be followed by a block |
MISRAC2012-RULE_15_6-a-2 |
|
155: |
Cast from 'const unsigned char *' removes 'const' qualifier |
MISRAC2012-RULE_11_8-a-2 |
| /optee_os_MISRA/isoc/newlib/strcmp.c |
|
35: |
Section of code should not be 'commented out' |
MISRAC2012-DIR_4_4-a-4 |
|
77: |
Do not define function-like macro: UNALIGNED |
MISRAC2012-DIR_4_9-a-4 |
|
78: |
Each instance of parameter: 'X' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
78: |
Each instance of parameter: 'Y' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
82: |
Do not define function-like macro: DETECTNULL |
MISRAC2012-DIR_4_9-a-4 |
|
85: |
Do not define function-like macro: DETECTNULL |
MISRAC2012-DIR_4_9-a-4 |
|
96: |
Reserved name 'strcmp' used |
MISRAC2012-RULE_21_2-b-2 |
|
96: |
Reserved name 'strcmp' used |
MISRAC2012-RULE_21_2-c-2 |
|
100: |
Parameter 's1' is modified in function 'strcmp' |
MISRAC2012-RULE_17_8-a-4 |
|
101: |
Parameter 's2' is modified in function 'strcmp' |
MISRAC2012-RULE_17_8-a-4 |
|
104: |
Cast from 'const char *' removes 'const' qualifier |
MISRAC2012-RULE_11_8-a-2 |
|
104: |
Cast from 'const char *' removes 'const' qualifier |
MISRAC2012-RULE_11_8-a-2 |
|
104: |
The expression of the 'essentially unsigned' type is returned from function 'strcmp' with the 'essentially signed' type |
MISRAC2012-RULE_10_3-b-2 |
| /optee_os_MISRA/isoc/newlib/strcpy.c |
|
33: |
Section of code should not be 'commented out' |
MISRAC2012-DIR_4_4-a-4 |
|
75: |
Do not define function-like macro: UNALIGNED |
MISRAC2012-DIR_4_9-a-4 |
|
76: |
Each instance of parameter: 'X' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
76: |
Each instance of parameter: 'Y' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
79: |
Do not define function-like macro: DETECTNULL |
MISRAC2012-DIR_4_9-a-4 |
|
83: |
Do not define function-like macro: DETECTNULL |
MISRAC2012-DIR_4_9-a-4 |
|
94: |
Identifiers given in declaration of 'strcpy' function (file: 'string.h', line: '30') are: 'dest, src' not: 'dst0, src0' |
MISRAC2012-RULE_8_3-b-2 |
|
94: |
Reserved name 'strcpy' used |
MISRAC2012-RULE_21_2-b-2 |
|
94: |
Reserved name 'strcpy' used |
MISRAC2012-RULE_21_2-c-2 |
|
101: |
'while' statement in a function 'strcpy' should be followed by a block |
MISRAC2012-RULE_15_6-a-2 |
|
101: |
Assignment operator '=' is used in improper context |
MISRAC2012-RULE_13_4-a-4 |
|
101: |
Parameter 'dst0' is modified in function 'strcpy' |
MISRAC2012-RULE_17_8-a-4 |
|
101: |
Parameter 'src0' is modified in function 'strcpy' |
MISRAC2012-RULE_17_8-a-4 |
|
101: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
101: |
The '++' operator should cause the only side effect in an expression |
MISRAC2012-RULE_13_3-a-4 |
|
101: |
The '++' operator should cause the only side effect in an expression |
MISRAC2012-RULE_13_3-a-4 |
| /optee_os_MISRA/isoc/newlib/strlen.c |
|
35: |
Section of code should not be 'commented out' |
MISRAC2012-DIR_4_4-a-4 |
|
73: |
Do not define function-like macro: UNALIGNED |
MISRAC2012-DIR_4_9-a-4 |
|
73: |
Each instance of parameter: 'X' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
76: |
Do not define function-like macro: DETECTNULL |
MISRAC2012-DIR_4_9-a-4 |
|
80: |
Do not define function-like macro: DETECTNULL |
MISRAC2012-DIR_4_9-a-4 |
|
91: |
Identifiers given in declaration of 'strlen' function (file: 'string.h', line: '24') are: 's' not: 'str' |
MISRAC2012-RULE_8_3-b-2 |
|
91: |
Reserved name 'strlen' used |
MISRAC2012-RULE_21_2-b-2 |
|
91: |
Reserved name 'strlen' used |
MISRAC2012-RULE_21_2-c-2 |
|
117: |
'while' statement in a function 'strlen' should be followed by a block |
MISRAC2012-RULE_15_6-a-2 |
|
117: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
118: |
Parameter 'str' is modified in function 'strlen' |
MISRAC2012-RULE_17_8-a-4 |
|
119: |
The expression of the 'essentially signed' type is returned from function 'strlen' with the 'essentially unsigned' type |
MISRAC2012-RULE_10_3-b-2 |
| /optee_os_MISRA/isoc/newlib/strncmp.c |
|
33: |
Section of code should not be 'commented out' |
MISRAC2012-DIR_4_4-a-4 |
|
76: |
Do not define function-like macro: UNALIGNED |
MISRAC2012-DIR_4_9-a-4 |
|
77: |
Each instance of parameter: 'X' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
77: |
Each instance of parameter: 'Y' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
81: |
Do not define function-like macro: DETECTNULL |
MISRAC2012-DIR_4_9-a-4 |
|
84: |
Do not define function-like macro: DETECTNULL |
MISRAC2012-DIR_4_9-a-4 |
|
96: |
Reserved name 'strncmp' used |
MISRAC2012-RULE_21_2-b-2 |
|
96: |
Reserved name 'strncmp' used |
MISRAC2012-RULE_21_2-c-2 |
|
105: |
Parameter 'n' is modified in function 'strncmp' |
MISRAC2012-RULE_17_8-a-4 |
|
109: |
Parameter 's1' is modified in function 'strncmp' |
MISRAC2012-RULE_17_8-a-4 |
|
110: |
Parameter 's2' is modified in function 'strncmp' |
MISRAC2012-RULE_17_8-a-4 |
|
113: |
Cast from 'const char *' removes 'const' qualifier |
MISRAC2012-RULE_11_8-a-2 |
|
113: |
Cast from 'const char *' removes 'const' qualifier |
MISRAC2012-RULE_11_8-a-2 |
|
113: |
The expression of the 'essentially unsigned' type is returned from function 'strncmp' with the 'essentially signed' type |
MISRAC2012-RULE_10_3-b-2 |
| /optee_os_MISRA/isoc/newlib/strncpy.c |
|
33: |
Section of code should not be 'commented out' |
MISRAC2012-DIR_4_4-a-4 |
|
81: |
Do not define function-like macro: UNALIGNED |
MISRAC2012-DIR_4_9-a-4 |
|
82: |
Each instance of parameter: 'X' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
82: |
Each instance of parameter: 'Y' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
85: |
Do not define function-like macro: DETECTNULL |
MISRAC2012-DIR_4_9-a-4 |
|
89: |
Do not define function-like macro: DETECTNULL |
MISRAC2012-DIR_4_9-a-4 |
|
99: |
Do not define function-like macro: TOO_SMALL |
MISRAC2012-DIR_4_9-a-4 |
|
102: |
Identifiers given in declaration of 'strncpy' function (file: 'string.h', line: '31') are: 'dest, src, n' not: 'dst0, src0,
count'
|
MISRAC2012-RULE_8_3-b-2 |
|
102: |
Reserved name 'strncpy' used |
MISRAC2012-RULE_21_2-b-2 |
|
102: |
Reserved name 'strncpy' used |
MISRAC2012-RULE_21_2-c-2 |
|
115: |
Parameter 'count' is modified in function 'strncpy' |
MISRAC2012-RULE_17_8-a-4 |
|
116: |
Assignment operator '=' is used in improper context |
MISRAC2012-RULE_13_4-a-4 |
|
116: |
The '++' operator should cause the only side effect in an expression |
MISRAC2012-RULE_13_3-a-4 |
|
116: |
The '++' operator should cause the only side effect in an expression |
MISRAC2012-RULE_13_3-a-4 |
|
119: |
'while' statement in a function 'strncpy' should be followed by a block |
MISRAC2012-RULE_15_6-a-2 |
| +
|
119: |
Integer overflow: value of --count will be 18,446,744,073,709,551,615 instead of -1 (result type: 64 bits, unsigned, min:
0, max: 18,446,744,073,709,551,615)
|
MISRAC2012-DIR_4_1-k-2 |
| |
|
Start of the path
strncpy.c (113): while (count > 0) *** Condition evaluation: count > 0 (assuming 0) -> count = 0 *** Loop condition evaluation: (count > 0) (assuming false) *** Not entering the loop
Integer overflow point
strncpy.c (119): while (count-- > 0) *** Variable assignment: count = --count -> count = 18446744073709551615 |
|
|
119: |
Parameter 'count' is modified in function 'strncpy' |
MISRAC2012-RULE_17_8-a-4 |
|
120: |
The '++' operator should cause the only side effect in an expression |
MISRAC2012-RULE_13_3-a-4 |
| /optee_os_MISRA/isoc/newlib/strnlen.c |
|
33: |
Section of code should not be 'commented out' |
MISRAC2012-DIR_4_4-a-4 |
|
66: |
#undef directive is being used to undefine '__STRICT_ANSI__' macro |
MISRAC2012-RULE_20_5-a-4 |
|
66: |
Do not use reserved identifiers : __STRICT_ANSI__ |
MISRAC2012-RULE_21_1-a-2 |
|
71: |
Identifiers given in declaration of 'strnlen' function (file: 'string.h', line: '25') are: 's' not: 'str' |
MISRAC2012-RULE_8_3-b-2 |
|
77: |
'while' statement in a function 'strnlen' should be followed by a block |
MISRAC2012-RULE_15_6-a-2 |
|
77: |
Parameter 'n' is modified in function 'strnlen' |
MISRAC2012-RULE_17_8-a-4 |
|
78: |
Parameter 'str' is modified in function 'strnlen' |
MISRAC2012-RULE_17_8-a-4 |
|
80: |
The expression of the 'essentially signed' type is returned from function 'strnlen' with the 'essentially unsigned' type |
MISRAC2012-RULE_10_3-b-2 |
| /optee_os_MISRA/isoc/newlib/strrchr.c |
|
33: |
Section of code should not be 'commented out' |
MISRAC2012-DIR_4_4-a-4 |
|
71: |
Reserved name 'strrchr' used |
MISRAC2012-RULE_21_2-b-2 |
|
71: |
Reserved name 'strrchr' used |
MISRAC2012-RULE_21_2-c-2 |
|
77: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
79: |
Assignment operator '=' is used in improper context |
MISRAC2012-RULE_13_4-a-4 |
|
79: |
Parameter 's' is modified in function 'strrchr' |
MISRAC2012-RULE_17_8-a-4 |
|
79: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
82: |
Parameter 's' is modified in function 'strrchr' |
MISRAC2012-RULE_17_8-a-4 |
|
90: |
Cast from 'const char *' removes 'const' qualifier |
MISRAC2012-RULE_11_8-a-2 |
| /optee_os_MISRA/isoc/newlib/strstr.c |
|
33: |
Section of code should not be 'commented out' |
MISRAC2012-DIR_4_4-a-4 |
|
74: |
Do not define function-like macro: AVAILABLE |
MISRAC2012-DIR_4_9-a-4 |
|
81: |
Identifiers given in declaration of 'strstr' function (file: 'string.h', line: '29') are: 'big, little' not: 'searchee, lookfor' |
MISRAC2012-RULE_8_3-b-2 |
|
81: |
Reserved name 'strstr' used |
MISRAC2012-RULE_21_2-b-2 |
|
81: |
Reserved name 'strstr' used |
MISRAC2012-RULE_21_2-c-2 |
|
90: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
92: |
Cast from 'const char *' removes 'const' qualifier |
MISRAC2012-RULE_11_8-a-2 |
|
95: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
104: |
Cast from 'const char *' removes 'const' qualifier |
MISRAC2012-RULE_11_8-a-2 |
|
113: |
Parameter 'searchee' is modified in function 'strstr' |
MISRAC2012-RULE_17_8-a-4 |
| /optee_os_MISRA/isoc/newlib/strtoul.c |
|
33: |
Section of code should not be 'commented out' |
MISRAC2012-DIR_4_4-a-4 |
|
158: |
Reserved name '_strtoul' used |
MISRAC2012-RULE_21_2-a-2 |
|
158: |
The function '_strtoul' is referenced only in the translation unit where it is defined |
MISRAC2012-RULE_8_7-a-4 |
|
158: |
The names of the identifiers '_strtoul' and 'strtoul' (line: 30 in the 'stdlib.h' file) differ only in the presence/absence
of the underscore character
|
MISRAC2012-DIR_4_5-a-4 |
|
172: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
173: |
The '++' operator should cause the only side effect in an expression |
MISRAC2012-RULE_13_3-a-4 |
|
173: |
The expression of the 'essentially unsigned' type is assigned to an object with the 'essentially signed' type |
MISRAC2012-RULE_10_3-b-2 |
|
177: |
The '++' operator should cause the only side effect in an expression |
MISRAC2012-RULE_13_3-a-4 |
|
177: |
The expression of the 'essentially unsigned' type is assigned to an object with the 'essentially signed' type |
MISRAC2012-RULE_10_3-b-2 |
|
178: |
Provide 'else' after the last 'else-if' construct |
MISRAC2012-RULE_15_7-a-2 |
|
179: |
The '++' operator should cause the only side effect in an expression |
MISRAC2012-RULE_13_3-a-4 |
|
179: |
The expression of the 'essentially unsigned' type is assigned to an object with the 'essentially signed' type |
MISRAC2012-RULE_10_3-b-2 |
|
182: |
The expression of the 'essentially unsigned' type is assigned to an object with the 'essentially signed' type |
MISRAC2012-RULE_10_3-b-2 |
|
183: |
The variable 's' used as the left hand side operand of the '+=' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
184: |
Parameter 'base' is modified in function '_strtoul' |
MISRAC2012-RULE_17_8-a-4 |
|
187: |
Parameter 'base' is modified in function '_strtoul' |
MISRAC2012-RULE_17_8-a-4 |
|
187: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
188: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
189: |
The expression of the 'essentially unsigned' type is assigned to an object with the 'essentially signed' type |
MISRAC2012-RULE_10_3-b-2 |
|
189: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
190: |
Disallowed comma operator is used in function '_strtoul' |
MISRAC2012-RULE_12_3-a-4 |
|
190: |
Improper expression is used in the first clause of a 'for' statement |
MISRAC2012-RULE_14_2-b-2 |
|
190: |
Only one 'break' statement in loop is allowed. This loop contains 'breaks' in lines: 196, 198 |
MISRAC2012-RULE_15_4-a-4 |
|
190: |
The '++' operator should cause the only side effect in an expression |
MISRAC2012-RULE_13_3-a-4 |
|
190: |
The expression of the 'essentially unsigned' type is assigned to an object with the 'essentially signed' type |
MISRAC2012-RULE_10_3-b-2 |
|
190: |
The second clause of a 'for' statement does not contain a loop counter |
MISRAC2012-RULE_14_2-c-2 |
|
190: |
The third clause of a 'for' statement contains an expression with a persistent side effect other than modification of a loop
counter
|
MISRAC2012-RULE_14_2-d-2 |
|
191: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
192: |
The right hand operand of the '-=' operator has essentially character type |
MISRAC2012-RULE_10_1-c-2 |
|
192: |
The right hand operand of the '-=' operator has essentially character type and is used inappropriately |
MISRAC2012-RULE_10_2-a-2 |
|
193: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
194: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
194: |
The right hand operand of the '-=' operator has essentially character type |
MISRAC2012-RULE_10_1-c-2 |
|
194: |
The right hand operand of the '-=' operator has essentially character type and is used inappropriately |
MISRAC2012-RULE_10_2-a-2 |
|
194: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
194: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
208: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
209: |
Provide 'else' after the last 'else-if' construct |
MISRAC2012-RULE_15_7-a-2 |
|
209: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
210: |
The operand of the unary '-' operator has essentially unsigned type: 'unsigned long' |
MISRAC2012-RULE_10_1-g-2 |
|
211: |
Expression of pointer type is compared with '0' |
MISRAC2012-RULE_11_9-a-2 |
|
211: |
Expression of pointer type is compared with '0' |
MISRAC2012-RULE_11_9-b-2 |
|
212: |
Cast from 'const char *' removes 'const' qualifier |
MISRAC2012-RULE_11_8-a-2 |
|
212: |
Cast from 'const unsigned char *' removes 'const' qualifier |
MISRAC2012-RULE_11_8-a-2 |
|
212: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
212: |
The left hand side operand of the '-' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
212: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
219: |
Reserved name 'strtoul' used |
MISRAC2012-RULE_21_2-b-2 |
|
219: |
Reserved name 'strtoul' used |
MISRAC2012-RULE_21_2-c-2 |
|
219: |
The names of the identifiers 'strtoul' and '_strtoul' (line: 158 in the 'strtoul.c' file) differ only in the presence/absence
of the underscore character
|
MISRAC2012-DIR_4_5-a-4 |
|
219: |
The names of the identifiers 'strtoul' and '_strtoul' (line: 29 in the 'stdlib.h' file) differ only in the presence/absence
of the underscore character
|
MISRAC2012-DIR_4_5-a-4 |
| /optee_os_MISRA/isoc/qsort.c |
|
34: |
Names shall be given for all parameters in a function type 'int (const void *, const void *)' |
MISRAC2012-RULE_8_2-b-2 |
|
34: |
Names shall be given for all the parameters in function 'med3' |
MISRAC2012-RULE_8_2-a-2 |
|
35: |
Names shall be given for all the parameters in function 'swapfunc' |
MISRAC2012-RULE_8_2-a-2 |
|
36: |
Do not define function-like macro: min |
MISRAC2012-DIR_4_9-a-4 |
|
36: |
Each instance of parameter: 'a' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
36: |
Each instance of parameter: 'b' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
40: |
Do not define function-like macro: swapcode |
MISRAC2012-DIR_4_9-a-4 |
|
42: |
Each instance of parameter: 'TYPE' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
42: |
Each instance of parameter: 'TYPE' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
43: |
Each instance of parameter: 'TYPE' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
43: |
Each instance of parameter: 'TYPE' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
50: |
Do not define function-like macro: SWAPINIT |
MISRAC2012-DIR_4_9-a-4 |
|
50: |
Each instance of parameter: 'a' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
51: |
Each instance of parameter: 'es' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
51: |
Each instance of parameter: 'es' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
56: |
Pointer to object type 'char *' is cast to pointer to different object type 'long *' |
MISRAC2012-RULE_11_3-a-2 |
|
56: |
The '++' operator should cause the only side effect in an expression |
MISRAC2012-RULE_13_3-a-4 |
|
56: |
The expression of the 'essentially unsigned' type is assigned to an object with the 'essentially signed' type |
MISRAC2012-RULE_10_3-b-2 |
|
58: |
The '++' operator should cause the only side effect in an expression |
MISRAC2012-RULE_13_3-a-4 |
|
58: |
The expression of the 'essentially unsigned' type is assigned to an object with the 'essentially signed' type |
MISRAC2012-RULE_10_3-b-2 |
|
60: |
Do not define function-like macro: swap |
MISRAC2012-DIR_4_9-a-4 |
|
66: |
Each instance of parameter: 'a' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
66: |
Each instance of parameter: 'b' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
67: |
Do not define function-like macro: vecswap |
MISRAC2012-DIR_4_9-a-4 |
|
67: |
Each instance of parameter: 'a' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
67: |
Each instance of parameter: 'b' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
67: |
Each instance of parameter: 'n' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
69: |
Names shall be given for all parameters in a function type 'int (const void *, const void *)' |
MISRAC2012-RULE_8_2-b-2 |
|
69: |
Pass parameter "a" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
69: |
Pass parameter "b" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
69: |
Pass parameter "c" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
71: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
72: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
72: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
73: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
73: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
76: |
Names shall be given for all parameters in a function type 'int (const void *, const void *)' |
MISRAC2012-RULE_8_2-b-2 |
|
76: |
Reserved name 'qsort' used |
MISRAC2012-RULE_21_2-b-2 |
|
76: |
Reserved name 'qsort' used |
MISRAC2012-RULE_21_2-c-2 |
|
80: |
Pointer to void type should not be converted to pointer to object type 'char *' |
MISRAC2012-RULE_11_5-a-4 |
|
81: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
81: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
84: |
'for' statement in a function 'qsort' should be followed by a block |
MISRAC2012-RULE_15_6-a-2 |
|
84: |
The left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
84: |
The left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
84: |
The variable 'pm' used as the left hand side operand of the '+=' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
84: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
84: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
85: |
'for' statement in a function 'qsort' should be followed by a block |
MISRAC2012-RULE_15_6-a-2 |
|
85: |
The variable 'pl' used as the left hand side operand of the '-' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
86: |
The variable 'pl' used as the left hand side operand of the '-=' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
87: |
Pointer to object type 'char *' is cast to pointer to different object type 'long *' |
MISRAC2012-RULE_11_3-a-2 |
|
87: |
The argument number '3' ('essentially unsigned' type) is passed to the function 'swapfunc' as a parameter with the 'essentially
signed' type
|
MISRAC2012-RULE_10_3-b-2 |
|
87: |
The variable 'pl' used as the left hand side operand of the '-' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
90: |
The left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
90: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
93: |
The left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
93: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
95: |
The expression of the 'essentially unsigned' type is assigned to an object with the 'essentially signed' type |
MISRAC2012-RULE_10_3-b-2 |
|
96: |
The variable 'pl' used as the left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
96: |
The variable 'pl' used as the left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
96: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
97: |
The variable 'pm' used as the left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
97: |
The variable 'pm' used as the left hand side operand of the '-' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
98: |
The variable 'pn' used as the left hand side operand of the '-' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
98: |
The variable 'pn' used as the left hand side operand of the '-' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
98: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
102: |
Pointer to object type 'char *' is cast to pointer to different object type 'long *' |
MISRAC2012-RULE_11_3-a-2 |
|
102: |
The argument number '3' ('essentially unsigned' type) is passed to the function 'swapfunc' as a parameter with the 'essentially
signed' type
|
MISRAC2012-RULE_10_3-b-2 |
|
103: |
Assignment operator '=' is used in improper context |
MISRAC2012-RULE_13_4-a-4 |
|
103: |
The left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
105: |
Assignment operator '=' is used in improper context |
MISRAC2012-RULE_13_4-a-4 |
|
105: |
The left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
105: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
107: |
Assignment operator '=' is used in improper context |
MISRAC2012-RULE_13_4-a-4 |
|
107: |
Do not use expressions with side effects in the right-hand operand of a logical '&&' operator |
MISRAC2012-RULE_13_5-a-2 |
|
110: |
Pointer to object type 'char *' is cast to pointer to different object type 'long *' |
MISRAC2012-RULE_11_3-a-2 |
|
110: |
The argument number '3' ('essentially unsigned' type) is passed to the function 'swapfunc' as a parameter with the 'essentially
signed' type
|
MISRAC2012-RULE_10_3-b-2 |
|
111: |
The variable 'pa' used as the left hand side operand of the '+=' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
113: |
The variable 'pb' used as the left hand side operand of the '+=' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
115: |
Assignment operator '=' is used in improper context |
MISRAC2012-RULE_13_4-a-4 |
|
115: |
Do not use expressions with side effects in the right-hand operand of a logical '&&' operator |
MISRAC2012-RULE_13_5-a-2 |
|
118: |
Pointer to object type 'char *' is cast to pointer to different object type 'long *' |
MISRAC2012-RULE_11_3-a-2 |
|
118: |
The argument number '3' ('essentially unsigned' type) is passed to the function 'swapfunc' as a parameter with the 'essentially
signed' type
|
MISRAC2012-RULE_10_3-b-2 |
|
119: |
The variable 'pd' used as the left hand side operand of the '-=' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
121: |
The variable 'pc' used as the left hand side operand of the '-=' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
125: |
Pointer to object type 'char *' is cast to pointer to different object type 'long *' |
MISRAC2012-RULE_11_3-a-2 |
|
125: |
The argument number '3' ('essentially unsigned' type) is passed to the function 'swapfunc' as a parameter with the 'essentially
signed' type
|
MISRAC2012-RULE_10_3-b-2 |
|
127: |
The variable 'pb' used as the left hand side operand of the '+=' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
128: |
The variable 'pc' used as the left hand side operand of the '-=' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
131: |
'for' statement in a function 'qsort' should be followed by a block |
MISRAC2012-RULE_15_6-a-2 |
|
131: |
The left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
131: |
The left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
131: |
The variable 'pm' used as the left hand side operand of the '+=' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
131: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
131: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
132: |
'for' statement in a function 'qsort' should be followed by a block |
MISRAC2012-RULE_15_6-a-2 |
|
132: |
The variable 'pl' used as the left hand side operand of the '-' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
133: |
The variable 'pl' used as the left hand side operand of the '-=' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
134: |
Pointer to object type 'char *' is cast to pointer to different object type 'long *' |
MISRAC2012-RULE_11_3-a-2 |
|
134: |
The argument number '3' ('essentially unsigned' type) is passed to the function 'swapfunc' as a parameter with the 'essentially
signed' type
|
MISRAC2012-RULE_10_3-b-2 |
|
134: |
The variable 'pl' used as the left hand side operand of the '-' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
137: |
The left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
137: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
138: |
The expression of the 'long' essential type (8 byte) is assigned to an object with a narrower essential type (4 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
138: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
138: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
139: |
The variable 'pb' used as the left hand side operand of the '-' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
140: |
The expression of the 'long' essential type (8 byte) is assigned to an object with a narrower essential type (4 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
140: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
140: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
141: |
The variable 'pn' used as the left hand side operand of the '-' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
142: |
Assignment operator '=' is used in improper context |
MISRAC2012-RULE_13_4-a-4 |
|
142: |
The expression of the 'long' essential type (8 byte) is assigned to an object with a narrower essential type (4 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
143: |
Function "qsort" is called recursively |
MISRAC2012-RULE_17_2-a-2 |
|
144: |
Assignment operator '=' is used in improper context |
MISRAC2012-RULE_13_4-a-4 |
|
144: |
The expression of the 'long' essential type (8 byte) is assigned to an object with a narrower essential type (4 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
146: |
The variable 'pn' used as the left hand side operand of the '-' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
147: |
Parameter 'n' is modified in function 'qsort' |
MISRAC2012-RULE_17_8-a-4 |
|
148: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
148: |
The goto statement jumps to 'loop' label declared earlier in the same function body |
MISRAC2012-RULE_15_2-a-2 |
|
150: |
Section of code should not be 'commented out' |
MISRAC2012-DIR_4_4-a-4 |
| /optee_os_MISRA/isoc/snprintf.c |
|
9: |
Identifiers given in declaration of 'snprintf' function (file: 'stdio.h', line: '19') are: 'str' not: 'bf' |
MISRAC2012-RULE_8_3-b-2 |
|
9: |
Reserved name 'snprintf' used |
MISRAC2012-RULE_21_2-c-2 |
|
12: |
The identifier 'va_list' shall not be used |
MISRAC2012-RULE_17_1-a-2 |
|
12: |
The identifier 'va_list' shall not be used |
MISRAC2012-RULE_17_1-b-2 |
|
14: |
The identifier 'va_start' shall not be used |
MISRAC2012-RULE_17_1-a-2 |
|
14: |
The identifier 'va_start' shall not be used |
MISRAC2012-RULE_17_1-b-2 |
|
16: |
The identifier 'va_end' shall not be used |
MISRAC2012-RULE_17_1-a-2 |
|
16: |
The identifier 'va_end' shall not be used |
MISRAC2012-RULE_17_1-b-2 |
|
21: |
Identifiers given in declaration of 'vsnprintf' function (file: 'stdio.h', line: '21') are: 'str' not: 'bf' |
MISRAC2012-RULE_8_3-b-2 |
|
21: |
Reserved name 'vsnprintf' used |
MISRAC2012-RULE_21_2-c-2 |
|
21: |
The identifier 'va_list' shall not be used |
MISRAC2012-RULE_17_1-a-2 |
|
21: |
The identifier 'va_list' shall not be used |
MISRAC2012-RULE_17_1-b-2 |
|
21: |
The names of the identifiers 'vsnprintf' and '__vsnprintf' (line: 23 in the 'printk.h' file) differ only in the presence/absence
of the underscore character
|
MISRAC2012-DIR_4_5-a-4 |
| /optee_os_MISRA/isoc/sprintf.c |
|
9: |
Reserved name 'sprintf' used |
MISRAC2012-RULE_21_2-b-2 |
|
9: |
Reserved name 'sprintf' used |
MISRAC2012-RULE_21_2-c-2 |
|
12: |
The identifier 'va_list' shall not be used |
MISRAC2012-RULE_17_1-a-2 |
|
12: |
The identifier 'va_list' shall not be used |
MISRAC2012-RULE_17_1-b-2 |
|
14: |
The identifier 'va_start' shall not be used |
MISRAC2012-RULE_17_1-a-2 |
|
14: |
The identifier 'va_start' shall not be used |
MISRAC2012-RULE_17_1-b-2 |
|
16: |
The identifier 'va_end' shall not be used |
MISRAC2012-RULE_17_1-a-2 |
|
16: |
The identifier 'va_end' shall not be used |
MISRAC2012-RULE_17_1-b-2 |
| /optee_os_MISRA/isoc/stack_check.c |
|
6: |
Arithmetic type 'int' should not be converted to pointer to void type |
MISRAC2012-RULE_11_6-a-2 |
|
6: |
Declaration of object '__stack_chk_guard' does not precede its definition |
MISRAC2012-RULE_8_4-a-2 |
|
6: |
Reserved name '__stack_chk_guard' used |
MISRAC2012-RULE_21_2-a-2 |
|
8: |
Reserved name '__stack_chk_fail' used |
MISRAC2012-RULE_21_2-a-2 |
|
8: |
The '__stack_chk_fail' function should not be declared with the '_Noreturn' specifier |
MISRAC2012-RULE_1_4-b-2 |
|
10: |
Reserved name '__stack_chk_fail' used |
MISRAC2012-RULE_21_2-a-2 |
|
10: |
The '__stack_chk_fail' function should not be declared with the '_Noreturn' specifier |
MISRAC2012-RULE_1_4-b-2 |
|
12: |
'while' statement in a function '__stack_chk_fail' should be followed by a block |
MISRAC2012-RULE_15_6-a-2 |
| /optee_os_MISRA/isoc/strdup.c |
|
11: |
'malloc' function should not be used |
MISRAC2012-RULE_21_3-a-2 |
|
11: |
'malloc' function should not be used |
MISRAC2012-DIR_4_12-a-2 |
|
11: |
Pointer to void type should not be converted to pointer to object type 'char *' |
MISRAC2012-RULE_11_5-a-4 |
|
13: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
14: |
Unused function's "memcpy" return value |
MISRAC2012-RULE_17_7-a-2 |
| /optee_os_MISRA/isoc/strndup.c |
|
11: |
'malloc' function should not be used |
MISRAC2012-RULE_21_3-a-2 |
|
11: |
'malloc' function should not be used |
MISRAC2012-DIR_4_12-a-2 |
|
11: |
Pointer to void type should not be converted to pointer to object type 'char *' |
MISRAC2012-RULE_11_5-a-4 |
| +
|
11: |
The return value of the "strnlen" method is not checked. It is checked at least 80% times in the testing scope |
MISRAC2012-DIR_4_7-a-2 |
| |
|
Example path
tee_uuid_from_str.c (49): if (!p || strnlen(p, 37) != 36) *** Method call *** Example of checking
Violation path
Method call
strndup.c (10): strnlen(...)
strndup.c (10): size_t l = strnlen(s, n) + 1;
Point by which returned value should be checked
strndup.c (11): char *p = malloc(l); |
|
|
13: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
| +
|
14: |
The number of bytes to process by the "memcpy" function is not positive and equals 0 |
MISRAC2012-RULE_21_18-a-1 |
| |
|
strndup.c (10): strnlen(...)
Point where number of bytes to process is defined
strnlen.c (75): _CONST char *start = str; *** Number of bytes to process: str-start == 0 *** Buffer: const char s[]
strnlen.c (77): while (n-- > 0 && *str) *** Loop condition evaluation: (n > 0) (assuming false) *** Loop condition evaluation: n-- > 0 && *str (false) *** Not entering the loop
strnlen.c (80): return str - start;
strndup.c (10): size_t l = strnlen(s, n) + 1; *** Number of bytes to process: strnlen(...) == 0 *** Buffer: const char s[]
strndup.c (11): char *p = malloc(l); *** Number of bytes to process: l-1 == 0 *** Buffer: const char s[]
strndup.c (13): if (p) { *** Condition evaluation: (p != 0) (assuming true)
Point where buffer is passed to the function
strndup.c (14): memcpy(p, s, l - 1); *** Number of bytes to process: l-1 == 0 *** Buffer: const char s[] |
|
|
14: |
Unused function's "memcpy" return value |
MISRAC2012-RULE_17_7-a-2 |
| /optee_os_MISRA/isoc/tolower.c |
|
7: |
Reserved name 'tolower' used |
MISRAC2012-RULE_21_2-b-2 |
|
7: |
Reserved name 'tolower' used |
MISRAC2012-RULE_21_2-c-2 |
|
10: |
The expression of the 'essentially character' type is returned from function 'tolower' with the 'essentially signed' type |
MISRAC2012-RULE_10_3-b-2 |
|
10: |
The right hand operand of the '-' operator has essentially character type and is used inappropriately |
MISRAC2012-RULE_10_2-a-2 |
|
10: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
| /optee_os_MISRA/isoc/toupper.c |
|
7: |
Reserved name 'toupper' used |
MISRAC2012-RULE_21_2-b-2 |
|
7: |
Reserved name 'toupper' used |
MISRAC2012-RULE_21_2-c-2 |
|
10: |
The expression of the 'essentially character' type is returned from function 'toupper' with the 'essentially signed' type |
MISRAC2012-RULE_10_3-b-2 |
|
10: |
The right hand operand of the '-' operator has essentially character type and is used inappropriately |
MISRAC2012-RULE_10_2-a-2 |
|
10: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
| /optee_os_MISRA/isoc/write.c |
|
13: |
The 'abort' library function should not be used |
MISRAC2012-RULE_21_8-a-2 |
|
15: |
Cast from 'const void *' removes 'const' qualifier |
MISRAC2012-RULE_11_8-a-2 |
|
15: |
Pointer to void type should not be converted to pointer to object type 'char *' |
MISRAC2012-RULE_11_5-a-4 |
|
15: |
Usage of 'printf' function is not allowed |
MISRAC2012-RULE_21_6-a-2 |
| /optee_os_MISRA/ldelf/dl.c |
|
11: |
Pass parameter "arg" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
15: |
Conditional statement 'if' in a function 'dlopen_entry' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
15: |
Operands of the '!=' operator have different essential types: 'unsigned int' and 'short' |
MISRAC2012-RULE_10_4-a-2 |
|
15: |
The left hand operand of the '|' operator has essentially signed type: short |
MISRAC2012-RULE_10_1-e-2 |
|
15: |
The left hand operand of the '|' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
15: |
The right hand operand of the '|' operator has essentially signed type: short |
MISRAC2012-RULE_10_1-e-2 |
|
16: |
Integer constant '0xFFFF0006' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
16: |
Provide only one exit point in 'dlopen_entry' function |
MISRAC2012-RULE_15_5-a-4 |
|
18: |
Conditional statement 'if' in a function 'dlopen_entry' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
18: |
The first argument to the function 'memcmp()' is a pointer to an inappropriate type 'TEE_UUID' |
MISRAC2012-RULE_21_16-a-2 |
|
18: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
18: |
The second argument to the function 'memcmp()' is a pointer to an inappropriate type 'TEE_UUID' |
MISRAC2012-RULE_21_16-a-2 |
|
19: |
Provide only one exit point in 'dlopen_entry' function |
MISRAC2012-RULE_15_5-a-4 |
|
21: |
Provide only one exit point in 'dlopen_entry' function |
MISRAC2012-RULE_15_5-a-4 |
|
29: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
29: |
The first argument to the function 'memcmp()' is a pointer to an inappropriate type 'TEE_UUID' |
MISRAC2012-RULE_21_16-a-2 |
|
29: |
The second argument to the function 'memcmp()' is a pointer to an inappropriate type 'TEE_UUID' |
MISRAC2012-RULE_21_16-a-2 |
|
31: |
Conditional statement 'if' in a function 'dlsym_entry' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
31: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
32: |
Integer constant '0xFFFF0008' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
32: |
Provide only one exit point in 'dlsym_entry' function |
MISRAC2012-RULE_15_5-a-4 |
|
35: |
Provide only one exit point in 'dlsym_entry' function |
MISRAC2012-RULE_15_5-a-4 |
| /optee_os_MISRA/ldelf/ftrace.h |
|
18: |
Parameter 'lr' is not used in function 'ftrace_map_lr' |
MISRAC2012-RULE_2_7-a-4 |
|
18: |
Pass parameter "lr" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
| /optee_os_MISRA/ldelf/include/ldelf.h |
|
8: |
Do not use reserved identifiers : __LDELF_H |
MISRAC2012-RULE_21_1-a-2 |
|
38: |
Identifier 'dl_entry' is already used as static object or function identifier |
MISRAC2012-RULE_5_9-a-4 |
|
53: |
The 'union' keyword shall not be used |
MISRAC2012-RULE_19_2-a-4 |
|
63: |
Identifier 'is_arm32' is already used as static object or function identifier |
MISRAC2012-RULE_5_9-a-4 |
|
65: |
Consider hiding the implementation of the structure 'dump_map' in a translation unit 'dl.c' |
MISRAC2012-DIR_4_8-a-4 |
|
65: |
Consider hiding the implementation of the structure 'dump_map' in a translation unit 'main.c' |
MISRAC2012-DIR_4_8-a-4 |
|
65: |
Consider hiding the implementation of the structure 'dump_map' in a translation unit 'ta_elf_rel.c' |
MISRAC2012-DIR_4_8-a-4 |
|
70: |
Flexible array member 'maps' is declared |
MISRAC2012-RULE_18_7-a-2 |
|
79: |
The 'union' keyword shall not be used |
MISRAC2012-RULE_19_2-a-4 |
|
87: |
Flexible array member 'symbol' is declared |
MISRAC2012-RULE_18_7-a-2 |
| /optee_os_MISRA/ldelf/include/ldelf_syscalls.h |
|
13: |
Reserved name '_ldelf_return' used |
MISRAC2012-RULE_21_2-a-2 |
|
13: |
The '_ldelf_return' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
13: |
The '_ldelf_return' function should not be declared with the '_Noreturn' specifier |
MISRAC2012-RULE_1_4-b-2 |
|
13: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
14: |
Reserved name '_ldelf_log' used |
MISRAC2012-RULE_21_2-a-2 |
|
14: |
The '_ldelf_log' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
15: |
Reserved name '_ldelf_panic' used |
MISRAC2012-RULE_21_2-a-2 |
|
15: |
The '_ldelf_panic' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
15: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
16: |
Reserved name '_ldelf_map_zi' used |
MISRAC2012-RULE_21_2-a-2 |
|
16: |
The '_ldelf_map_zi' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
17: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
18: |
Reserved name '_ldelf_unmap' used |
MISRAC2012-RULE_21_2-a-2 |
|
18: |
The '_ldelf_unmap' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
19: |
Reserved name '_ldelf_open_bin' used |
MISRAC2012-RULE_21_2-a-2 |
|
19: |
The '_ldelf_open_bin' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
21: |
Reserved name '_ldelf_close_bin' used |
MISRAC2012-RULE_21_2-a-2 |
|
21: |
The '_ldelf_close_bin' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
21: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
22: |
Reserved name '_ldelf_map_bin' used |
MISRAC2012-RULE_21_2-a-2 |
|
22: |
The '_ldelf_map_bin' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
22: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
24: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
25: |
Reserved name '_ldelf_cp_from_bin' used |
MISRAC2012-RULE_21_2-a-2 |
|
25: |
The '_ldelf_cp_from_bin' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
26: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
27: |
Reserved name '_ldelf_set_prot' used |
MISRAC2012-RULE_21_2-a-2 |
|
27: |
The '_ldelf_set_prot' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
27: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
28: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
29: |
Reserved name '_ldelf_remap' used |
MISRAC2012-RULE_21_2-a-2 |
|
29: |
The '_ldelf_remap' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
29: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
31: |
Reserved name '_ldelf_gen_rnd_num' used |
MISRAC2012-RULE_21_2-a-2 |
|
31: |
The '_ldelf_gen_rnd_num' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
| /optee_os_MISRA/ldelf/main.c |
|
22: |
Global variable 'mpool_size' is being used only in a single function 'ldelf' |
MISRAC2012-RULE_8_9-a-4 |
|
22: |
The expression of the 'essentially signed' type is assigned to an object with the 'essentially unsigned' type |
MISRAC2012-RULE_10_3-b-2 |
|
25: |
Parameter 'pctx' is not used in function 'print_to_console' |
MISRAC2012-RULE_2_7-a-4 |
|
25: |
Pass parameter "pctx" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
26: |
The identifier 'va_list' shall not be used |
MISRAC2012-RULE_17_1-a-2 |
|
26: |
The identifier 'va_list' shall not be used |
MISRAC2012-RULE_17_1-b-2 |
|
31: |
The 'dump_ta_state' function should not be declared with the '_Noreturn' specifier |
MISRAC2012-RULE_1_4-b-2 |
|
35: |
The left hand operand of the logical operator '&&' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
43: |
Conditional statement 'if' in a function 'dump_ta_state' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
46: |
An 'else' statement in a function 'dump_ta_state' shall be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
60: |
The identifier 'va_list' shall not be used |
MISRAC2012-RULE_17_1-a-2 |
|
60: |
The identifier 'va_list' shall not be used |
MISRAC2012-RULE_17_1-b-2 |
|
65: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
106: |
The 'dl_entry' function should not be declared with the '_Noreturn' specifier |
MISRAC2012-RULE_1_4-b-2 |
|
115: |
Every non empty default clause in a switch statement shall be terminated with a break statement |
MISRAC2012-RULE_16_1-d-2 |
|
115: |
Every non empty default clause in a switch statement shall be terminated with a break statement |
MISRAC2012-RULE_16_3-b-2 |
|
116: |
Integer constant '0xFFFF000A' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
128: |
The 'ldelf' function should not be declared with the '_Noreturn' specifier |
MISRAC2012-RULE_1_4-b-2 |
|
129: |
The 'ldelf' function should not be declared with the '_Noreturn' specifier |
MISRAC2012-RULE_1_4-b-2 |
|
136: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
140: |
Arithmetic type 'unsigned long' should not be converted to pointer to void type |
MISRAC2012-RULE_11_6-a-2 |
|
151: |
'for' statement in a function 'ldelf' should be followed by a block |
MISRAC2012-RULE_15_6-a-2 |
|
151: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
152: |
The argument number '2' ('essentially unsigned' type) is passed to the function 'ta_elf_load_dependency' as a parameter with
the 'essentially Boolean' type
|
MISRAC2012-RULE_10_3-b-2 |
|
154: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
167: |
'for' statement in a function 'ldelf' should be followed by a block |
MISRAC2012-RULE_15_6-a-2 |
|
167: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
172: |
Pointer to function 'void (*)(struct dump_entry_arg *)' should not be cast to other type |
MISRAC2012-RULE_11_1-a-2 |
|
172: |
Pointer to void type should not be converted to arithmetic type 'unsigned long' |
MISRAC2012-RULE_11_6-a-2 |
|
176: |
Pointer to function 'void (*)(struct dl_entry_arg *)' should not be cast to other type |
MISRAC2012-RULE_11_1-a-2 |
|
176: |
Pointer to void type should not be converted to arithmetic type 'unsigned long' |
MISRAC2012-RULE_11_6-a-2 |
| /optee_os_MISRA/ldelf/sys.c |
|
12: |
The 'trace_level' object is also defined in other translation units |
MISRAC2012-RULE_8_6-a-2 |
|
12: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
13: |
The 'trace_ext_prefix' object is also defined in other translation units |
MISRAC2012-RULE_8_6-a-2 |
|
15: |
Reserved name '__panic' used |
MISRAC2012-RULE_21_2-a-2 |
|
15: |
The '__panic' function should not be declared with the '_Noreturn' specifier |
MISRAC2012-RULE_1_4-b-2 |
|
15: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
18: |
Conditional statement 'if' in a function '__panic' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
18: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
18: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
18: |
The operands of a logical '&&' in function '__panic' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
18: |
The operands of a logical '&&' in function '__panic' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
21: |
An 'else' statement in a function '__panic' shall be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
21: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
21: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
21: |
The first operand of the conditional operator '?:' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
21: |
The first operand of the conditional operator '?:' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
27: |
'while' statement in a function '__panic' should be followed by a block |
MISRAC2012-RULE_15_6-a-2 |
|
31: |
The 'sys_return_cleanup' function should not be declared with the '_Noreturn' specifier |
MISRAC2012-RULE_1_4-b-2 |
|
35: |
'while' statement in a function 'sys_return_cleanup' should be followed by a block |
MISRAC2012-RULE_15_6-a-2 |
| /optee_os_MISRA/ldelf/sys.h |
|
18: |
Do not define function-like macro: panic |
MISRAC2012-DIR_4_9-a-4 |
|
20: |
Do not define function-like macro: panic |
MISRAC2012-DIR_4_9-a-4 |
|
28: |
Reserved name '__panic' used |
MISRAC2012-RULE_21_2-a-2 |
|
28: |
The '__panic' function should not be declared with the '_Noreturn' specifier |
MISRAC2012-RULE_1_4-b-2 |
|
28: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
29: |
The 'sys_return_cleanup' function should not be declared with the '_Noreturn' specifier |
MISRAC2012-RULE_1_4-b-2 |
|
31: |
Do not define function-like macro: err |
MISRAC2012-DIR_4_9-a-4 |
| /optee_os_MISRA/ldelf/ta_elf.c |
|
55: |
Conditional statement 'if' in a function 'assign_tls_mod_id' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
56: |
Operands of the '==' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
57: |
The '++' operator should cause the only side effect in an expression |
MISRAC2012-RULE_13_3-a-4 |
|
62: |
'calloc' function should not be used |
MISRAC2012-RULE_21_3-a-2 |
|
62: |
'calloc' function should not be used |
MISRAC2012-DIR_4_12-a-2 |
|
62: |
Pointer to void type should not be converted to pointer to object type 'struct ta_elf *' |
MISRAC2012-RULE_11_5-a-4 |
|
64: |
Conditional statement 'if' in a function 'queue_elf_helper' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
64: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
65: |
Provide only one exit point in 'queue_elf_helper' function |
MISRAC2012-RULE_15_5-a-4 |
|
71: |
Provide only one exit point in 'queue_elf_helper' function |
MISRAC2012-RULE_15_5-a-4 |
|
78: |
Conditional statement 'if' in a function 'queue_elf' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
78: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
79: |
Provide only one exit point in 'queue_elf' function |
MISRAC2012-RULE_15_5-a-4 |
|
82: |
Conditional statement 'if' in a function 'queue_elf' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
82: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
83: |
Integer constant '0xFFFF000C' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
85: |
Provide only one exit point in 'queue_elf' function |
MISRAC2012-RULE_15_5-a-4 |
|
92: |
'for' statement in a function 'ta_elf_find_elf' should be followed by a block |
MISRAC2012-RULE_15_6-a-2 |
|
92: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
93: |
Conditional statement 'if' in a function 'ta_elf_find_elf' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
93: |
The first argument to the function 'memcmp()' is a pointer to an inappropriate type 'const TEE_UUID' |
MISRAC2012-RULE_21_16-a-2 |
|
93: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
93: |
The second argument to the function 'memcmp()' is a pointer to an inappropriate type 'TEE_UUID' |
MISRAC2012-RULE_21_16-a-2 |
|
94: |
Provide only one exit point in 'ta_elf_find_elf' function |
MISRAC2012-RULE_15_5-a-4 |
|
96: |
Provide only one exit point in 'ta_elf_find_elf' function |
MISRAC2012-RULE_15_5-a-4 |
|
99: |
Pass parameter "ehdr" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
101: |
Conditional statement 'if' in a function 'e32_parse_ehdr' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
101: |
Operands of the '!=' operator have different essential types: 'unsigned char' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
101: |
The operands of a logical '||' in function 'e32_parse_ehdr' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
102: |
Operands of the '!=' operator have different essential types: 'unsigned char' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
102: |
The operands of a logical '||' in function 'e32_parse_ehdr' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
103: |
Operands of the '!=' operator have different essential types: 'unsigned char' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
103: |
The operands of a logical '||' in function 'e32_parse_ehdr' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
104: |
Operands of the '!=' operator have different essential types: 'unsigned char' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
104: |
The operands of a logical '||' in function 'e32_parse_ehdr' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
105: |
Operands of the '!=' operator have different essential types: 'unsigned short' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
105: |
Operands of the '!=' operator have different essential types: 'unsigned short' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
105: |
The operands of a logical '||' in function 'e32_parse_ehdr' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
105: |
The operands of a logical '||' in function 'e32_parse_ehdr' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
106: |
Integer constant '0xFF000000' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
106: |
Operands of the '!=' operator have different essential types: 'unsigned int' and 'int' |
MISRAC2012-RULE_10_4-a-2 |
|
106: |
The operands of a logical '||' in function 'e32_parse_ehdr' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
110: |
The operands of a logical '||' in function 'e32_parse_ehdr' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
111: |
The operands of a logical '||' in function 'e32_parse_ehdr' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
112: |
Integer constant '0xFFFF0005' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
112: |
Provide only one exit point in 'e32_parse_ehdr' function |
MISRAC2012-RULE_15_5-a-4 |
|
123: |
Provide only one exit point in 'e32_parse_ehdr' function |
MISRAC2012-RULE_15_5-a-4 |
|
127: |
Pass parameter "ehdr" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
129: |
Conditional statement 'if' in a function 'e64_parse_ehdr' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
129: |
Operands of the '!=' operator have different essential types: 'unsigned char' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
129: |
The operands of a logical '||' in function 'e64_parse_ehdr' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
129: |
The right hand operand of the logical operator '||' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
130: |
Operands of the '!=' operator have different essential types: 'unsigned char' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
130: |
The operands of a logical '||' in function 'e64_parse_ehdr' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
131: |
Operands of the '!=' operator have different essential types: 'unsigned char' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
131: |
The operands of a logical '||' in function 'e64_parse_ehdr' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
132: |
Operands of the '!=' operator have different essential types: 'unsigned char' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
132: |
The operands of a logical '||' in function 'e64_parse_ehdr' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
133: |
Operands of the '!=' operator have different essential types: 'unsigned short' and 'short' |
MISRAC2012-RULE_10_4-a-2 |
|
133: |
Operands of the '!=' operator have different essential types: 'unsigned short' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
133: |
The operands of a logical '||' in function 'e64_parse_ehdr' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
133: |
The operands of a logical '||' in function 'e64_parse_ehdr' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
134: |
The operands of a logical '||' in function 'e64_parse_ehdr' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
135: |
The operands of a logical '||' in function 'e64_parse_ehdr' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
136: |
Integer constant '0xFFFF0005' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
136: |
Provide only one exit point in 'e64_parse_ehdr' function |
MISRAC2012-RULE_15_5-a-4 |
|
148: |
Provide only one exit point in 'e64_parse_ehdr' function |
MISRAC2012-RULE_15_5-a-4 |
|
158: |
Pass parameter "elf" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
158: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
163: |
Conditional statement 'if' in a function 'check_phdr_in_range' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
164: |
Integer constant '0xFFFF0005' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
171: |
Conditional statement 'if' in a function 'check_phdr_in_range' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
171: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
172: |
Integer constant '0xFFFF0005' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
177: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
180: |
Integral type 'unsigned long' should not be converted to pointer to object type 'Elf32_Dyn *' |
MISRAC2012-RULE_11_4-a-4 |
|
182: |
The expression of the 'essentially signed' type is assigned to an object with the 'essentially unsigned' type |
MISRAC2012-RULE_10_3-b-2 |
|
185: |
Integral type 'unsigned long' should not be converted to pointer to object type 'Elf64_Dyn *' |
MISRAC2012-RULE_11_4-a-4 |
|
187: |
The expression of the 'essentially signed' type is assigned to an object with the 'essentially unsigned' type |
MISRAC2012-RULE_10_3-b-2 |
|
192: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
198: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
201: |
Conditional statement 'if' in a function 'save_hashtab_from_segment' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
201: |
Operands of the '!=' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
202: |
'return' statement should be at the end of the 'save_hashtab_from_segment' function |
MISRAC2012-RULE_15_5-a-4 |
|
206: |
Conditional statement 'if' in a function 'save_hashtab_from_segment' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
209: |
An 'else' statement in a function 'save_hashtab_from_segment' shall be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
211: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
216: |
Operands of the '==' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
217: |
Arithmetic type 'unsigned long' should not be converted to pointer to void type |
MISRAC2012-RULE_11_6-a-2 |
|
223: |
Pass parameter "elf" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
228: |
Conditional statement 'if' in a function 'check_range' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
228: |
Pointer to void type should not be converted to arithmetic type 'unsigned long' |
MISRAC2012-RULE_11_6-a-2 |
|
229: |
Integer constant '0xFFFF0005' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
231: |
Conditional statement 'if' in a function 'check_range' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
231: |
Pointer to void type should not be converted to arithmetic type 'unsigned long' |
MISRAC2012-RULE_11_6-a-2 |
|
232: |
Integer constant '0xFFFF0005' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
234: |
Conditional statement 'if' in a function 'check_range' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
235: |
Integer constant '0xFFFF0005' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
239: |
Pass parameter "ptr" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
252: |
Conditional statement 'if' in a function 'check_hashtab' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
252: |
Do not use the '_Alignof' operator |
MISRAC2012-RULE_1_4-h-2 |
|
252: |
Operands of the '==' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
252: |
Pointer to void type should not be converted to arithmetic type 'unsigned long' |
MISRAC2012-RULE_11_6-a-2 |
|
253: |
Integer constant '0xFFFF0005' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
255: |
Conditional statement 'if' in a function 'check_hashtab' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
255: |
The operands of a logical '||' in function 'check_hashtab' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
256: |
The operands of a logical '||' in function 'check_hashtab' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
257: |
The operands of a logical '||' in function 'check_hashtab' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
258: |
Integer constant '0xFFFF0005' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
269: |
Pointer to void type should not be converted to pointer to object type 'Elf32_Phdr *' |
MISRAC2012-RULE_11_5-a-4 |
|
271: |
'for' statement in a function 'save_hashtab' should be followed by a block |
MISRAC2012-RULE_15_6-a-2 |
|
276: |
Pointer to void type should not be converted to pointer to object type 'Elf64_Phdr *' |
MISRAC2012-RULE_11_5-a-4 |
|
278: |
'for' statement in a function 'save_hashtab' should be followed by a block |
MISRAC2012-RULE_15_6-a-2 |
|
285: |
Pointer to void type should not be converted to pointer to object type 'uint32_t *' |
MISRAC2012-RULE_11_5-a-4 |
|
289: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
295: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
299: |
Conditional statement 'if' in a function 'save_soname_from_segment' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
299: |
Operands of the '!=' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
300: |
'return' statement should be at the end of the 'save_soname_from_segment' function |
MISRAC2012-RULE_15_5-a-4 |
|
302: |
Conditional statement 'if' in a function 'save_soname_from_segment' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
305: |
An 'else' statement in a function 'save_soname_from_segment' shall be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
307: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
312: |
Operands of the '==' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
313: |
Integral type 'unsigned long' should not be converted to pointer to object type 'char *' |
MISRAC2012-RULE_11_4-a-4 |
|
319: |
Operands of the '==' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
320: |
The variable 'str_tab' used as the left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
331: |
Pointer to void type should not be converted to pointer to object type 'Elf32_Phdr *' |
MISRAC2012-RULE_11_5-a-4 |
|
333: |
'for' statement in a function 'save_soname' should be followed by a block |
MISRAC2012-RULE_15_6-a-2 |
|
338: |
Pointer to void type should not be converted to pointer to object type 'Elf64_Phdr *' |
MISRAC2012-RULE_11_5-a-4 |
|
340: |
'for' statement in a function 'save_soname' should be followed by a block |
MISRAC2012-RULE_15_6-a-2 |
|
349: |
Pointer to void type should not be converted to pointer to object type 'Elf32_Shdr *' |
MISRAC2012-RULE_11_5-a-4 |
|
352: |
Arithmetic type 'unsigned long' should not be converted to pointer to void type |
MISRAC2012-RULE_11_6-a-2 |
|
353: |
Conditional statement 'if' in a function 'e32_save_symtab' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
353: |
Do not use the '_Alignof' operator |
MISRAC2012-RULE_1_4-h-2 |
|
353: |
Operands of the '==' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
353: |
Pointer to void type should not be converted to arithmetic type 'unsigned long' |
MISRAC2012-RULE_11_6-a-2 |
|
354: |
Integer constant '0xFFFF0005' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
358: |
Conditional statement 'if' in a function 'e32_save_symtab' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
358: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
359: |
Integer constant '0xFFFF0005' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
363: |
Conditional statement 'if' in a function 'e32_save_symtab' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
364: |
Integer constant '0xFFFF0005' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
365: |
Arithmetic type 'unsigned long' should not be converted to pointer to void type |
MISRAC2012-RULE_11_6-a-2 |
|
365: |
Pointer to void type should not be converted to pointer to object type 'const char *' |
MISRAC2012-RULE_11_5-a-4 |
|
373: |
Pointer to void type should not be converted to pointer to object type 'Elf64_Shdr *' |
MISRAC2012-RULE_11_5-a-4 |
|
376: |
Arithmetic type 'unsigned long' should not be converted to pointer to void type |
MISRAC2012-RULE_11_6-a-2 |
|
379: |
Conditional statement 'if' in a function 'e64_save_symtab' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
379: |
Do not use the '_Alignof' operator |
MISRAC2012-RULE_1_4-h-2 |
|
379: |
Operands of the '==' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
379: |
Pointer to void type should not be converted to arithmetic type 'unsigned long' |
MISRAC2012-RULE_11_6-a-2 |
|
380: |
Integer constant '0xFFFF0005' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
385: |
Conditional statement 'if' in a function 'e64_save_symtab' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
385: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
386: |
Integer constant '0xFFFF0005' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
390: |
Conditional statement 'if' in a function 'e64_save_symtab' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
391: |
Integer constant '0xFFFF0005' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
393: |
Arithmetic type 'unsigned long' should not be converted to pointer to void type |
MISRAC2012-RULE_11_6-a-2 |
|
393: |
Pointer to void type should not be converted to pointer to object type 'const char *' |
MISRAC2012-RULE_11_5-a-4 |
|
404: |
Pointer to void type should not be converted to pointer to object type 'Elf32_Shdr *' |
MISRAC2012-RULE_11_5-a-4 |
|
407: |
Operands of the '==' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
413: |
Pointer to void type should not be converted to pointer to object type 'Elf64_Shdr *' |
MISRAC2012-RULE_11_5-a-4 |
|
416: |
Operands of the '==' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
436: |
Conditional statement 'if' in a function 'init_elf' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
436: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
443: |
Conditional statement 'if' in a function 'init_elf' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
446: |
Conditional statement 'if' in a function 'init_elf' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
446: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
451: |
Operands of the '+' operator have different essential types: 'unsigned long' and 'short' |
MISRAC2012-RULE_10_4-a-2 |
|
455: |
Conditional statement 'if' in a function 'init_elf' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
455: |
Integral type 'unsigned long' should not be converted to pointer to object type 'Elf32_Ehdr *' |
MISRAC2012-RULE_11_4-a-4 |
|
455: |
Integral type 'unsigned long' should not be converted to pointer to object type 'Elf32_Ehdr *' |
MISRAC2012-RULE_11_4-a-4 |
|
455: |
Operands of the '==' operator have different essential types: 'unsigned char' and 'char' |
MISRAC2012-RULE_10_4-a-2 |
|
455: |
Operands of the '==' operator have different essential types: 'unsigned char' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
455: |
The operands of a logical '&&' in function 'init_elf' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
455: |
The operands of a logical '&&' in function 'init_elf' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
456: |
Integer constant '0xFFFF0005' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
458: |
Arithmetic type 'unsigned long' should not be converted to pointer to void type |
MISRAC2012-RULE_11_6-a-2 |
|
458: |
Pointer to void type should not be converted to pointer to object type 'Elf32_Ehdr *' in function's argument |
MISRAC2012-RULE_11_5-a-4 |
|
459: |
Conditional statement 'if' in a function 'init_elf' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
459: |
Integer constant '0xFFFF0005' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
460: |
Arithmetic type 'unsigned long' should not be converted to pointer to void type |
MISRAC2012-RULE_11_6-a-2 |
|
460: |
Pointer to void type should not be converted to pointer to object type 'Elf64_Ehdr *' in function's argument |
MISRAC2012-RULE_11_5-a-4 |
|
461: |
Conditional statement 'if' in a function 'init_elf' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
461: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
464: |
Conditional statement 'if' in a function 'init_elf' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
464: |
The operands of a logical '||' in function 'init_elf' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
465: |
The operands of a logical '||' in function 'init_elf' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
466: |
Integer constant '0xFFFF0005' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
468: |
Conditional statement 'if' in a function 'init_elf' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
468: |
Operands of the '>' operator have different essential types: 'unsigned long' and 'short' |
MISRAC2012-RULE_10_4-a-2 |
|
469: |
Integer constant '0xFFFF000A' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
471: |
Arithmetic type 'unsigned long' should not be converted to pointer to void type |
MISRAC2012-RULE_11_6-a-2 |
|
476: |
Operands of the '-' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
476: |
Operands of the '-' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
481: |
Operands of the '-' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
487: |
'calloc' function should not be used |
MISRAC2012-RULE_21_3-a-2 |
|
487: |
'calloc' function should not be used |
MISRAC2012-DIR_4_12-a-2 |
|
487: |
Pointer to void type should not be converted to pointer to object type 'struct segment *' |
MISRAC2012-RULE_11_5-a-4 |
|
489: |
Conditional statement 'if' in a function 'add_segment' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
489: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
490: |
Integer constant '0xFFFF000C' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
492: |
Conditional statement 'if' in a function 'add_segment' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
493: |
Integer constant '0xFFFF0005' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
510: |
Pointer to void type should not be converted to pointer to object type 'Elf32_Phdr *' |
MISRAC2012-RULE_11_5-a-4 |
|
512: |
'for' statement in a function 'parse_load_segments' should be followed by a block |
MISRAC2012-RULE_15_6-a-2 |
|
513: |
Operands of the '==' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
518: |
Operands of the '==' operator have different essential types: 'unsigned int' and 'int' |
MISRAC2012-RULE_10_4-a-2 |
|
521: |
Operands of the '==' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
521: |
Provide 'else' after the last 'else-if' construct |
MISRAC2012-RULE_15_7-a-2 |
|
525: |
Pointer to void type should not be converted to pointer to object type 'Elf64_Phdr *' |
MISRAC2012-RULE_11_5-a-4 |
|
527: |
'for' statement in a function 'parse_load_segments' should be followed by a block |
MISRAC2012-RULE_15_6-a-2 |
|
528: |
Operands of the '==' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
533: |
Operands of the '==' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
533: |
Provide 'else' after the last 'else-if' construct |
MISRAC2012-RULE_15_7-a-2 |
|
543: |
Arithmetic type 'unsigned long' should not be converted to pointer to void type |
MISRAC2012-RULE_11_6-a-2 |
|
543: |
Pointer to void type should not be converted to pointer to object type 'uint8_t *' |
MISRAC2012-RULE_11_5-a-4 |
|
549: |
Reserved name '_a' used |
MISRAC2012-RULE_21_2-a-2 |
|
549: |
Reserved name '_b' used |
MISRAC2012-RULE_21_2-a-2 |
|
549: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
550: |
Arithmetic type 'unsigned long' should not be converted to pointer to void type |
MISRAC2012-RULE_11_6-a-2 |
|
550: |
In the call of the function 'memcpy' the first argument type 'unsigned char*' is not compatible with the second argument type
'void*'
|
MISRAC2012-RULE_21_15-a-2 |
|
550: |
Unused function's "memcpy" return value |
MISRAC2012-RULE_17_7-a-2 |
|
550: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
551: |
The variable 'dst' used as the left hand side operand of the '+=' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
556: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
560: |
Conditional statement 'if' in a function 'copy_remapped_to' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
560: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
566: |
Value 30 is out of acceptable range: 'lower than 30' |
METRIC.CC-3 |
|
575: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
578: |
Operands of the '>=' operator have different essential types: 'unsigned long' and 'short' |
MISRAC2012-RULE_10_4-a-2 |
|
578: |
Potential macro 'SMALL_PAGE_SIZE' used as '1' parameter of potential macro 'assert' |
MISRAC2012-RULE_20_12-a-2 |
|
579: |
Potential macro 'ADD_OVERFLOW' used as '1' parameter of potential macro 'assert' |
MISRAC2012-RULE_20_12-a-2 |
|
581: |
Operands of the '&' operator have different essential types: 'unsigned long' and 'short' |
MISRAC2012-RULE_10_4-a-2 |
|
581: |
Operands of the '&' operator have different essential types: 'unsigned long' and 'short' |
MISRAC2012-RULE_10_4-a-2 |
|
581: |
Potential macro 'SMALL_PAGE_MASK' used as '1' parameter of potential macro 'assert' |
MISRAC2012-RULE_20_12-a-2 |
|
581: |
The right hand operand of the '&' operator has essentially signed type: short |
MISRAC2012-RULE_10_1-e-2 |
|
581: |
The right hand operand of the '&' operator has essentially signed type: short |
MISRAC2012-RULE_10_1-e-2 |
|
582: |
Potential macro 'SMALL_PAGE_MASK' used as '1' parameter of potential macro 'assert' |
MISRAC2012-RULE_20_12-a-2 |
|
584: |
Pointer to object type 'struct segment **' is cast to pointer to different object type 'struct segment_head *' |
MISRAC2012-RULE_11_3-a-2 |
|
585: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
586: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
587: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
590: |
Conditional statement 'if' in a function 'adjust_segments' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
590: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
| +
|
595: |
Integer overflow: value of (align - 1) will be 18,446,744,073,709,551,615 instead of -1 (result type: 64 bits, unsigned, min:
0, max: 18,446,744,073,709,551,615)
|
MISRAC2012-DIR_4_1-k-2 |
| |
|
Start of the path
ta_elf.c (571): size_t align = 0; *** Variable assignment: align = 0
ta_elf.c (572): size_t mask = 0;
ta_elf.c (575): TAILQ_FOREACH(seg, &elf->segs, link) {
Integer overflow point
ta_elf.c (595): mask = align - 1; *** Variable assignment: mask = (align - 1) -> mask = 18446744073709551615 |
|
|
595: |
Operands of the '-' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
598: |
Conditional statement 'if' in a function 'adjust_segments' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
598: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
600: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
601: |
Pointer to object type 'struct segment **' is cast to pointer to different object type 'struct segment_head *' |
MISRAC2012-RULE_11_3-a-2 |
|
628: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
630: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
634: |
An 'else' statement in a function 'adjust_segments' shall be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
634: |
Conditional statement 'if' in a function 'adjust_segments' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
635: |
'free' function should not be used |
MISRAC2012-RULE_21_3-a-2 |
|
635: |
'free' function should not be used |
MISRAC2012-DIR_4_12-a-2 |
|
641: |
The left hand operand of the logical operator '&&' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
642: |
The operands of a logical '&&' in function 'adjust_segments' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
645: |
Operands of the '&' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
645: |
Potential macro 'PF_W' used as '1' parameter of potential macro 'assert' |
MISRAC2012-RULE_20_12-a-2 |
|
645: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
645: |
The right hand operand of the '&' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
669: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
670: |
Pointer to object type 'struct segment **' is cast to pointer to different object type 'struct segment_head *' |
MISRAC2012-RULE_11_3-a-2 |
|
671: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
675: |
Conditional statement 'if' in a function 'populate_segments_legacy' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
675: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
678: |
An 'else' statement in a function 'populate_segments_legacy' shall be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
681: |
Conditional statement 'if' in a function 'populate_segments_legacy' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
681: |
Operands of the '&' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
681: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
681: |
The right hand operand of the '&' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
682: |
Integer constant '0xFFFF000A' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
686: |
Conditional statement 'if' in a function 'populate_segments_legacy' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
686: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
688: |
Arithmetic type 'unsigned long' should not be converted to pointer to void type |
MISRAC2012-RULE_11_6-a-2 |
|
690: |
Conditional statement 'if' in a function 'populate_segments_legacy' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
690: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
693: |
Conditional statement 'if' in a function 'populate_segments_legacy' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
693: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
709: |
Missing statement or comment before terminating 'break' |
MISRAC2012-RULE_16_4-b-2 |
|
709: |
Missing statement or comment before terminating 'break' |
MISRAC2012-RULE_16_1-f-2 |
|
709: |
The 'switch' statement contains less than two switch-clauses |
MISRAC2012-RULE_16_6-a-2 |
|
709: |
The 'switch' statement contains less than two switch-clauses |
MISRAC2012-RULE_16_1-h-2 |
|
709: |
The result of comparison is always true or always false |
MISRAC2012-RULE_14_3-i-2 |
| +
|
711: |
Condition "max > min" always evaluates to true |
MISRAC2012-RULE_14_3-ac-2 |
| |
|
Start of the path
ta_elf.c (700): static size_t get_pad_begin(void)
ta_elf.c (703): size_t min = CFG_TA_ASLR_MIN_OFFSET_PAGES;
ta_elf.c (704): size_t max = CFG_TA_ASLR_MAX_OFFSET_PAGES;
ta_elf.c (705): TEE_Result res = TEE_SUCCESS;
ta_elf.c (706): uint32_t rnd32 = 0;
ta_elf.c (707): size_t rnd = 0;
ta_elf.c (709): COMPILE_TIME_ASSERT(CFG_TA_ASLR_MIN_OFFSET_PAGES <
ta_elf.c (710): CFG_TA_ASLR_MAX_OFFSET_PAGES); *** Loop condition evaluation: 0 (false) *** Not entering the loop
Point where senseless condition is used
ta_elf.c (711): if (max > min) { |
|
|
713: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
715: |
Operands of the '*' operator have different essential types: 'unsigned long' and 'short' |
MISRAC2012-RULE_10_4-a-2 |
|
715: |
Provide only one exit point in 'get_pad_begin' function |
MISRAC2012-RULE_15_5-a-4 |
|
720: |
Operands of the '*' operator have different essential types: 'unsigned long' and 'short' |
MISRAC2012-RULE_10_4-a-2 |
|
720: |
Provide only one exit point in 'get_pad_begin' function |
MISRAC2012-RULE_15_5-a-4 |
|
726: |
Value 35 is out of acceptable range: 'lower than 30' |
METRIC.CC-3 |
|
734: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
735: |
Pointer to object type 'struct segment **' is cast to pointer to different object type 'struct segment_head *' |
MISRAC2012-RULE_11_3-a-2 |
|
736: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
743: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
747: |
Conditional statement 'if' in a function 'populate_segments' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
747: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
765: |
Operands of the '<' operator have different essential types: 'unsigned long' and 'short' |
MISRAC2012-RULE_10_4-a-2 |
|
765: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
772: |
Conditional statement 'if' in a function 'populate_segments' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
772: |
Operands of the '<=' operator have different essential types: 'unsigned long' and 'short' |
MISRAC2012-RULE_10_4-a-2 |
|
772: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
781: |
Operands of the '-' operator have different essential types: 'unsigned long' and 'short' |
MISRAC2012-RULE_10_4-a-2 |
|
784: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
787: |
Conditional statement 'if' in a function 'populate_segments' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
787: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
794: |
Operands of the '+=' operator have different essential types: 'unsigned long' and 'short' |
MISRAC2012-RULE_10_4-a-2 |
|
795: |
Operands of the '-=' operator have different essential types: 'unsigned long' and 'short' |
MISRAC2012-RULE_10_4-a-2 |
|
796: |
Operands of the '-=' operator have different essential types: 'unsigned long' and 'short' |
MISRAC2012-RULE_10_4-a-2 |
|
797: |
Operands of the '+=' operator have different essential types: 'unsigned long' and 'short' |
MISRAC2012-RULE_10_4-a-2 |
|
800: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
813: |
Conditional statement 'if' in a function 'populate_segments' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
813: |
Operands of the '&' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
813: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
813: |
The right hand operand of the '&' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
816: |
An 'else' statement in a function 'populate_segments' shall be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
817: |
Conditional statement 'if' in a function 'populate_segments' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
817: |
Operands of the '&' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
817: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
817: |
The right hand operand of the '&' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
819: |
Conditional statement 'if' in a function 'populate_segments' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
819: |
Operands of the '&' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
819: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
819: |
The right hand operand of the '&' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
820: |
Integer constant '0xFFFF000A' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
822: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
825: |
Conditional statement 'if' in a function 'populate_segments' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
825: |
Integer constant '0xFFFF000C' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
825: |
The left hand operand of the logical operator '&&' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
825: |
The operands of a logical '&&' in function 'populate_segments' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
828: |
Conditional statement 'if' in a function 'populate_segments' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
828: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
830: |
Arithmetic type 'unsigned long' should not be converted to pointer to void type |
MISRAC2012-RULE_11_6-a-2 |
|
832: |
Conditional statement 'if' in a function 'populate_segments' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
832: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
835: |
Conditional statement 'if' in a function 'populate_segments' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
836: |
Integer constant '0xFFFF0005' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
841: |
Conditional statement 'if' in a function 'populate_segments' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
841: |
Integer constant '0xFFFF000C' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
841: |
The left hand operand of the logical operator '&&' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
841: |
The operands of a logical '&&' in function 'populate_segments' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
846: |
Conditional statement 'if' in a function 'populate_segments' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
846: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
850: |
Conditional statement 'if' in a function 'populate_segments' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
850: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
864: |
Operands of the '<' operator have different essential types: 'unsigned long' and 'short' |
MISRAC2012-RULE_10_4-a-2 |
|
867: |
Pointer to object type 'struct segment **' is cast to pointer to different object type 'struct segment_head *' |
MISRAC2012-RULE_11_3-a-2 |
|
883: |
Conditional statement 'if' in a function 'map_segments' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
883: |
Integer constant '0xFFFF000C' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
886: |
Conditional statement 'if' in a function 'map_segments' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
886: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
891: |
Arithmetic type 'unsigned long' should not be converted to pointer to void type |
MISRAC2012-RULE_11_6-a-2 |
|
895: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
901: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
907: |
Conditional statement 'if' in a function 'add_deps_from_segment' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
907: |
Operands of the '!=' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
908: |
'return' statement should be at the end of the 'add_deps_from_segment' function |
MISRAC2012-RULE_15_5-a-4 |
|
912: |
Conditional statement 'if' in a function 'add_deps_from_segment' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
915: |
An 'else' statement in a function 'add_deps_from_segment' shall be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
917: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
920: |
The left hand operand of the logical operator '&&' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
920: |
The operands of a logical '&&' in function 'add_deps_from_segment' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
920: |
The operands of a logical '&&' in function 'add_deps_from_segment' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
920: |
The right hand operand of the logical operator '&&' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
920: |
The second clause of a 'for' statement contains objects that are modified inside the loop body: 'str_tab', 'str_tab_sz' |
MISRAC2012-RULE_14_2-c-2 |
|
922: |
Conditional statement 'if' in a function 'add_deps_from_segment' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
922: |
Operands of the '==' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
923: |
Integral type 'unsigned long' should not be converted to pointer to object type 'char *' |
MISRAC2012-RULE_11_4-a-4 |
|
924: |
Conditional statement 'if' in a function 'add_deps_from_segment' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
924: |
Operands of the '==' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
924: |
Provide 'else' after the last 'else-if' construct |
MISRAC2012-RULE_15_7-a-2 |
|
931: |
Conditional statement 'if' in a function 'add_deps_from_segment' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
931: |
Operands of the '!=' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
933: |
Conditional statement 'if' in a function 'add_deps_from_segment' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
934: |
Integer constant '0xFFFF0005' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
936: |
The variable 'str_tab' used as the left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
936: |
Unused function's "tee_uuid_from_str" return value |
MISRAC2012-RULE_17_7-a-2 |
|
937: |
Unused function's "queue_elf" return value |
MISRAC2012-RULE_17_7-a-2 |
|
946: |
Pointer to void type should not be converted to pointer to object type 'Elf32_Phdr *' |
MISRAC2012-RULE_11_5-a-4 |
|
948: |
'for' statement in a function 'add_dependencies' should be followed by a block |
MISRAC2012-RULE_15_6-a-2 |
|
952: |
Pointer to void type should not be converted to pointer to object type 'Elf64_Phdr *' |
MISRAC2012-RULE_11_5-a-4 |
|
954: |
'for' statement in a function 'add_dependencies' should be followed by a block |
MISRAC2012-RULE_15_6-a-2 |
|
966: |
Conditional statement 'if' in a function 'copy_section_headers' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
967: |
Integer constant '0xFFFF0005' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
969: |
'malloc' function should not be used |
MISRAC2012-RULE_21_3-a-2 |
|
969: |
'malloc' function should not be used |
MISRAC2012-DIR_4_12-a-2 |
|
970: |
Conditional statement 'if' in a function 'copy_section_headers' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
970: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
971: |
Integer constant '0xFFFF000C' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
978: |
Operands of the '<' operator have different essential types: 'unsigned long' and 'short' |
MISRAC2012-RULE_10_4-a-2 |
|
980: |
Operands of the '-' operator have different essential types: 'short' and 'unsigned long' |
MISRAC2012-RULE_10_4-a-2 |
|
980: |
Reserved name '_a' used |
MISRAC2012-RULE_21_2-a-2 |
|
980: |
Reserved name '_b' used |
MISRAC2012-RULE_21_2-a-2 |
|
980: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
981: |
Arithmetic type 'unsigned long' should not be converted to pointer to void type |
MISRAC2012-RULE_11_6-a-2 |
|
981: |
Unused function's "memcpy" return value |
MISRAC2012-RULE_17_7-a-2 |
|
986: |
Pointer to void type should not be converted to pointer to object type 'uint8_t *' |
MISRAC2012-RULE_11_5-a-4 |
|
986: |
The left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
989: |
Conditional statement 'if' in a function 'copy_section_headers' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
989: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
998: |
Conditional statement 'if' in a function 'close_handle' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
998: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
1000: |
The expression of the 'essentially signed' type is assigned to an object with the 'essentially unsigned' type |
MISRAC2012-RULE_10_3-b-2 |
|
1011: |
Conditional statement 'if' in a function 'clean_elf_load_main' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1011: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
1020: |
Conditional statement 'if' in a function 'clean_elf_load_main' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1024: |
An 'else' statement in a function 'clean_elf_load_main' shall be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1027: |
Conditional statement 'if' in a function 'clean_elf_load_main' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1027: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
1030: |
An 'else' statement in a function 'clean_elf_load_main' shall be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1030: |
Conditional statement 'if' in a function 'clean_elf_load_main' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1031: |
'free' function should not be used |
MISRAC2012-RULE_21_3-a-2 |
|
1031: |
'free' function should not be used |
MISRAC2012-DIR_4_12-a-2 |
|
1034: |
'free' function should not be used |
MISRAC2012-RULE_21_3-a-2 |
|
1034: |
'free' function should not be used |
MISRAC2012-DIR_4_12-a-2 |
|
1035: |
Unused function's "memset" return value |
MISRAC2012-RULE_17_7-a-2 |
|
1036: |
Pointer to object type 'TEE_UUID *' should not be converted to integral type 'unsigned long' |
MISRAC2012-RULE_11_4-a-4 |
|
1036: |
Pointer to object type '_Bool *' should not be converted to integral type 'unsigned long' |
MISRAC2012-RULE_11_4-a-4 |
|
1049: |
Operands of the '*' operator have different essential types: 'signed char' and 'unsigned long' |
MISRAC2012-RULE_10_4-a-2 |
|
1051: |
Conditional statement 'if' in a function 'set_tls_offset' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1051: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
1052: |
'return' statement should be at the end of the 'set_tls_offset' function |
MISRAC2012-RULE_15_5-a-4 |
|
1073: |
Integral type 'unsigned long' should not be converted to pointer to object type 'struct ta_head *' |
MISRAC2012-RULE_11_4-a-4 |
|
1100: |
Integral type 'unsigned long' should not be converted to pointer to object type 'struct ta_head *' |
MISRAC2012-RULE_11_4-a-4 |
|
1105: |
Conditional statement 'if' in a function 'load_main' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1106: |
Integer constant '0xFFFF0000' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
1120: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
1125: |
The expression of the 'essentially Boolean' type is assigned to an object with the 'essentially unsigned' type |
MISRAC2012-RULE_10_3-b-2 |
|
1127: |
Conditional statement 'if' in a function 'ta_elf_load_main' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1127: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
1130: |
Conditional statement 'if' in a function 'ta_elf_load_main' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1130: |
Shifting operation should be enclosed with if checking that RHS operand lies between zero and one less than the width in bits
of the underlying type of the LHS operand
|
MISRAC2012-RULE_12_2-a-2 |
|
1130: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
1131: |
Integer constant '0xFFFF0005' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
1131: |
Shifting operation should be enclosed with if checking that RHS operand lies between zero and one less than the width in bits
of the underlying type of the LHS operand
|
MISRAC2012-RULE_12_2-a-2 |
|
1148: |
Conditional statement 'if' in a function 'ta_elf_finalize_load_main' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1148: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
1151: |
Conditional statement 'if' in a function 'ta_elf_finalize_load_main' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1151: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
1154: |
Conditional statement 'if' in a function 'ta_elf_finalize_load_main' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1157: |
An 'else' statement in a function 'ta_elf_finalize_load_main' shall be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1163: |
Conditional statement 'if' in a function 'ta_elf_load_dependency' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1164: |
'return' statement should be at the end of the 'ta_elf_load_dependency' function |
MISRAC2012-RULE_15_5-a-4 |
|
1167: |
Conditional statement 'if' in a function 'ta_elf_load_dependency' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1168: |
Integer constant '0xFFFF0005' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
1186: |
Conditional statement 'if' in a function 'ta_elf_finalize_mappings' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1187: |
'return' statement should be at the end of the 'ta_elf_finalize_mappings' function |
MISRAC2012-RULE_15_5-a-4 |
|
1189: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
1193: |
Conditional statement 'if' in a function 'ta_elf_finalize_mappings' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1193: |
Operands of the '&' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
1193: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
1193: |
The right hand operand of the '&' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
1195: |
Conditional statement 'if' in a function 'ta_elf_finalize_mappings' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1195: |
Operands of the '&' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
1195: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
1195: |
The right hand operand of the '&' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
1199: |
Conditional statement 'if' in a function 'ta_elf_finalize_mappings' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1199: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
1207: |
The identifier 'va_list' shall not be used |
MISRAC2012-RULE_17_1-a-2 |
|
1207: |
The identifier 'va_list' shall not be used |
MISRAC2012-RULE_17_1-b-2 |
|
1209: |
The identifier 'va_start' shall not be used |
MISRAC2012-RULE_17_1-a-2 |
|
1209: |
The identifier 'va_start' shall not be used |
MISRAC2012-RULE_17_1-b-2 |
|
1211: |
The identifier 'va_end' shall not be used |
MISRAC2012-RULE_17_1-a-2 |
|
1211: |
The identifier 'va_end' shall not be used |
MISRAC2012-RULE_17_1-b-2 |
|
1215: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
1219: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
1220: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
1225: |
Usage of 'snprintf' function is not allowed |
MISRAC2012-RULE_21_6-a-2 |
|
1228: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
1229: |
Usage of 'snprintf' function is not allowed |
MISRAC2012-RULE_21_6-a-2 |
|
1232: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
1233: |
Usage of 'snprintf' function is not allowed |
MISRAC2012-RULE_21_6-a-2 |
|
1237: |
Usage of 'snprintf' function is not allowed |
MISRAC2012-RULE_21_6-a-2 |
|
1242: |
Conditional statement 'if' in a function 'print_seg' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1242: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
1244: |
Conditional statement 'if' in a function 'print_seg' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1244: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
1246: |
Conditional statement 'if' in a function 'print_seg' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1246: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
1248: |
Conditional statement 'if' in a function 'print_seg' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1248: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
1256: |
Pass parameter "elf_queue" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
1267: |
The left hand operand of the logical operator '&&' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
1267: |
The right hand operand of the logical operator '&&' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
1270: |
Potential macro 'NULL' used as '1' parameter of potential macro 'assert' |
MISRAC2012-RULE_20_12-a-2 |
|
1270: |
Potential macro 'NULL' used as '1' parameter of potential macro 'assert' |
MISRAC2012-RULE_20_12-a-2 |
|
1270: |
Potential macro 'NULL' used as '1' parameter of potential macro 'assert' |
MISRAC2012-RULE_20_12-a-2 |
|
1270: |
Potential macro 'NULL' used as '1' parameter of potential macro 'assert' |
MISRAC2012-RULE_20_12-a-2 |
|
1270: |
The operands of a logical '&&' in function 'get_next_in_order' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
1270: |
The operands of a logical '&&' in function 'get_next_in_order' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
1270: |
The operands of a logical '&&' in function 'get_next_in_order' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
1272: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
1274: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
1276: |
Provide only one exit point in 'get_next_in_order' function |
MISRAC2012-RULE_15_5-a-4 |
|
1280: |
Conditional statement 'if' in a function 'get_next_in_order' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1280: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
1285: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
1287: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
1287: |
The operands of a logical '||' in function 'get_next_in_order' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
1287: |
The operands of a logical '||' in function 'get_next_in_order' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
1294: |
Conditional statement 'if' in a function 'get_next_in_order' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1294: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
1295: |
Provide only one exit point in 'get_next_in_order' function |
MISRAC2012-RULE_15_5-a-4 |
|
1300: |
Provide only one exit point in 'get_next_in_order' function |
MISRAC2012-RULE_15_5-a-4 |
|
1305: |
Pass parameter "maps" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
1318: |
Unused function's "get_next_in_order" return value |
MISRAC2012-RULE_17_7-a-2 |
|
1320: |
The expression of the 'essentially signed' type is assigned to an object with the 'essentially unsigned' type |
MISRAC2012-RULE_10_3-b-2 |
|
1325: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
1331: |
The operands of a logical '&&' in function 'ta_elf_print_mappings' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
1331: |
The operands of a logical '&&' in function 'ta_elf_print_mappings' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
1342: |
Operands of the '+' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
1342: |
The operands of a logical '&&' in function 'ta_elf_print_mappings' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
1342: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
1343: |
Operands of the '==' operator have different essential types: 'unsigned long' and 'short' |
MISRAC2012-RULE_10_4-a-2 |
|
1343: |
The operands of a logical '&&' in function 'ta_elf_print_mappings' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
1347: |
Operands of the '+' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
1349: |
Operands of the '+' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
1349: |
The operands of a logical '&&' in function 'ta_elf_print_mappings' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
1350: |
The operands of a logical '&&' in function 'ta_elf_print_mappings' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
1351: |
The operands of a logical '&&' in function 'ta_elf_print_mappings' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
1352: |
Operands of the '+' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
1354: |
Operands of the '+=' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
1359: |
Provide 'else' after the last 'else-if' construct |
MISRAC2012-RULE_15_7-a-2 |
|
1360: |
Conditional statement 'if' in a function 'ta_elf_print_mappings' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1371: |
Conditional statement 'if' in a function 'ta_elf_print_mappings' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1371: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
1375: |
Conditional statement 'if' in a function 'ta_elf_print_mappings' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1375: |
Operands of the '&' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
1375: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
1375: |
The right hand operand of the '&' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
1377: |
Conditional statement 'if' in a function 'ta_elf_print_mappings' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1377: |
Operands of the '&' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
1377: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
1377: |
The right hand operand of the '&' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
1379: |
Conditional statement 'if' in a function 'ta_elf_print_mappings' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1379: |
Operands of the '&' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
1379: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
1379: |
The right hand operand of the '&' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
1382: |
The argument number '4' ('essentially unsigned' type) is passed to the function 'print_seg' as a parameter with the 'essentially
signed' type
|
MISRAC2012-RULE_10_3-b-2 |
|
1385: |
Conditional statement 'if' in a function 'ta_elf_print_mappings' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1390: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
1406: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
1407: |
Conditional statement 'if' in a function 'find_exidx' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1410: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
1411: |
Conditional statement 'if' in a function 'find_exidx' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1413: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
1417: |
Provide only one exit point in 'find_exidx' function |
MISRAC2012-RULE_15_5-a-4 |
|
1422: |
Provide only one exit point in 'find_exidx' function |
MISRAC2012-RULE_15_5-a-4 |
|
1429: |
Unused function's "memcpy" return value |
MISRAC2012-RULE_17_7-a-2 |
|
1443: |
Integer constant '0xFFFF0000' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
1448: |
Conditional statement 'if' in a function 'ta_elf_add_library' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1448: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
1449: |
Provide only one exit point in 'ta_elf_add_library' function |
MISRAC2012-RULE_15_5-a-4 |
|
1452: |
Conditional statement 'if' in a function 'ta_elf_add_library' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1452: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
1453: |
Integer constant '0xFFFF000C' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
1453: |
Provide only one exit point in 'ta_elf_add_library' function |
MISRAC2012-RULE_15_5-a-4 |
|
1455: |
'for' statement in a function 'ta_elf_add_library' should be followed by a block |
MISRAC2012-RULE_15_6-a-2 |
|
1455: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
1458: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
1463: |
'for' statement in a function 'ta_elf_add_library' should be followed by a block |
MISRAC2012-RULE_15_6-a-2 |
|
1463: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
1468: |
Conditional statement 'if' in a function 'ta_elf_add_library' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1468: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
1469: |
Provide only one exit point in 'ta_elf_add_library' function |
MISRAC2012-RULE_15_5-a-4 |
|
1471: |
Provide only one exit point in 'ta_elf_add_library' function |
MISRAC2012-RULE_15_5-a-4 |
|
1475: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
1484: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
1487: |
Operands of the '==' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
1487: |
Potential macro 'PT_DYNAMIC' used as '1' parameter of potential macro 'assert' |
MISRAC2012-RULE_20_12-a-2 |
|
1499: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
1504: |
Conditional statement 'if' in a function 'get_init_fini_array' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1504: |
Operands of the '==' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
1506: |
Conditional statement 'if' in a function 'get_init_fini_array' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1506: |
Operands of the '==' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
1508: |
Conditional statement 'if' in a function 'get_init_fini_array' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1508: |
Operands of the '==' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
1510: |
Conditional statement 'if' in a function 'get_init_fini_array' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1510: |
Operands of the '==' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
1510: |
Provide 'else' after the last 'else-if' construct |
MISRAC2012-RULE_15_7-a-2 |
|
1523: |
Pointer to void type should not be converted to pointer to object type 'Elf32_Phdr *' |
MISRAC2012-RULE_11_5-a-4 |
|
1526: |
Operands of the '==' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
1532: |
Provide only one exit point in 'elf_get_init_fini_array' function |
MISRAC2012-RULE_15_5-a-4 |
|
1536: |
Pointer to void type should not be converted to pointer to object type 'Elf64_Phdr *' |
MISRAC2012-RULE_11_5-a-4 |
|
1539: |
Operands of the '==' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
1545: |
Provide only one exit point in 'elf_get_init_fini_array' function |
MISRAC2012-RULE_15_5-a-4 |
|
1559: |
Reserved name '__init_fini' used |
MISRAC2012-RULE_21_2-a-2 |
|
1568: |
Do not use reserved identifiers : __IFS_VALID |
MISRAC2012-RULE_21_1-a-2 |
|
1569: |
An unused macro declaration '__IFS_INIT_HAS_RUN' has been found |
MISRAC2012-RULE_2_5-a-4 |
|
1569: |
Do not use reserved identifiers : __IFS_INIT_HAS_RUN |
MISRAC2012-RULE_21_1-a-2 |
|
1570: |
An unused macro declaration '__IFS_FINI_HAS_RUN' has been found |
MISRAC2012-RULE_2_5-a-4 |
|
1570: |
Do not use reserved identifiers : __IFS_FINI_HAS_RUN |
MISRAC2012-RULE_21_1-a-2 |
|
1572: |
Reserved name '__init_fini_info' used |
MISRAC2012-RULE_21_2-a-2 |
|
1581: |
Reserved name '__init_fini32' used |
MISRAC2012-RULE_21_2-a-2 |
|
1589: |
Reserved name '__init_fini_info32' used |
MISRAC2012-RULE_21_2-a-2 |
|
1598: |
Integral type 'unsigned long' should not be converted to pointer to object type 'struct __init_fini_info32 *' |
MISRAC2012-RULE_11_4-a-4 |
|
1599: |
Integral type 'unsigned long' should not be converted to pointer to object type 'struct __init_fini_info *' |
MISRAC2012-RULE_11_4-a-4 |
|
1606: |
Arithmetic type 'unsigned long' should not be converted to pointer to void type |
MISRAC2012-RULE_11_6-a-2 |
|
1607: |
'realloc' function should not be used |
MISRAC2012-RULE_21_3-a-2 |
|
1607: |
'realloc' function should not be used |
MISRAC2012-DIR_4_12-a-2 |
|
1608: |
Conditional statement 'if' in a function 'realloc_ifs' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1608: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
1609: |
Integer constant '0xFFFF000C' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
1609: |
Provide only one exit point in 'realloc_ifs' function |
MISRAC2012-RULE_15_5-a-4 |
|
1610: |
Pointer to void type should not be converted to pointer to object type 'struct __init_fini32 *' |
MISRAC2012-RULE_11_5-a-4 |
|
1612: |
Conditional statement 'if' in a function 'realloc_ifs' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1613: |
The variable 'ifs32' used as the left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
1613: |
Unused function's "memset" return value |
MISRAC2012-RULE_17_7-a-2 |
|
1615: |
Pointer to object type 'struct __init_fini32 *' should not be converted to integral type 'unsigned long' |
MISRAC2012-RULE_11_4-a-4 |
|
1616: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with a narrower essential type (2 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
1618: |
'realloc' function should not be used |
MISRAC2012-RULE_21_3-a-2 |
|
1618: |
'realloc' function should not be used |
MISRAC2012-DIR_4_12-a-2 |
|
1619: |
Conditional statement 'if' in a function 'realloc_ifs' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1619: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
1620: |
Integer constant '0xFFFF000C' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
1620: |
Provide only one exit point in 'realloc_ifs' function |
MISRAC2012-RULE_15_5-a-4 |
|
1621: |
Pointer to void type should not be converted to pointer to object type 'struct __init_fini *' |
MISRAC2012-RULE_11_5-a-4 |
|
1623: |
Conditional statement 'if' in a function 'realloc_ifs' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1624: |
The variable 'ifs' used as the left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
1624: |
Unused function's "memset" return value |
MISRAC2012-RULE_17_7-a-2 |
|
1627: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with a narrower essential type (2 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
1630: |
Provide only one exit point in 'realloc_ifs' function |
MISRAC2012-RULE_15_5-a-4 |
|
1635: |
Integral type 'unsigned long' should not be converted to pointer to object type 'struct __init_fini_info32 *' |
MISRAC2012-RULE_11_4-a-4 |
|
1636: |
Integral type 'unsigned long' should not be converted to pointer to object type 'struct __init_fini_info *' |
MISRAC2012-RULE_11_4-a-4 |
|
1646: |
Integral type 'unsigned long' should not be converted to pointer to object type 'struct __init_fini32 *' |
MISRAC2012-RULE_11_4-a-4 |
|
1648: |
Conditional statement 'if' in a function 'fill_ifs' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1648: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
1649: |
Provide only one exit point in 'fill_ifs' function |
MISRAC2012-RULE_15_5-a-4 |
|
1655: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with a narrower essential type (2 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
1658: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with a narrower essential type (2 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
1665: |
Conditional statement 'if' in a function 'fill_ifs' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1665: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
1666: |
Provide only one exit point in 'fill_ifs' function |
MISRAC2012-RULE_15_5-a-4 |
|
1671: |
Integral type 'unsigned long' should not be converted to pointer to object type 'void (**)(void)' |
MISRAC2012-RULE_11_4-a-4 |
|
1672: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with a narrower essential type (2 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
1674: |
Integral type 'unsigned long' should not be converted to pointer to object type 'void (**)(void)' |
MISRAC2012-RULE_11_4-a-4 |
|
1675: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with a narrower essential type (2 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
1685: |
The function 'ta_elf_set_init_fini_info_compat' is referenced only in the translation unit where it is defined |
MISRAC2012-RULE_8_7-a-4 |
|
1694: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
1695: |
Integer constant '0xFFFF0008' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
1700: |
Provide only one exit point in 'ta_elf_set_init_fini_info_compat' function |
MISRAC2012-RULE_15_5-a-4 |
|
1702: |
Provide only one exit point in 'ta_elf_set_init_fini_info_compat' function |
MISRAC2012-RULE_15_5-a-4 |
|
1704: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
1706: |
Integral type 'unsigned long' should not be converted to pointer to object type 'struct __init_fini_info *' |
MISRAC2012-RULE_11_4-a-4 |
|
1707: |
Conditional statement 'if' in a function 'ta_elf_set_init_fini_info_compat' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1707: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
1708: |
Integer constant '0xFFFF000A' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
1708: |
Provide only one exit point in 'ta_elf_set_init_fini_info_compat' function |
MISRAC2012-RULE_15_5-a-4 |
|
1710: |
'for' statement in a function 'ta_elf_set_init_fini_info_compat' should be followed by a block |
MISRAC2012-RULE_15_6-a-2 |
|
1710: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
1714: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
1717: |
Conditional statement 'if' in a function 'ta_elf_set_init_fini_info_compat' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1717: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
1718: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
1721: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
1726: |
Provide only one exit point in 'ta_elf_set_init_fini_info_compat' function |
MISRAC2012-RULE_15_5-a-4 |
|
1727: |
The identifier 'err' has the same name (or the first 31 characters of the name) as the macro defined in the current translation
unit
|
MISRAC2012-RULE_5_5-a-2 |
|
1727: |
The identifier 'err' has the same name (or the first 63 characters of the name) as the macro defined in the current translation
unit
|
MISRAC2012-RULE_5_5-b-2 |
|
1728: |
'free' function should not be used |
MISRAC2012-RULE_21_3-a-2 |
|
1728: |
'free' function should not be used |
MISRAC2012-DIR_4_12-a-2 |
|
1729: |
Provide only one exit point in 'ta_elf_set_init_fini_info_compat' function |
MISRAC2012-RULE_15_5-a-4 |
|
1734: |
Integral type 'unsigned long' should not be converted to pointer to object type 'struct __elf_phdr_info32 *' |
MISRAC2012-RULE_11_4-a-4 |
|
1735: |
Integral type 'unsigned long' should not be converted to pointer to object type 'struct __elf_phdr_info *' |
MISRAC2012-RULE_11_4-a-4 |
|
1742: |
Arithmetic type 'unsigned long' should not be converted to pointer to void type |
MISRAC2012-RULE_11_6-a-2 |
|
1743: |
'realloc' function should not be used |
MISRAC2012-RULE_21_3-a-2 |
|
1743: |
'realloc' function should not be used |
MISRAC2012-DIR_4_12-a-2 |
|
1744: |
Conditional statement 'if' in a function 'realloc_elf_phdr_info' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1744: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
1745: |
Integer constant '0xFFFF000C' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
1745: |
Provide only one exit point in 'realloc_elf_phdr_info' function |
MISRAC2012-RULE_15_5-a-4 |
|
1746: |
Pointer to void type should not be converted to pointer to object type 'struct dl_phdr_info32 *' |
MISRAC2012-RULE_11_5-a-4 |
|
1748: |
Conditional statement 'if' in a function 'realloc_elf_phdr_info' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1749: |
The variable 'dlpi32' used as the left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
1749: |
Unused function's "memset" return value |
MISRAC2012-RULE_17_7-a-2 |
|
1751: |
Pointer to object type 'struct dl_phdr_info32 *' should not be converted to integral type 'unsigned long' |
MISRAC2012-RULE_11_4-a-4 |
|
1752: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with a narrower essential type (2 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
1754: |
'realloc' function should not be used |
MISRAC2012-RULE_21_3-a-2 |
|
1754: |
'realloc' function should not be used |
MISRAC2012-DIR_4_12-a-2 |
|
1755: |
Conditional statement 'if' in a function 'realloc_elf_phdr_info' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1755: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
1756: |
Integer constant '0xFFFF000C' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
1756: |
Provide only one exit point in 'realloc_elf_phdr_info' function |
MISRAC2012-RULE_15_5-a-4 |
|
1757: |
Pointer to void type should not be converted to pointer to object type 'struct dl_phdr_info *' |
MISRAC2012-RULE_11_5-a-4 |
|
1759: |
Conditional statement 'if' in a function 'realloc_elf_phdr_info' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1760: |
The variable 'dlpi' used as the left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
1760: |
Unused function's "memset" return value |
MISRAC2012-RULE_17_7-a-2 |
|
1763: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with a narrower essential type (2 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
1766: |
Provide only one exit point in 'realloc_elf_phdr_info' function |
MISRAC2012-RULE_15_5-a-4 |
|
1772: |
Integral type 'unsigned long' should not be converted to pointer to object type 'struct __elf_phdr_info32 *' |
MISRAC2012-RULE_11_4-a-4 |
|
1773: |
Integral type 'unsigned long' should not be converted to pointer to object type 'struct __elf_phdr_info *' |
MISRAC2012-RULE_11_4-a-4 |
|
1779: |
Integral type 'unsigned long' should not be converted to pointer to object type 'struct dl_phdr_info32 *' |
MISRAC2012-RULE_11_4-a-4 |
|
1779: |
The left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
1781: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with a narrower essential type (4 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
1782: |
Conditional statement 'if' in a function 'fill_elf_phdr_info' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1782: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
1783: |
Pointer to object type 'char *' should not be converted to integral type 'unsigned long' |
MISRAC2012-RULE_11_4-a-4 |
|
1783: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with a narrower essential type (4 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
1785: |
An 'else' statement in a function 'fill_elf_phdr_info' shall be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1785: |
Pointer to object type 'char *' should not be converted to integral type 'unsigned long' |
MISRAC2012-RULE_11_4-a-4 |
|
1785: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with a narrower essential type (4 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
1786: |
Pointer to void type should not be converted to arithmetic type 'unsigned long' |
MISRAC2012-RULE_11_6-a-2 |
|
1786: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with a narrower essential type (4 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
1787: |
The expression of the 'unsigned int' essential type (4 byte) is assigned to an object with a narrower essential type (2 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
1790: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with a narrower essential type (4 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
1791: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with a narrower essential type (4 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
1794: |
The left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
1797: |
Conditional statement 'if' in a function 'fill_elf_phdr_info' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1797: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
1800: |
An 'else' statement in a function 'fill_elf_phdr_info' shall be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1801: |
Pointer to void type should not be converted to pointer to object type 'const Elf_Phdr *' |
MISRAC2012-RULE_11_5-a-4 |
|
1802: |
The expression of the 'unsigned int' essential type (4 byte) is assigned to an object with a narrower essential type (2 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
1806: |
Arithmetic type 'unsigned long' should not be converted to pointer to void type |
MISRAC2012-RULE_11_6-a-2 |
|
1811: |
The function 'ta_elf_set_elf_phdr_info' is referenced only in the translation unit where it is defined |
MISRAC2012-RULE_8_7-a-4 |
|
1820: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
1821: |
Integer constant '0xFFFF0008' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
1823: |
Provide only one exit point in 'ta_elf_set_elf_phdr_info' function |
MISRAC2012-RULE_15_5-a-4 |
|
1825: |
Provide only one exit point in 'ta_elf_set_elf_phdr_info' function |
MISRAC2012-RULE_15_5-a-4 |
|
1827: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
1829: |
Integral type 'unsigned long' should not be converted to pointer to object type 'struct __elf_phdr_info *' |
MISRAC2012-RULE_11_4-a-4 |
|
1830: |
Conditional statement 'if' in a function 'ta_elf_set_elf_phdr_info' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1830: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
1831: |
Integer constant '0xFFFF000A' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
1831: |
Provide only one exit point in 'ta_elf_set_elf_phdr_info' function |
MISRAC2012-RULE_15_5-a-4 |
|
1833: |
'for' statement in a function 'ta_elf_set_elf_phdr_info' should be followed by a block |
MISRAC2012-RULE_15_6-a-2 |
|
1833: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
1837: |
Conditional statement 'if' in a function 'ta_elf_set_elf_phdr_info' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1837: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
1838: |
Provide only one exit point in 'ta_elf_set_elf_phdr_info' function |
MISRAC2012-RULE_15_5-a-4 |
|
1841: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
1846: |
Provide only one exit point in 'ta_elf_set_elf_phdr_info' function |
MISRAC2012-RULE_15_5-a-4 |
| /optee_os_MISRA/ldelf/ta_elf.h |
|
15: |
Consider hiding the implementation of the structure 'segment' in a translation unit 'dl.c' |
MISRAC2012-DIR_4_8-a-4 |
|
15: |
Consider hiding the implementation of the structure 'segment' in a translation unit 'main.c' |
MISRAC2012-DIR_4_8-a-4 |
|
15: |
Consider hiding the implementation of the structure 'segment' in a translation unit 'ta_elf_rel.c' |
MISRAC2012-DIR_4_8-a-4 |
|
28: |
Consider hiding the implementation of the structure 'ta_elf' in a translation unit 'dl.c' |
MISRAC2012-DIR_4_8-a-4 |
|
43: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
44: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
45: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
46: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
92: |
The identifier 'va_list' shall not be used |
MISRAC2012-RULE_17_1-a-2 |
|
92: |
The identifier 'va_list' shall not be used |
MISRAC2012-RULE_17_1-b-2 |
| /optee_os_MISRA/ldelf/ta_elf_rel.c |
|
21: |
The basic numerical type 'char' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
21: |
The basic numerical type 'char' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
25: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
26: |
The '++' operator should cause the only side effect in an expression |
MISRAC2012-RULE_13_3-a-4 |
|
27: |
Integer constant '0xf0000000' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
28: |
Conditional statement 'if' in a function 'elf_hash' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
28: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
35: |
Pass parameter "elf" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
35: |
Reserved name '__resolve_sym' used |
MISRAC2012-RULE_21_2-a-2 |
|
35: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
36: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
42: |
Conditional statement 'if' in a function '__resolve_sym' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
42: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
43: |
Provide only one exit point in '__resolve_sym' function |
MISRAC2012-RULE_15_5-a-4 |
|
44: |
Conditional statement 'if' in a function '__resolve_sym' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
45: |
Integer constant '0xFFFF0005' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
46: |
Conditional statement 'if' in a function '__resolve_sym' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
46: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
46: |
The left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
47: |
Provide only one exit point in '__resolve_sym' function |
MISRAC2012-RULE_15_5-a-4 |
|
48: |
Conditional statement 'if' in a function '__resolve_sym' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
48: |
Operands of the '==' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
48: |
Operands of the '==' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
48: |
The operands of a logical '&&' in function '__resolve_sym' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
48: |
The operands of a logical '||' in function '__resolve_sym' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
50: |
Conditional statement 'if' in a function '__resolve_sym' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
51: |
Provide only one exit point in '__resolve_sym' function |
MISRAC2012-RULE_15_5-a-4 |
|
52: |
Operands of the '==' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
52: |
Operands of the '==' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
52: |
The operands of a logical '&&' in function '__resolve_sym' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
52: |
The operands of a logical '&&' in function '__resolve_sym' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
53: |
Conditional statement 'if' in a function '__resolve_sym' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
53: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
55: |
Provide only one exit point in '__resolve_sym' function |
MISRAC2012-RULE_15_5-a-4 |
|
57: |
Conditional statement 'if' in a function '__resolve_sym' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
57: |
Operands of the '==' operator have different essential types: 'unsigned long' and 'int' |
MISRAC2012-RULE_10_4-a-2 |
|
57: |
Operands of the '==' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
57: |
The operands of a logical '||' in function '__resolve_sym' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
57: |
The operands of a logical '||' in function '__resolve_sym' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
58: |
Provide only one exit point in '__resolve_sym' function |
MISRAC2012-RULE_15_5-a-4 |
|
64: |
Conditional statement 'if' in a function '__resolve_sym' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
65: |
Integer constant '0xFFFF0005' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
67: |
Conditional statement 'if' in a function '__resolve_sym' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
67: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
71: |
Conditional statement 'if' in a function '__resolve_sym' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
71: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
74: |
Every non empty default clause in a switch statement shall be terminated with a break statement |
MISRAC2012-RULE_16_1-d-2 |
|
74: |
Every non empty default clause in a switch statement shall be terminated with a break statement |
MISRAC2012-RULE_16_3-b-2 |
|
75: |
Integer constant '0xFFFF000A' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
78: |
Provide only one exit point in '__resolve_sym' function |
MISRAC2012-RULE_15_5-a-4 |
|
89: |
Pointer to void type should not be converted to pointer to object type 'uint32_t *' |
MISRAC2012-RULE_11_5-a-4 |
|
97: |
Pointer to void type should not be converted to pointer to object type 'Elf32_Sym *' |
MISRAC2012-RULE_11_5-a-4 |
|
99: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
99: |
The loop counter is modified inside the 'for' loop body |
MISRAC2012-RULE_14_2-a-2 |
|
99: |
The second clause of a 'for' statement contains an object that is modified inside the loop body: 'n' |
MISRAC2012-RULE_14_2-c-2 |
|
99: |
The third clause of a 'for' statement contains an object that is modified in the 'for' loop body |
MISRAC2012-RULE_14_2-d-2 |
|
100: |
Conditional statement 'if' in a function 'resolve_sym_helper' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
100: |
The operands of a logical '||' in function 'resolve_sym_helper' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
100: |
The operands of a logical '||' in function 'resolve_sym_helper' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
101: |
Integer constant '0xFFFF0005' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
110: |
Conditional statement 'if' in a function 'resolve_sym_helper' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
111: |
The value of a composite expression (8 bit essential type) is passed to function '__resolve_sym' as parameter with wider essential
type (32 bit)
|
MISRAC2012-RULE_10_6-a-2 |
|
112: |
Operands of the '&' operator have different essential types: 'unsigned char' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
112: |
The argument number '3' ('essentially signed' type) is passed to the function '__resolve_sym' as a parameter with the 'essentially
unsigned' type
|
MISRAC2012-RULE_10_3-b-2 |
|
112: |
The right hand operand of the '&' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
116: |
Provide only one exit point in 'resolve_sym_helper' function |
MISRAC2012-RULE_15_5-a-4 |
|
119: |
Pointer to void type should not be converted to pointer to object type 'Elf64_Sym *' |
MISRAC2012-RULE_11_5-a-4 |
|
121: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
121: |
The loop counter is modified inside the 'for' loop body |
MISRAC2012-RULE_14_2-a-2 |
|
121: |
The second clause of a 'for' statement contains an object that is modified inside the loop body: 'n' |
MISRAC2012-RULE_14_2-c-2 |
|
121: |
The third clause of a 'for' statement contains an object that is modified in the 'for' loop body |
MISRAC2012-RULE_14_2-d-2 |
|
122: |
Conditional statement 'if' in a function 'resolve_sym_helper' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
122: |
The operands of a logical '||' in function 'resolve_sym_helper' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
122: |
The operands of a logical '||' in function 'resolve_sym_helper' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
123: |
Integer constant '0xFFFF0005' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
132: |
Conditional statement 'if' in a function 'resolve_sym_helper' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
133: |
The value of a composite expression (8 bit essential type) is passed to function '__resolve_sym' as parameter with wider essential
type (32 bit)
|
MISRAC2012-RULE_10_6-a-2 |
|
134: |
Operands of the '&' operator have different essential types: 'unsigned char' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
134: |
The argument number '3' ('essentially signed' type) is passed to the function '__resolve_sym' as a parameter with the 'essentially
unsigned' type
|
MISRAC2012-RULE_10_3-b-2 |
|
134: |
The right hand operand of the '&' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
138: |
Provide only one exit point in 'resolve_sym_helper' function |
MISRAC2012-RULE_15_5-a-4 |
|
142: |
Integer constant '0xFFFF0008' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
142: |
Provide only one exit point in 'resolve_sym_helper' function |
MISRAC2012-RULE_15_5-a-4 |
|
159: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
161: |
Conditional statement 'if' in a function 'ta_elf_resolve_sym' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
161: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
163: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
165: |
Conditional statement 'if' in a function 'ta_elf_resolve_sym' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
165: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
167: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
170: |
Only one 'goto' statement in loop is allowed. This loop contains 'goto' in lines: 173, 176 |
MISRAC2012-RULE_15_4-a-4 |
|
170: |
Parameter 'elf' is modified in function 'ta_elf_resolve_sym' |
MISRAC2012-RULE_17_8-a-4 |
|
170: |
Parameter 'elf' is modified in function 'ta_elf_resolve_sym' |
MISRAC2012-RULE_17_8-a-4 |
|
170: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
171: |
Conditional statement 'if' in a function 'ta_elf_resolve_sym' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
171: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
173: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
174: |
Conditional statement 'if' in a function 'ta_elf_resolve_sym' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
174: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
176: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
179: |
Integer constant '0xFFFF0008' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
179: |
Provide only one exit point in 'ta_elf_resolve_sym' function |
MISRAC2012-RULE_15_5-a-4 |
|
182: |
Conditional statement 'if' in a function 'ta_elf_resolve_sym' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
182: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
184: |
Provide only one exit point in 'ta_elf_resolve_sym' function |
MISRAC2012-RULE_15_5-a-4 |
|
189: |
Pass parameter "rel" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
194: |
The value of a composite expression (32 bit essential type) is assigned to an object with wider essential type (64 bit) |
MISRAC2012-RULE_10_6-a-2 |
|
195: |
Conditional statement 'if' in a function 'e32_get_sym_name' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
196: |
Integer constant '0xFFFF0005' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
200: |
Conditional statement 'if' in a function 'e32_get_sym_name' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
201: |
Integer constant '0xFFFF0005' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
202: |
The variable 'str_tab' used as the left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
205: |
The names of the identifiers 'resolve_sym' and '__resolve_sym' (line: 35 in the 'ta_elf_rel.c' file) differ only in the presence/absence
of the underscore character
|
MISRAC2012-DIR_4_5-a-4 |
|
209: |
Conditional statement 'if' in a function 'resolve_sym' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
209: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
222: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with a narrower essential type (4 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
232: |
The value of a composite expression (32 bit essential type) is assigned to an object with wider essential type (64 bit) |
MISRAC2012-RULE_10_6-a-2 |
|
233: |
Conditional statement 'if' in a function 'e32_tls_get_module' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
234: |
Integer constant '0xFFFF0005' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
236: |
Operands of the '!=' operator have different essential types: 'unsigned short' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
236: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
236: |
The operands of a logical '||' in function 'e32_tls_get_module' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
236: |
The operands of a logical '||' in function 'e32_tls_get_module' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
238: |
'return' statement should be at the end of the 'e32_tls_get_module' function |
MISRAC2012-RULE_15_5-a-4 |
|
255: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
255: |
Value 41 is out of acceptable range: 'lower than 30' |
METRIC.CC-3 |
|
257: |
Pointer to void type should not be converted to pointer to object type 'Elf32_Shdr *' |
MISRAC2012-RULE_11_5-a-4 |
|
267: |
Operands of the '==' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
267: |
Potential macro 'SHT_REL' used as '1' parameter of potential macro 'assert' |
MISRAC2012-RULE_20_12-a-2 |
|
272: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
275: |
Conditional statement 'if' in a function 'e32_relocate' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
276: |
Integer constant '0xFFFF0005' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
282: |
Conditional statement 'if' in a function 'e32_relocate' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
284: |
Integer constant '0xFFFF0005' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
285: |
Conditional statement 'if' in a function 'e32_relocate' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
286: |
Integer constant '0xFFFF0005' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
288: |
Integral type 'unsigned long' should not be converted to pointer to object type 'Elf32_Sym *' |
MISRAC2012-RULE_11_4-a-4 |
|
294: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
295: |
Conditional statement 'if' in a function 'e32_relocate' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
296: |
Integer constant '0xFFFF0005' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
302: |
Conditional statement 'if' in a function 'e32_relocate' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
304: |
Integer constant '0xFFFF0005' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
305: |
Conditional statement 'if' in a function 'e32_relocate' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
306: |
Integer constant '0xFFFF0005' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
309: |
Integral type 'unsigned long' should not be converted to pointer to object type 'const char *' |
MISRAC2012-RULE_11_4-a-4 |
|
316: |
Conditional statement 'if' in a function 'e32_relocate' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
318: |
Integer constant '0xFFFF0005' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
319: |
Conditional statement 'if' in a function 'e32_relocate' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
320: |
Integer constant '0xFFFF0005' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
321: |
Integral type 'unsigned long' should not be converted to pointer to object type 'Elf32_Rel *' |
MISRAC2012-RULE_11_4-a-4 |
|
323: |
The variable 'rel' used as the left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
323: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
331: |
Conditional statement 'if' in a function 'e32_relocate' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
332: |
Integer constant '0xFFFF0005' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
334: |
Integral type 'unsigned long' should not be converted to pointer to object type 'Elf32_Addr *' |
MISRAC2012-RULE_11_4-a-4 |
|
345: |
The value of a composite expression (32 bit essential type) is assigned to an object with wider essential type (64 bit) |
MISRAC2012-RULE_10_6-a-2 |
|
346: |
Conditional statement 'if' in a function 'e32_relocate' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
347: |
Integer constant '0xFFFF0005' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
349: |
Operands of the '==' operator have different essential types: 'unsigned short' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
354: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with a narrower essential type (4 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
359: |
The value of a composite expression (32 bit essential type) is assigned to an object with wider essential type (64 bit) |
MISRAC2012-RULE_10_6-a-2 |
|
360: |
Conditional statement 'if' in a function 'e32_relocate' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
361: |
Integer constant '0xFFFF0005' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
366: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with a narrower essential type (4 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
377: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with a narrower essential type (4 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
382: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with a narrower essential type (4 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
384: |
Every non empty default clause in a switch statement shall be terminated with a break statement |
MISRAC2012-RULE_16_1-d-2 |
|
384: |
Every non empty default clause in a switch statement shall be terminated with a break statement |
MISRAC2012-RULE_16_3-b-2 |
|
385: |
Integer constant '0xFFFF0005' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
394: |
Pass parameter "rela" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
400: |
Conditional statement 'if' in a function 'e64_get_sym_name' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
401: |
Integer constant '0xFFFF0005' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
405: |
Conditional statement 'if' in a function 'e64_get_sym_name' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
406: |
Integer constant '0xFFFF0005' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
407: |
The variable 'str_tab' used as the left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
433: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
440: |
Operands of the '+' operator have different essential types: 'unsigned long' and 'long' |
MISRAC2012-RULE_10_4-a-2 |
|
443: |
Consider hiding the implementation of the structure 'tlsdesc' in a translation unit 'ta_elf_rel.c' |
MISRAC2012-DIR_4_8-a-4 |
|
444: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
445: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
449: |
The 'tlsdesc_resolve' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
449: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
469: |
Pointer to function 'long (*)(struct tlsdesc *)' should not be cast to other type |
MISRAC2012-RULE_11_1-a-2 |
|
471: |
The variable 'where' used as the left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
474: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
474: |
Value 38 is out of acceptable range: 'lower than 30' |
METRIC.CC-3 |
|
476: |
Pointer to void type should not be converted to pointer to object type 'Elf64_Shdr *' |
MISRAC2012-RULE_11_5-a-4 |
|
486: |
Operands of the '==' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
486: |
Potential macro 'SHT_RELA' used as '1' parameter of potential macro 'assert' |
MISRAC2012-RULE_20_12-a-2 |
|
491: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
494: |
Conditional statement 'if' in a function 'e64_relocate' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
495: |
Integer constant '0xFFFF0005' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
501: |
Conditional statement 'if' in a function 'e64_relocate' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
503: |
Integer constant '0xFFFF0005' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
504: |
Conditional statement 'if' in a function 'e64_relocate' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
505: |
Integer constant '0xFFFF0005' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
507: |
Integral type 'unsigned long' should not be converted to pointer to object type 'Elf64_Sym *' |
MISRAC2012-RULE_11_4-a-4 |
|
513: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
514: |
Conditional statement 'if' in a function 'e64_relocate' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
515: |
Integer constant '0xFFFF0005' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
521: |
Conditional statement 'if' in a function 'e64_relocate' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
523: |
Integer constant '0xFFFF0005' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
524: |
Conditional statement 'if' in a function 'e64_relocate' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
525: |
Integer constant '0xFFFF0005' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
528: |
Integral type 'unsigned long' should not be converted to pointer to object type 'const char *' |
MISRAC2012-RULE_11_4-a-4 |
|
535: |
Conditional statement 'if' in a function 'e64_relocate' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
537: |
Integer constant '0xFFFF0005' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
538: |
Conditional statement 'if' in a function 'e64_relocate' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
539: |
Integer constant '0xFFFF0005' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
540: |
Integral type 'unsigned long' should not be converted to pointer to object type 'Elf64_Rela *' |
MISRAC2012-RULE_11_4-a-4 |
|
542: |
The variable 'rela' used as the left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
542: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
548: |
Conditional statement 'if' in a function 'e64_relocate' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
549: |
Integer constant '0xFFFF0005' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
552: |
Integral type 'unsigned long' should not be converted to pointer to object type 'Elf64_Addr *' |
MISRAC2012-RULE_11_4-a-4 |
|
554: |
Operands of the '&' operator have different essential types: 'unsigned long' and 'long' |
MISRAC2012-RULE_10_4-a-2 |
|
554: |
The right hand operand of the '&' operator has essentially signed type: long |
MISRAC2012-RULE_10_1-e-2 |
|
564: |
Conditional statement 'if' in a function 'e64_relocate' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
565: |
Integer constant '0xFFFF0005' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
568: |
Operands of the '==' operator have different essential types: 'unsigned short' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
573: |
Operands of the '+' operator have different essential types: 'long' and 'unsigned long' |
MISRAC2012-RULE_10_4-a-2 |
|
578: |
Operands of the '+' operator have different essential types: 'long' and 'unsigned long' |
MISRAC2012-RULE_10_4-a-2 |
|
595: |
Every non empty default clause in a switch statement shall be terminated with a break statement |
MISRAC2012-RULE_16_1-d-2 |
|
595: |
Every non empty default clause in a switch statement shall be terminated with a break statement |
MISRAC2012-RULE_16_3-b-2 |
|
596: |
Integer constant '0xFFFF0005' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
596: |
Operands of the '&' operator have different essential types: 'unsigned long' and 'long' |
MISRAC2012-RULE_10_4-a-2 |
|
596: |
The right hand operand of the '&' operator has essentially signed type: long |
MISRAC2012-RULE_10_1-e-2 |
|
603: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
614: |
Pointer to void type should not be converted to pointer to object type 'Elf32_Shdr *' |
MISRAC2012-RULE_11_5-a-4 |
|
616: |
'for' statement in a function 'ta_elf_relocate' should be followed by a block |
MISRAC2012-RULE_15_6-a-2 |
|
617: |
Conditional statement 'if' in a function 'ta_elf_relocate' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
617: |
Operands of the '==' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
618: |
The argument number '2' (8 byte essential type) is passed to the function 'e32_relocate' as a parameter with a narrower essential
type (4 byte)
|
MISRAC2012-RULE_10_3-a-2 |
|
620: |
Pointer to void type should not be converted to pointer to object type 'Elf64_Shdr *' |
MISRAC2012-RULE_11_5-a-4 |
|
622: |
'for' statement in a function 'ta_elf_relocate' should be followed by a block |
MISRAC2012-RULE_15_6-a-2 |
|
623: |
Conditional statement 'if' in a function 'ta_elf_relocate' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
623: |
Operands of the '==' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
624: |
The argument number '2' (8 byte essential type) is passed to the function 'e64_relocate' as a parameter with a narrower essential
type (4 byte)
|
MISRAC2012-RULE_10_3-a-2 |
| /optee_os_MISRA/libdl/dlfcn.c |
|
15: |
Variable 'sess' of pointer type is initialized with '0' |
MISRAC2012-RULE_11_9-b-2 |
|
22: |
Integer constant '0xFFFF0000' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
24: |
Expression of pointer type is compared with '0' |
MISRAC2012-RULE_11_9-b-2 |
|
25: |
Integer constant '0xFFFFFFFF' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
27: |
Conditional statement 'if' in a function 'invoke_system_pta' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
27: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
28: |
Provide only one exit point in 'invoke_system_pta' function |
MISRAC2012-RULE_15_5-a-4 |
|
30: |
Integer constant '0xFFFFFFFF' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
30: |
Provide only one exit point in 'invoke_system_pta' function |
MISRAC2012-RULE_15_5-a-4 |
|
38: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
43: |
Integer constant '0xFFFF0000' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
46: |
'malloc' function should not be used |
MISRAC2012-RULE_21_3-a-2 |
|
46: |
'malloc' function should not be used |
MISRAC2012-DIR_4_12-a-2 |
|
46: |
Pointer to void type should not be converted to pointer to object type 'struct dl_handle *' |
MISRAC2012-RULE_11_5-a-4 |
|
47: |
Conditional statement 'if' in a function 'dlopen' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
47: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
48: |
Provide only one exit point in 'dlopen' function |
MISRAC2012-RULE_15_5-a-4 |
|
50: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
52: |
Conditional statement 'if' in a function 'dlopen' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
52: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
53: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
55: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
55: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
55: |
The expression of the 'essentially signed' type is assigned to an object with the 'essentially unsigned' type |
MISRAC2012-RULE_10_3-b-2 |
|
55: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
55: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
55: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
55: |
The left hand operand of the '|' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
55: |
The left hand operand of the '|' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
55: |
The right hand operand of the '|' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
61: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with a narrower essential type (4 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
62: |
The expression of the 'essentially signed' type is assigned to an object with the 'essentially unsigned' type |
MISRAC2012-RULE_10_3-b-2 |
|
65: |
Conditional statement 'if' in a function 'dlopen' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
65: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
66: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
74: |
Provide only one exit point in 'dlopen' function |
MISRAC2012-RULE_15_5-a-4 |
|
76: |
'free' function should not be used |
MISRAC2012-RULE_21_3-a-2 |
|
76: |
'free' function should not be used |
MISRAC2012-DIR_4_12-a-2 |
|
77: |
Provide only one exit point in 'dlopen' function |
MISRAC2012-RULE_15_5-a-4 |
|
80: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
82: |
'free' function should not be used |
MISRAC2012-RULE_21_3-a-2 |
|
82: |
'free' function should not be used |
MISRAC2012-DIR_4_12-a-2 |
|
84: |
Expression of pointer type is compared with '0' |
MISRAC2012-RULE_11_9-b-2 |
|
84: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
84: |
The operands of a logical '&&' in function 'dlclose' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
84: |
The operands of a logical '&&' in function 'dlclose' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
86: |
'0' is assigned to expression of pointer type |
MISRAC2012-RULE_11_9-b-2 |
|
93: |
Integer constant '0xFFFF0000' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
95: |
Pointer to void type should not be converted to pointer to object type 'struct dl_handle *' |
MISRAC2012-RULE_11_5-a-4 |
|
99: |
Conditional statement 'if' in a function 'dlsym' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
99: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
99: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
99: |
The operands of a logical '||' in function 'dlsym' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
99: |
The operands of a logical '||' in function 'dlsym' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
100: |
Provide only one exit point in 'dlsym' function |
MISRAC2012-RULE_15_5-a-4 |
|
102: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
102: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
102: |
The expression of the 'essentially signed' type is assigned to an object with the 'essentially unsigned' type |
MISRAC2012-RULE_10_3-b-2 |
|
102: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
102: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
102: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
102: |
The left hand operand of the '|' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
102: |
The left hand operand of the '|' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
102: |
The right hand operand of the '|' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
108: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with a narrower essential type (4 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
109: |
Cast from 'const char *' removes 'const' qualifier |
MISRAC2012-RULE_11_8-a-2 |
|
110: |
Operands of the '+' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
110: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with a narrower essential type (4 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
113: |
Conditional statement 'if' in a function 'dlsym' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
113: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
114: |
Arithmetic type 'unsigned long' should not be converted to pointer to void type |
MISRAC2012-RULE_11_6-a-2 |
|
117: |
Provide only one exit point in 'dlsym' function |
MISRAC2012-RULE_15_5-a-4 |
| /optee_os_MISRA/libdl/include/dlfcn.h |
|
7: |
Do not use reserved identifiers : _DLFCN_H_ |
MISRAC2012-RULE_21_1-a-2 |
|
18: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
19: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
| /optee_os_MISRA/libunw/include/unw/unwind.h |
|
41: |
Consider hiding the implementation of the structure 'unwind_state_arm32' in a translation unit 'abort.c' |
MISRAC2012-DIR_4_8-a-4 |
|
41: |
Consider hiding the implementation of the structure 'unwind_state_arm32' in a translation unit 'unwind_arm64.c' |
MISRAC2012-DIR_4_8-a-4 |
|
45: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
46: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
| /optee_os_MISRA/libunw/unwind_arm32.c |
|
40: |
An unused macro declaration 'FP' has been found |
MISRAC2012-RULE_2_5-a-4 |
|
101: |
Unused function's "memcpy" return value |
MISRAC2012-RULE_17_7-a-2 |
|
108: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
108: |
The expression of the 'essentially unsigned' type is returned from function 'expand_prel31' with the 'essentially signed'
type
|
MISRAC2012-RULE_10_3-b-2 |
|
130: |
Integral type 'unsigned long' should not be converted to pointer to object type 'struct unwind_idx *' |
MISRAC2012-RULE_11_4-a-4 |
|
133: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with a narrower essential type (4 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
136: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
136: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
141: |
Pointer to object type 'uint32_t *' should not be converted to integral type 'unsigned long' |
MISRAC2012-RULE_11_4-a-4 |
|
158: |
Arithmetic type 'unsigned long' should not be converted to pointer to void type |
MISRAC2012-RULE_11_6-a-2 |
|
162: |
Shifting operation should be enclosed with if checking that RHS operand does not exceed the upper limit (one less than the
width in bits of the underlying type of the LHS operand)
|
MISRAC2012-RULE_12_2-a-2 |
|
181: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
181: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
184: |
Arithmetic type 'unsigned long' should not be converted to pointer to void type |
MISRAC2012-RULE_11_6-a-2 |
|
225: |
Disallowed comma operator is used in function 'unwind_exec_insn' |
MISRAC2012-RULE_12_3-a-4 |
|
225: |
The '++' operator should cause the only side effect in an expression |
MISRAC2012-RULE_13_3-a-4 |
|
225: |
The 'for' loop contains more than one loop counter |
MISRAC2012-RULE_14_2-a-2 |
|
225: |
The third clause of a 'for' statement should not contain a comma operator |
MISRAC2012-RULE_14_2-d-2 |
|
226: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
255: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
286: |
Disallowed comma operator is used in function 'unwind_exec_insn' |
MISRAC2012-RULE_12_3-a-4 |
|
286: |
The '++' operator should cause the only side effect in an expression |
MISRAC2012-RULE_13_3-a-4 |
|
286: |
The 'for' loop contains more than one loop counter |
MISRAC2012-RULE_14_2-a-2 |
|
286: |
The third clause of a 'for' statement should not contain a comma operator |
MISRAC2012-RULE_14_2-d-2 |
|
287: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
310: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
311: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with a narrower essential type (4 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
326: |
Arithmetic type 'unsigned long' should not be converted to pointer to void type |
MISRAC2012-RULE_11_6-a-2 |
|
360: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
366: |
The function 'unwind_stack_arm32' is referenced only in the translation unit where it is defined |
MISRAC2012-RULE_8_7-a-4 |
| +
|
388: |
Value of "finished" is never used |
MISRAC2012-RULE_2_2-b-2 |
| |
|
Point where value is declared
Point where value is declared
unwind_arm32.c (388): finished = false;
Point(s) where value is overwritten
Point(s) where value is overwritten
unwind_arm32.c (405): finished = true;
Point(s) where value is overwritten
unwind_arm32.c (400): finished = unwind_tab(state, stack, stack_size); |
|
|
390: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
390: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
392: |
Pointer to object type 'uint32_t *' should not be converted to integral type 'unsigned long' |
MISRAC2012-RULE_11_4-a-4 |
|
395: |
Pointer to object type 'uint32_t *' should not be converted to integral type 'unsigned long' |
MISRAC2012-RULE_11_4-a-4 |
| /optee_os_MISRA/libunw/unwind_arm64.c |
|
38: |
Parameter 'lr' is not used in function 'ftrace_map_lr' |
MISRAC2012-RULE_2_7-a-4 |
|
38: |
Pass parameter "lr" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
38: |
The function 'ftrace_map_lr' is referenced only in the translation unit where it is defined |
MISRAC2012-RULE_8_7-a-4 |
|
43: |
Arithmetic type 'unsigned long' should not be converted to pointer to void type |
MISRAC2012-RULE_11_6-a-2 |
|
43: |
In the call of the function 'memcpy' the first argument type 'unsigned long*' is not compatible with the second argument type
'void*'
|
MISRAC2012-RULE_21_15-a-2 |
|
43: |
Unused function's "memcpy" return value |
MISRAC2012-RULE_17_7-a-2 |
|
47: |
Identifiers given in declaration of 'unwind_stack_arm64' function (file: 'unwind.h', line: '95') are: 'state' not: 'frame' |
MISRAC2012-RULE_8_3-b-2 |
|
54: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
54: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
54: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
| /optee_os_MISRA/libutee/abort.c |
|
11: |
Reserved name 'abort' used |
MISRAC2012-RULE_21_2-b-2 |
|
11: |
Reserved name 'abort' used |
MISRAC2012-RULE_21_2-c-2 |
|
11: |
The 'abort' function should not be declared with the '_Noreturn' specifier |
MISRAC2012-RULE_1_4-b-2 |
|
13: |
Unused function's "printf" return value |
MISRAC2012-RULE_17_7-a-2 |
|
13: |
Usage of 'printf' function is not allowed |
MISRAC2012-RULE_21_6-a-2 |
|
16: |
'while' statement in a function 'abort' should be followed by a block |
MISRAC2012-RULE_15_6-a-2 |
| /optee_os_MISRA/libutee/arch/arm/tcb.c |
|
52: |
The 'union' keyword shall not be used |
MISRAC2012-RULE_19_2-a-4 |
|
53: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
57: |
Do not define function-like macro: DTV_SIZE |
MISRAC2012-DIR_4_9-a-4 |
|
57: |
The 'union' keyword shall not be used |
MISRAC2012-RULE_19_2-a-4 |
|
62: |
A tag name 'dtv' is reused |
MISRAC2012-RULE_5_7-a-2 |
|
62: |
The 'union' keyword shall not be used |
MISRAC2012-RULE_19_2-a-4 |
|
63: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
69: |
Flexible array member 'tls' is declared |
MISRAC2012-RULE_18_7-a-2 |
|
76: |
Reserved name '_tcb' used |
MISRAC2012-RULE_21_2-a-2 |
|
77: |
Global variable '_tls_size' is being used only in a single function '__utee_tcb_init' |
MISRAC2012-RULE_8_9-a-4 |
|
77: |
Reserved name '_tls_size' used |
MISRAC2012-RULE_21_2-a-2 |
|
79: |
Do not define function-like macro: TCB_SIZE |
MISRAC2012-DIR_4_9-a-4 |
|
86: |
Reserved name '__utee_tcb_init' used |
MISRAC2012-RULE_21_2-a-2 |
|
97: |
The left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
99: |
The left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
100: |
Operands of the '==' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
110: |
Conditional statement 'if' in a function '__utee_tcb_init' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
111: |
Provide only one exit point in '__utee_tcb_init' function |
MISRAC2012-RULE_15_5-a-4 |
|
114: |
'realloc' function should not be used |
MISRAC2012-RULE_21_3-a-2 |
|
114: |
'realloc' function should not be used |
MISRAC2012-DIR_4_12-a-2 |
|
114: |
Pointer to void type should not be converted to pointer to object type 'struct tcb_head *' |
MISRAC2012-RULE_11_5-a-4 |
|
115: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
117: |
Provide only one exit point in '__utee_tcb_init' function |
MISRAC2012-RULE_15_5-a-4 |
|
117: |
The 'abort' library function should not be used |
MISRAC2012-RULE_21_8-a-2 |
|
121: |
Operands of the '*' operator have different essential types: 'int' and 'unsigned long' |
MISRAC2012-RULE_10_4-a-2 |
|
121: |
Operands of the '+' operator have different essential types: 'unsigned short' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
121: |
The 'union' keyword shall not be used |
MISRAC2012-RULE_19_2-a-4 |
|
122: |
'realloc' function should not be used |
MISRAC2012-RULE_21_3-a-2 |
|
122: |
'realloc' function should not be used |
MISRAC2012-DIR_4_12-a-2 |
|
122: |
Pointer to void type should not be converted to pointer to object type 'union dtv *' |
MISRAC2012-RULE_11_5-a-4 |
|
123: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
125: |
Provide only one exit point in '__utee_tcb_init' function |
MISRAC2012-RULE_15_5-a-4 |
|
125: |
The 'abort' library function should not be used |
MISRAC2012-RULE_21_8-a-2 |
|
131: |
The left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
133: |
The left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
134: |
Conditional statement 'if' in a function '__utee_tcb_init' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
134: |
Operands of the '!=' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
136: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
140: |
Operands of the '+' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
140: |
The left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
142: |
In the call of the function 'memcpy' the first argument type 'unsigned char*' is not compatible with the second argument type
'void*'
|
MISRAC2012-RULE_21_15-a-2 |
|
142: |
The left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
142: |
Unused function's "memcpy" return value |
MISRAC2012-RULE_17_7-a-2 |
|
143: |
Arithmetic type 'unsigned long' should not be converted to pointer to void type |
MISRAC2012-RULE_11_6-a-2 |
|
146: |
The left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
146: |
Unused function's "memset" return value |
MISRAC2012-RULE_17_7-a-2 |
|
159: |
Pointer to object type 'struct tcb_head *' should not be converted to integral type 'unsigned long' |
MISRAC2012-RULE_11_4-a-4 |
|
164: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
165: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
168: |
Reserved name '__tls_get_addr' used |
MISRAC2012-RULE_21_2-a-2 |
|
170: |
Pass parameter "ti" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
170: |
Reserved name '__tls_get_addr' used |
MISRAC2012-RULE_21_2-a-2 |
|
172: |
The left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
175: |
Names shall be given for all parameters in a function type 'int (struct dl_phdr_info *, size_t, void *)' |
MISRAC2012-RULE_8_2-b-2 |
|
175: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
175: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
181: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
190: |
'calloc' function should not be used |
MISRAC2012-RULE_21_3-a-2 |
|
190: |
'calloc' function should not be used |
MISRAC2012-DIR_4_12-a-2 |
|
190: |
Pointer to void type should not be converted to pointer to object type 'struct dl_phdr_info *' |
MISRAC2012-RULE_11_5-a-4 |
|
191: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
193: |
Provide only one exit point in 'dl_iterate_phdr' function |
MISRAC2012-RULE_15_5-a-4 |
|
193: |
The 'abort' library function should not be used |
MISRAC2012-RULE_21_8-a-2 |
|
197: |
The left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
197: |
Unused function's "memcpy" return value |
MISRAC2012-RULE_17_7-a-2 |
|
200: |
Conditional statement 'if' in a function 'dl_iterate_phdr' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
200: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
205: |
'free' function should not be used |
MISRAC2012-RULE_21_3-a-2 |
|
205: |
'free' function should not be used |
MISRAC2012-DIR_4_12-a-2 |
|
206: |
Provide only one exit point in 'dl_iterate_phdr' function |
MISRAC2012-RULE_15_5-a-4 |
| /optee_os_MISRA/libutee/arch/arm/user_ta_entry.c |
|
26: |
A tag name 'ta_sessions' is reused |
MISRAC2012-RULE_5_7-a-2 |
|
29: |
Global variable 'init_done' is being used only in a single function 'ta_header_add_session' |
MISRAC2012-RULE_8_9-a-4 |
|
32: |
'ta_heap ' array size should be stated explicitly or defined implicitly by initialisation |
MISRAC2012-RULE_8_11-a-4 |
|
32: |
The 'ta_heap' object has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
33: |
The 'ta_heap_size' object has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
34: |
A tag name 'ta_head' is reused |
MISRAC2012-RULE_5_7-a-2 |
|
34: |
The 'ta_head' object has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
36: |
The object 'ta_param_types' is referenced only in the translation unit where it is defined |
MISRAC2012-RULE_8_7-a-4 |
|
37: |
The object 'ta_params' is referenced only in the translation unit where it is defined |
MISRAC2012-RULE_8_7-a-4 |
|
38: |
A tag name '__elf_phdr_info' is reused |
MISRAC2012-RULE_5_7-a-2 |
|
38: |
Reserved name '__elf_phdr_info' used |
MISRAC2012-RULE_21_2-a-2 |
|
45: |
Reserved name '__phdr_info_head' used |
MISRAC2012-RULE_21_2-a-2 |
|
51: |
Global variable '_num_mod_init' is being used only in a single function '__utee_call_elf_init_fn' |
MISRAC2012-RULE_8_9-a-4 |
|
51: |
Reserved name '_num_mod_init' used |
MISRAC2012-RULE_21_2-a-2 |
|
53: |
Pass parameter "info" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
53: |
Reserved name '_init_iterate_phdr_cb' used |
MISRAC2012-RULE_21_2-a-2 |
|
53: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
54: |
Parameter 'size' is not used in function '_init_iterate_phdr_cb' |
MISRAC2012-RULE_2_7-a-4 |
|
57: |
Pointer to void type should not be converted to pointer to object type 'size_t *' |
MISRAC2012-RULE_11_5-a-4 |
|
59: |
'malloc' function should not be used |
MISRAC2012-RULE_21_3-a-2 |
|
59: |
'malloc' function should not be used |
MISRAC2012-DIR_4_12-a-2 |
|
59: |
Pointer to void type should not be converted to pointer to object type 'struct phdr_info *' |
MISRAC2012-RULE_11_5-a-4 |
|
60: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
62: |
Provide only one exit point in '_init_iterate_phdr_cb' function |
MISRAC2012-RULE_15_5-a-4 |
|
62: |
The 'abort' library function should not be used |
MISRAC2012-RULE_21_8-a-2 |
|
67: |
Provide only one exit point in '_init_iterate_phdr_cb' function |
MISRAC2012-RULE_15_5-a-4 |
|
70: |
Reserved name '_get_fn_array' used |
MISRAC2012-RULE_21_2-a-2 |
|
71: |
The type of parameter 'fn' contains more than 2 levels of pointer indirection |
MISRAC2012-RULE_18_5-a-4 |
|
80: |
The left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
81: |
Conditional statement 'if' in a function '_get_fn_array' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
81: |
Operands of the '!=' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
84: |
Integral type 'unsigned long' should not be converted to pointer to object type 'Elf_Dyn *' |
MISRAC2012-RULE_11_4-a-4 |
|
85: |
Only one 'break' statement in loop is allowed. This loop contains 'breaks' in lines: 87, 89 |
MISRAC2012-RULE_15_4-a-4 |
|
86: |
Conditional statement 'if' in a function '_get_fn_array' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
86: |
The left hand operand of the logical operator '&&' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
86: |
The operands of a logical '&&' in function '_get_fn_array' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
86: |
The operands of a logical '&&' in function '_get_fn_array' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
86: |
The right hand operand of the logical operator '&&' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
91: |
Integral type 'unsigned long' should not be converted to pointer to object type 'void (**)(void)' |
MISRAC2012-RULE_11_4-a-4 |
|
93: |
Provide 'else' after the last 'else-if' construct |
MISRAC2012-RULE_15_7-a-2 |
|
101: |
Reserved name '__utee_call_elf_init_fn' used |
MISRAC2012-RULE_21_2-a-2 |
|
111: |
Unused function's "dl_iterate_phdr" return value |
MISRAC2012-RULE_17_7-a-2 |
|
114: |
Pointer to object type 'struct phdr_info **' is cast to pointer to different object type 'struct phdr_info_head *' |
MISRAC2012-RULE_11_3-a-2 |
|
114: |
Pointer to object type 'struct phdr_info **' is cast to pointer to different object type 'struct phdr_info_head *' |
MISRAC2012-RULE_11_3-a-2 |
|
114: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
115: |
Conditional statement 'if' in a function '__utee_call_elf_init_fn' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
115: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
119: |
'for' statement in a function '__utee_call_elf_init_fn' should be followed by a block |
MISRAC2012-RULE_15_6-a-2 |
|
127: |
Assignment operator '=' is used in improper context |
MISRAC2012-RULE_13_4-a-4 |
|
127: |
Disallowed comma operator is used in function '__utee_call_elf_init_fn' |
MISRAC2012-RULE_12_3-a-4 |
|
127: |
Do not use expressions with side effects in the right-hand operand of a logical '&&' operator |
MISRAC2012-RULE_13_5-a-2 |
|
127: |
The operands of a logical '&&' in function '__utee_call_elf_init_fn' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
127: |
The second clause of a 'for' statement contains an expression that has a persistent side effect |
MISRAC2012-RULE_14_2-c-2 |
|
128: |
An 'else' statement in a function '__utee_call_elf_init_fn' shall be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
128: |
Conditional statement 'if' in a function '__utee_call_elf_init_fn' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
129: |
'free' function should not be used |
MISRAC2012-RULE_21_3-a-2 |
|
129: |
'free' function should not be used |
MISRAC2012-DIR_4_12-a-2 |
|
133: |
Reserved name '_fini_iterate_phdr_cb' used |
MISRAC2012-RULE_21_2-a-2 |
|
133: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
134: |
Parameter 'data' is not used in function '_fini_iterate_phdr_cb' |
MISRAC2012-RULE_2_7-a-4 |
|
134: |
Parameter 'size' is not used in function '_fini_iterate_phdr_cb' |
MISRAC2012-RULE_2_7-a-4 |
|
134: |
Pass parameter "data" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
142: |
'for' statement in a function '_fini_iterate_phdr_cb' should be followed by a block |
MISRAC2012-RULE_15_6-a-2 |
|
148: |
Reserved name '__utee_call_elf_fini_fn' used |
MISRAC2012-RULE_21_2-a-2 |
|
148: |
The function '__utee_call_elf_fini_fn' is referenced only in the translation unit where it is defined |
MISRAC2012-RULE_8_7-a-4 |
|
150: |
Unused function's "dl_iterate_phdr" return value |
MISRAC2012-RULE_17_7-a-2 |
|
176: |
Conditional statement 'if' in a function 'ta_header_save_params' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
176: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
177: |
Unused function's "memcpy" return value |
MISRAC2012-RULE_17_7-a-2 |
|
179: |
An 'else' statement in a function 'ta_header_save_params' shall be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
179: |
Unused function's "memset" return value |
MISRAC2012-RULE_17_7-a-2 |
|
186: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
187: |
Conditional statement 'if' in a function 'ta_header_get_session' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
188: |
Provide only one exit point in 'ta_header_get_session' function |
MISRAC2012-RULE_15_5-a-4 |
|
190: |
Provide only one exit point in 'ta_header_get_session' function |
MISRAC2012-RULE_15_5-a-4 |
|
198: |
Conditional statement 'if' in a function 'ta_header_add_session' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
198: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
199: |
Provide only one exit point in 'ta_header_add_session' function |
MISRAC2012-RULE_15_5-a-4 |
|
204: |
Conditional statement 'if' in a function 'ta_header_add_session' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
204: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
205: |
Provide only one exit point in 'ta_header_add_session' function |
MISRAC2012-RULE_15_5-a-4 |
|
208: |
Pointer to void type should not be converted to pointer to object type 'struct ta_session *' |
MISRAC2012-RULE_11_5-a-4 |
|
208: |
The argument number '1' (8 byte essential type) is passed to the function 'TEE_Malloc' as a parameter with a narrower essential
type (4 byte)
|
MISRAC2012-RULE_10_3-a-2 |
|
209: |
Integer constant '0x80000000' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
210: |
Conditional statement 'if' in a function 'ta_header_add_session' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
210: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
211: |
Integer constant '0xFFFF000C' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
211: |
Provide only one exit point in 'ta_header_add_session' function |
MISRAC2012-RULE_15_5-a-4 |
|
213: |
'0' is assigned to expression of pointer type |
MISRAC2012-RULE_11_9-a-2 |
|
213: |
'0' is assigned to expression of pointer type |
MISRAC2012-RULE_11_9-b-2 |
|
216: |
Provide only one exit point in 'ta_header_add_session' function |
MISRAC2012-RULE_15_5-a-4 |
|
224: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
226: |
An 'else' statement in a function 'ta_header_remove_session' shall be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
226: |
Conditional statement 'if' in a function 'ta_header_remove_session' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
230: |
Operands of the '&' operator have different essential types: 'unsigned int' and 'int' |
MISRAC2012-RULE_10_4-a-2 |
|
230: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
230: |
The left hand operand of the logical operator '&&' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
230: |
The right hand operand of the '&' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
230: |
The right hand operand of the logical operator '&&' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
231: |
Operands of the '&' operator have different essential types: 'unsigned int' and 'int' |
MISRAC2012-RULE_10_4-a-2 |
|
231: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
231: |
The right hand operand of the '&' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
232: |
Conditional statement 'if' in a function 'ta_header_remove_session' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
232: |
The operands of a logical '&&' in function 'ta_header_remove_session' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
235: |
'return' statement should be at the end of the 'ta_header_remove_session' function |
MISRAC2012-RULE_15_5-a-4 |
|
246: |
Operands of the '<' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
247: |
Operands of the '&' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
247: |
Operands of the '*' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
247: |
Shifting operation should be enclosed with if checking that RHS operand does not exceed the upper limit (one less than the
width in bits of the underlying type of the LHS operand)
|
MISRAC2012-RULE_12_2-a-2 |
|
247: |
The right hand operand of the '&' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
251: |
Operands of the '*' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
252: |
Operands of the '*' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
252: |
Operands of the '+' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
252: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
257: |
Operands of the '*' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
257: |
Pointer to void type should not be converted to arithmetic type 'unsigned long' |
MISRAC2012-RULE_11_6-a-2 |
|
258: |
Operands of the '*' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
258: |
Operands of the '+' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
258: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
261: |
Operands of the '*' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
262: |
Operands of the '*' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
262: |
Operands of the '+' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
262: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
273: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with a narrower essential type (4 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
275: |
Operands of the '<' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
276: |
Operands of the '*' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
277: |
Operands of the '*' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
277: |
Operands of the '+' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
277: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
279: |
Operands of the '&' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
279: |
Operands of the '*' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
279: |
Shifting operation should be enclosed with if checking that RHS operand does not exceed the upper limit (one less than the
width in bits of the underlying type of the LHS operand)
|
MISRAC2012-RULE_12_2-a-2 |
|
279: |
The right hand operand of the '&' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
283: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with a narrower essential type (4 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
284: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with a narrower essential type (4 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
289: |
Arithmetic type 'unsigned long' should not be converted to pointer to void type |
MISRAC2012-RULE_11_6-a-2 |
|
290: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with a narrower essential type (4 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
293: |
Missing statement or comment before terminating 'break' |
MISRAC2012-RULE_16_4-b-2 |
|
293: |
Missing statement or comment before terminating 'break' |
MISRAC2012-RULE_16_1-f-2 |
|
297: |
Conditional statement 'if' in a function 'from_utee_params' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
297: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
301: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
309: |
The argument number '1' (8 byte essential type) is passed to the function 'ta_header_add_session' as a parameter with a narrower
essential type (4 byte)
|
MISRAC2012-RULE_10_3-a-2 |
|
310: |
Conditional statement 'if' in a function 'entry_open_session' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
310: |
Operands of the '!=' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
311: |
Provide only one exit point in 'entry_open_session' function |
MISRAC2012-RULE_15_5-a-4 |
|
313: |
The argument number '1' (8 byte essential type) is passed to the function 'ta_header_get_session' as a parameter with a narrower
essential type (4 byte)
|
MISRAC2012-RULE_10_3-a-2 |
|
314: |
Conditional statement 'if' in a function 'entry_open_session' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
314: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
315: |
Integer constant '0xFFFF0007' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
315: |
Provide only one exit point in 'entry_open_session' function |
MISRAC2012-RULE_15_5-a-4 |
|
325: |
Conditional statement 'if' in a function 'entry_open_session' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
325: |
Operands of the '!=' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
326: |
The argument number '1' (8 byte essential type) is passed to the function 'ta_header_remove_session' as a parameter with a
narrower essential type (4 byte)
|
MISRAC2012-RULE_10_3-a-2 |
|
327: |
Provide only one exit point in 'entry_open_session' function |
MISRAC2012-RULE_15_5-a-4 |
|
330: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
332: |
The argument number '1' (8 byte essential type) is passed to the function 'ta_header_get_session' as a parameter with a narrower
essential type (4 byte)
|
MISRAC2012-RULE_10_3-a-2 |
|
334: |
Conditional statement 'if' in a function 'entry_close_session' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
334: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
335: |
Integer constant '0xFFFF0007' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
335: |
Provide only one exit point in 'entry_close_session' function |
MISRAC2012-RULE_15_5-a-4 |
|
339: |
The argument number '1' (8 byte essential type) is passed to the function 'ta_header_remove_session' as a parameter with a
narrower essential type (4 byte)
|
MISRAC2012-RULE_10_3-a-2 |
|
340: |
Provide only one exit point in 'entry_close_session' function |
MISRAC2012-RULE_15_5-a-4 |
|
343: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
344: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
349: |
The argument number '1' (8 byte essential type) is passed to the function 'ta_header_get_session' as a parameter with a narrower
essential type (4 byte)
|
MISRAC2012-RULE_10_3-a-2 |
|
351: |
Conditional statement 'if' in a function 'entry_invoke_command' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
351: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
352: |
Integer constant '0xFFFF0007' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
352: |
Provide only one exit point in 'entry_invoke_command' function |
MISRAC2012-RULE_15_5-a-4 |
|
357: |
The argument number '2' (8 byte essential type) is passed to the function 'TA_InvokeCommandEntryPoint' as a parameter with
a narrower essential type (4 byte)
|
MISRAC2012-RULE_10_3-a-2 |
|
361: |
Provide only one exit point in 'entry_invoke_command' function |
MISRAC2012-RULE_15_5-a-4 |
|
364: |
Reserved name '__utee_entry' used |
MISRAC2012-RULE_21_2-a-2 |
|
364: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
364: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
365: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
370: |
The expression of the 'essentially Enum' type in a switch statement's case label is converted to the 'essentially unsigned'
type
|
MISRAC2012-RULE_10_3-b-2 |
|
373: |
The expression of the 'essentially Enum' type in a switch statement's case label is converted to the 'essentially unsigned'
type
|
MISRAC2012-RULE_10_3-b-2 |
|
376: |
The expression of the 'essentially Enum' type in a switch statement's case label is converted to the 'essentially unsigned'
type
|
MISRAC2012-RULE_10_3-b-2 |
|
380: |
Integer constant '0xffffffff' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
| /optee_os_MISRA/libutee/assert.c |
|
13: |
Reserved name '_assert_log' used |
MISRAC2012-RULE_21_2-a-2 |
|
13: |
The '_assert_log' function is also defined in other translation units |
MISRAC2012-RULE_8_6-a-2 |
|
14: |
The names of the identifiers 'file' and 'FILE' (line: 11 in the 'stdio.h' file) differ only in capitalization |
MISRAC2012-DIR_4_5-a-4 |
|
15: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
22: |
Reserved name '_assert_break' used |
MISRAC2012-RULE_21_2-a-2 |
|
22: |
The '_assert_break' function is also defined in other translation units |
MISRAC2012-RULE_8_6-a-2 |
|
22: |
The '_assert_break' function should not be declared with the '_Noreturn' specifier |
MISRAC2012-RULE_1_4-b-2 |
|
24: |
Integer constant '0xFFFF0000' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
26: |
'while' statement in a function '_assert_break' should be followed by a block |
MISRAC2012-RULE_15_6-a-2 |
| /optee_os_MISRA/libutee/base64.c |
|
11: |
Reserved name '_base64_enc_len' used |
MISRAC2012-RULE_21_2-a-2 |
|
13: |
Operands of the '*' operator have different essential types: 'signed char' and 'unsigned long' |
MISRAC2012-RULE_10_4-a-2 |
|
13: |
Operands of the '+' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
13: |
Operands of the '+' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
13: |
Operands of the '/' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
13: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
16: |
Identifiers given in declaration of '_base64_enc' function (file: 'base64.h', line: '12') are: 'size' not: 'dlen' |
MISRAC2012-RULE_8_3-b-2 |
|
16: |
Reserved name '_base64_enc' used |
MISRAC2012-RULE_21_2-a-2 |
|
20: |
Pointer to void type should not be converted to pointer to object type 'const unsigned char *' |
MISRAC2012-RULE_11_5-a-4 |
|
20: |
The basic numerical type 'char' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
25: |
Provide only one exit point in '_base64_enc' function |
MISRAC2012-RULE_15_5-a-4 |
|
28: |
Operands of the '+=' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
34: |
Conditional statement 'if' in a function '_base64_enc' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
34: |
Operands of the '+' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
35: |
Operands of the '+' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
38: |
Conditional statement 'if' in a function '_base64_enc' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
38: |
Operands of the '+' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
39: |
Operands of the '+' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
41: |
Operands of the '&' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
41: |
The right hand operand of the '&' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
42: |
Operands of the '&' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
42: |
Operands of the '+' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
42: |
The right hand operand of the '&' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
43: |
Conditional statement 'if' in a function '_base64_enc' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
43: |
Operands of the '+' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
44: |
Operands of the '&' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
44: |
Operands of the '+' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
44: |
The right hand operand of the '&' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
46: |
An 'else' statement in a function '_base64_enc' shall be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
46: |
Operands of the '+' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
47: |
Conditional statement 'if' in a function '_base64_enc' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
47: |
Operands of the '+' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
48: |
Operands of the '&' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
48: |
Operands of the '+' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
48: |
The right hand operand of the '&' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
50: |
An 'else' statement in a function '_base64_enc' shall be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
50: |
Operands of the '+' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
52: |
Operands of the '+=' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
54: |
The '++' operator should cause the only side effect in an expression |
MISRAC2012-RULE_13_3-a-4 |
|
57: |
Provide only one exit point in '_base64_enc' function |
MISRAC2012-RULE_15_5-a-4 |
|
66: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with a narrower essential type (1 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
67: |
Provide only one exit point in 'get_idx' function |
MISRAC2012-RULE_15_5-a-4 |
|
70: |
Provide only one exit point in 'get_idx' function |
MISRAC2012-RULE_15_5-a-4 |
|
73: |
Reserved name '_base64_dec' used |
MISRAC2012-RULE_21_2-a-2 |
|
78: |
Pointer to void type should not be converted to pointer to object type 'uint8_t *' |
MISRAC2012-RULE_11_5-a-4 |
|
83: |
The operands of a logical '&&' in function '_base64_dec' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
83: |
The operands of a logical '&&' in function '_base64_dec' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
84: |
Conditional statement 'if' in a function '_base64_dec' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
87: |
Conditional statement 'if' in a function '_base64_dec' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
96: |
Conditional statement 'if' in a function '_base64_dec' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
96: |
The left hand operand of the logical operator '&&' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
96: |
The operands of a logical '&&' in function '_base64_dec' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
99: |
Operands of the '&' operator have different essential types: 'unsigned char' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
99: |
The expression of the 'essentially signed' type is assigned to an object with the 'essentially unsigned' type |
MISRAC2012-RULE_10_3-b-2 |
|
99: |
The left hand operand of the '<<' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
99: |
The right hand operand of the '&' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
103: |
Conditional statement 'if' in a function '_base64_dec' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
103: |
The left hand operand of the logical operator '&&' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
103: |
The operands of a logical '&&' in function '_base64_dec' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
106: |
Operands of the '&' operator have different essential types: 'unsigned char' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
106: |
The expression of the 'essentially signed' type is assigned to an object with the 'essentially unsigned' type |
MISRAC2012-RULE_10_3-b-2 |
|
106: |
The left hand operand of the '<<' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
106: |
The right hand operand of the '&' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
110: |
Conditional statement 'if' in a function '_base64_dec' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
110: |
The left hand operand of the logical operator '&&' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
110: |
The operands of a logical '&&' in function '_base64_dec' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
116: |
Provide only one exit point in '_base64_dec' function |
MISRAC2012-RULE_15_5-a-4 |
|
124: |
The left hand operand of the logical operator '&&' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
124: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
124: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
124: |
The operands of a logical '&&' in function '_base64_dec' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
124: |
The operands of a logical '&&' in function '_base64_dec' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
127: |
Provide only one exit point in '_base64_dec' function |
MISRAC2012-RULE_15_5-a-4 |
| /optee_os_MISRA/libutee/base64.h |
|
12: |
Reserved name '_base64_enc' used |
MISRAC2012-RULE_21_2-a-2 |
|
13: |
Reserved name '_base64_dec' used |
MISRAC2012-RULE_21_2-a-2 |
|
14: |
Reserved name '_base64_enc_len' used |
MISRAC2012-RULE_21_2-a-2 |
| /optee_os_MISRA/libutee/include/__tee_ipsocket.h |
|
7: |
Do not use reserved identifiers : ____TEE_IPSOCKET_H |
MISRAC2012-RULE_21_1-a-2 |
| /optee_os_MISRA/libutee/include/__tee_isocket_defines.h |
|
6: |
Do not use reserved identifiers : ____TEE_ISOCKET_DEFINES_H |
MISRAC2012-RULE_21_1-a-2 |
| /optee_os_MISRA/libutee/include/__tee_tcpsocket_defines.h |
|
7: |
Do not use reserved identifiers : ____TEE_TCPSOCKET_DEFINES_H |
MISRAC2012-RULE_21_1-a-2 |
| /optee_os_MISRA/libutee/include/__tee_tcpsocket_defines_extensions.h |
|
7: |
Do not use reserved identifiers : ____TEE_TCPSOCKET_DEFINES_EXTENSIONS_H |
MISRAC2012-RULE_21_1-a-2 |
| /optee_os_MISRA/libutee/include/__tee_udpsocket_defines.h |
|
7: |
Do not use reserved identifiers : ____TEE_UDPSOCKET_DEFINES_H |
MISRAC2012-RULE_21_1-a-2 |
| /optee_os_MISRA/libutee/include/arm64_user_sysreg.h |
|
15: |
Do not define function-like macro: DEFINE_REG_READ_FUNC_ |
MISRAC2012-DIR_4_9-a-4 |
|
16: |
Preprocessor operator ## should not be used |
MISRAC2012-RULE_20_10-a-4 |
|
20: |
Preprocessor operator # should not be used |
MISRAC2012-RULE_20_10-a-4 |
|
24: |
Do not define function-like macro: DEFINE_REG_WRITE_FUNC_ |
MISRAC2012-DIR_4_9-a-4 |
|
25: |
Preprocessor operator ## should not be used |
MISRAC2012-RULE_20_10-a-4 |
|
29: |
Preprocessor operator # should not be used |
MISRAC2012-RULE_20_10-a-4 |
|
33: |
The expression of the 'unsigned long' essential type (8 byte) is returned from the function 'read_cntfrq' with a narrower
essential return type (4 byte)
|
MISRAC2012-RULE_10_3-a-2 |
|
34: |
Assembly language code is not commented |
MISRAC2012-DIR_4_2-a-4 |
|
35: |
Assembly language code is not commented |
MISRAC2012-DIR_4_2-a-4 |
|
36: |
Assembly language code is not commented |
MISRAC2012-DIR_4_2-a-4 |
| /optee_os_MISRA/libutee/include/elf.h |
|
6: |
Do not use reserved identifiers : _ELF_H_ |
MISRAC2012-RULE_21_1-a-2 |
|
38: |
#include statements are not grouped properly. This is the last #include in file. Some statements are in line 12 |
MISRAC2012-RULE_20_1-a-4 |
| /optee_os_MISRA/libutee/include/elf32.h |
|
31: |
Do not use reserved identifiers : _SYS_ELF32_H_ |
MISRAC2012-RULE_21_1-a-2 |
|
58: |
The basic numerical type 'char' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
113: |
The 'union' keyword shall not be used |
MISRAC2012-RULE_19_2-a-4 |
|
137: |
Do not define function-like macro: ELF32_R_SYM |
MISRAC2012-DIR_4_9-a-4 |
|
138: |
Do not define function-like macro: ELF32_R_TYPE |
MISRAC2012-DIR_4_9-a-4 |
|
141: |
Do not define function-like macro: ELF32_R_INFO |
MISRAC2012-DIR_4_9-a-4 |
|
166: |
Do not define function-like macro: ELF32_M_SYM |
MISRAC2012-DIR_4_9-a-4 |
|
167: |
Do not define function-like macro: ELF32_M_SIZE |
MISRAC2012-DIR_4_9-a-4 |
|
168: |
Do not define function-like macro: ELF32_M_INFO |
MISRAC2012-DIR_4_9-a-4 |
|
175: |
The 'union' keyword shall not be used |
MISRAC2012-RULE_19_2-a-4 |
|
189: |
The basic numerical type 'char' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
190: |
The basic numerical type 'char' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
195: |
Do not define function-like macro: ELF32_ST_BIND |
MISRAC2012-DIR_4_9-a-4 |
|
196: |
Do not define function-like macro: ELF32_ST_TYPE |
MISRAC2012-DIR_4_9-a-4 |
|
199: |
Do not define function-like macro: ELF32_ST_INFO |
MISRAC2012-DIR_4_9-a-4 |
|
202: |
Do not define function-like macro: ELF32_ST_VISIBILITY |
MISRAC2012-DIR_4_9-a-4 |
| /optee_os_MISRA/libutee/include/elf64.h |
|
31: |
Do not use reserved identifiers : _SYS_ELF64_H_ |
MISRAC2012-RULE_21_1-a-2 |
|
67: |
The basic numerical type 'char' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
122: |
The 'union' keyword shall not be used |
MISRAC2012-RULE_19_2-a-4 |
|
146: |
Do not define function-like macro: ELF64_R_SYM |
MISRAC2012-DIR_4_9-a-4 |
|
147: |
Do not define function-like macro: ELF64_R_TYPE |
MISRAC2012-DIR_4_9-a-4 |
|
150: |
Do not define function-like macro: ELF64_R_INFO |
MISRAC2012-DIR_4_9-a-4 |
|
152: |
Do not define function-like macro: ELF64_R_TYPE_DATA |
MISRAC2012-DIR_4_9-a-4 |
|
153: |
Do not define function-like macro: ELF64_R_TYPE_ID |
MISRAC2012-DIR_4_9-a-4 |
|
154: |
Do not define function-like macro: ELF64_R_TYPE_INFO |
MISRAC2012-DIR_4_9-a-4 |
|
173: |
Do not define function-like macro: ELF64_M_SYM |
MISRAC2012-DIR_4_9-a-4 |
|
174: |
Do not define function-like macro: ELF64_M_SIZE |
MISRAC2012-DIR_4_9-a-4 |
|
175: |
Do not define function-like macro: ELF64_M_INFO |
MISRAC2012-DIR_4_9-a-4 |
|
182: |
The 'union' keyword shall not be used |
MISRAC2012-RULE_19_2-a-4 |
|
194: |
The basic numerical type 'char' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
195: |
The basic numerical type 'char' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
202: |
Do not define function-like macro: ELF64_ST_BIND |
MISRAC2012-DIR_4_9-a-4 |
|
203: |
Do not define function-like macro: ELF64_ST_TYPE |
MISRAC2012-DIR_4_9-a-4 |
|
206: |
Do not define function-like macro: ELF64_ST_INFO |
MISRAC2012-DIR_4_9-a-4 |
|
209: |
Do not define function-like macro: ELF64_ST_VISIBILITY |
MISRAC2012-DIR_4_9-a-4 |
| /optee_os_MISRA/libutee/include/elf_common.h |
|
32: |
Do not use reserved identifiers : _SYS_ELF_COMMON_H_ |
MISRAC2012-RULE_21_1-a-2 |
|
88: |
Octal escape sequence in "\177ELF" is not correctly terminated |
MISRAC2012-RULE_4_1-a-2 |
|
129: |
Do not define function-like macro: IS_ELF |
MISRAC2012-DIR_4_9-a-4 |
|
561: |
Do not define function-like macro: VER_DEF_IDX |
MISRAC2012-DIR_4_9-a-4 |
|
569: |
Do not define function-like macro: VER_NEED_IDX |
MISRAC2012-DIR_4_9-a-4 |
|
576: |
Do not define function-like macro: VER_NDX |
MISRAC2012-DIR_4_9-a-4 |
| /optee_os_MISRA/libutee/include/link.h |
|
7: |
Do not use reserved identifiers : _LINK_H_ |
MISRAC2012-RULE_21_1-a-2 |
|
17: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
18: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
23: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
23: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
| /optee_os_MISRA/libutee/include/pta_device.h |
|
11: |
Do not use reserved identifiers : __PTA_DEVICE_H |
MISRAC2012-RULE_21_1-a-2 |
| /optee_os_MISRA/libutee/include/pta_secstor_ta_mgmt.h |
|
7: |
Do not use reserved identifiers : __PTA_SECSTOR_TA_MGMT_H |
MISRAC2012-RULE_21_1-a-2 |
| /optee_os_MISRA/libutee/include/pta_socket.h |
|
7: |
Do not use reserved identifiers : __PTA_SOCKET |
MISRAC2012-RULE_21_1-a-2 |
| /optee_os_MISRA/libutee/include/pta_system.h |
|
7: |
Do not use reserved identifiers : __PTA_SYSTEM_H |
MISRAC2012-RULE_21_1-a-2 |
| /optee_os_MISRA/libutee/include/tee_api.h |
|
169: |
The identifier 'TEE_CloseAndDeletePersistentObject1' has the same first 31 characters of the name as the identifier 'TEE_CloseAndDeletePersistentObject'
defined in the 'tee_api.h' file in line '167'
|
MISRAC2012-RULE_5_1-a-2 |
|
327: |
Reserved name 'time' used |
MISRAC2012-RULE_21_2-b-2 |
|
327: |
Reserved name 'time' used |
MISRAC2012-RULE_21_2-c-2 |
|
331: |
Reserved name 'time' used |
MISRAC2012-RULE_21_2-b-2 |
|
331: |
Reserved name 'time' used |
MISRAC2012-RULE_21_2-c-2 |
|
333: |
Reserved name 'time' used |
MISRAC2012-RULE_21_2-b-2 |
|
333: |
Reserved name 'time' used |
MISRAC2012-RULE_21_2-c-2 |
|
335: |
Reserved name 'time' used |
MISRAC2012-RULE_21_2-b-2 |
|
335: |
Reserved name 'time' used |
MISRAC2012-RULE_21_2-c-2 |
|
436: |
The 'TEE_BigIntFMMConvertToBigInt' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
| /optee_os_MISRA/libutee/include/tee_api_defines.h |
|
22: |
The macro 'TEE_ERROR_STORAGE_NOT_AVAILABLE_2' has the same name (or the first 31 characters of the name) as the macro defined
in line 21
|
MISRAC2012-RULE_5_4-c-2 |
|
149: |
The macro 'TEE_ALG_RSASSA_PKCS1_PSS_MGF1_SHA224' has the same name (or the first 31 characters of the name) as the macro defined
in line 148
|
MISRAC2012-RULE_5_4-c-2 |
|
150: |
The macro 'TEE_ALG_RSASSA_PKCS1_PSS_MGF1_SHA256' has the same name (or the first 31 characters of the name) as the macro defined
in line 148
|
MISRAC2012-RULE_5_4-c-2 |
|
150: |
The macro 'TEE_ALG_RSASSA_PKCS1_PSS_MGF1_SHA256' has the same name (or the first 31 characters of the name) as the macro defined
in line 149
|
MISRAC2012-RULE_5_4-c-2 |
|
151: |
The macro 'TEE_ALG_RSASSA_PKCS1_PSS_MGF1_SHA384' has the same name (or the first 31 characters of the name) as the macro defined
in line 148
|
MISRAC2012-RULE_5_4-c-2 |
|
151: |
The macro 'TEE_ALG_RSASSA_PKCS1_PSS_MGF1_SHA384' has the same name (or the first 31 characters of the name) as the macro defined
in line 149
|
MISRAC2012-RULE_5_4-c-2 |
|
151: |
The macro 'TEE_ALG_RSASSA_PKCS1_PSS_MGF1_SHA384' has the same name (or the first 31 characters of the name) as the macro defined
in line 150
|
MISRAC2012-RULE_5_4-c-2 |
|
152: |
The macro 'TEE_ALG_RSASSA_PKCS1_PSS_MGF1_SHA512' has the same name (or the first 31 characters of the name) as the macro defined
in line 148
|
MISRAC2012-RULE_5_4-c-2 |
|
152: |
The macro 'TEE_ALG_RSASSA_PKCS1_PSS_MGF1_SHA512' has the same name (or the first 31 characters of the name) as the macro defined
in line 149
|
MISRAC2012-RULE_5_4-c-2 |
|
152: |
The macro 'TEE_ALG_RSASSA_PKCS1_PSS_MGF1_SHA512' has the same name (or the first 31 characters of the name) as the macro defined
in line 150
|
MISRAC2012-RULE_5_4-c-2 |
|
152: |
The macro 'TEE_ALG_RSASSA_PKCS1_PSS_MGF1_SHA512' has the same name (or the first 31 characters of the name) as the macro defined
in line 151
|
MISRAC2012-RULE_5_4-c-2 |
|
155: |
The macro 'TEE_ALG_RSAES_PKCS1_OAEP_MGF1_SHA224' has the same name (or the first 31 characters of the name) as the macro defined
in line 154
|
MISRAC2012-RULE_5_4-c-2 |
|
156: |
The macro 'TEE_ALG_RSAES_PKCS1_OAEP_MGF1_SHA256' has the same name (or the first 31 characters of the name) as the macro defined
in line 154
|
MISRAC2012-RULE_5_4-c-2 |
|
156: |
The macro 'TEE_ALG_RSAES_PKCS1_OAEP_MGF1_SHA256' has the same name (or the first 31 characters of the name) as the macro defined
in line 155
|
MISRAC2012-RULE_5_4-c-2 |
|
157: |
The macro 'TEE_ALG_RSAES_PKCS1_OAEP_MGF1_SHA384' has the same name (or the first 31 characters of the name) as the macro defined
in line 154
|
MISRAC2012-RULE_5_4-c-2 |
|
157: |
The macro 'TEE_ALG_RSAES_PKCS1_OAEP_MGF1_SHA384' has the same name (or the first 31 characters of the name) as the macro defined
in line 155
|
MISRAC2012-RULE_5_4-c-2 |
|
157: |
The macro 'TEE_ALG_RSAES_PKCS1_OAEP_MGF1_SHA384' has the same name (or the first 31 characters of the name) as the macro defined
in line 156
|
MISRAC2012-RULE_5_4-c-2 |
|
158: |
The macro 'TEE_ALG_RSAES_PKCS1_OAEP_MGF1_SHA512' has the same name (or the first 31 characters of the name) as the macro defined
in line 154
|
MISRAC2012-RULE_5_4-c-2 |
|
158: |
The macro 'TEE_ALG_RSAES_PKCS1_OAEP_MGF1_SHA512' has the same name (or the first 31 characters of the name) as the macro defined
in line 155
|
MISRAC2012-RULE_5_4-c-2 |
|
158: |
The macro 'TEE_ALG_RSAES_PKCS1_OAEP_MGF1_SHA512' has the same name (or the first 31 characters of the name) as the macro defined
in line 156
|
MISRAC2012-RULE_5_4-c-2 |
|
158: |
The macro 'TEE_ALG_RSAES_PKCS1_OAEP_MGF1_SHA512' has the same name (or the first 31 characters of the name) as the macro defined
in line 157
|
MISRAC2012-RULE_5_4-c-2 |
|
270: |
The macro 'TEE_ATTR_ECC_EPHEMERAL_PUBLIC_VALUE_Y' has the same name (or the first 31 characters of the name) as the macro
defined in line 269
|
MISRAC2012-RULE_5_4-c-2 |
|
306: |
The macro 'TEE_PANIC_ID_TEE_GETPROPERTYASBOOL' has the same name (or the first 31 characters of the name) as the macro defined
in line 305
|
MISRAC2012-RULE_5_4-c-2 |
|
310: |
The macro 'TEE_PANIC_ID_TEE_GETPROPERTYASUUID' has the same name (or the first 31 characters of the name) as the macro defined
in line 309
|
MISRAC2012-RULE_5_4-c-2 |
|
343: |
The macro 'TEE_PANIC_ID_TEE_RESTRICTOBJECTUSAGE1' has the same name (or the first 31 characters of the name) as the macro
defined in line 341
|
MISRAC2012-RULE_5_4-c-2 |
|
354: |
The macro 'TEE_PANIC_ID_TEE_COPYOBJECTATTRIBUTES1' has the same name (or the first 31 characters of the name) as the macro
defined in line 347
|
MISRAC2012-RULE_5_4-c-2 |
|
361: |
The macro 'TEE_PANIC_ID_TEE_CLOSEANDDELETEPERSISTENTOBJECT1' has the same name (or the first 31 characters of the name) as
the macro defined in line 357
|
MISRAC2012-RULE_5_4-c-2 |
|
380: |
The macro 'TEE_PANIC_ID_TEE_SETOPERATIONKEY2' has the same name (or the first 31 characters of the name) as the macro defined
in line 379
|
MISRAC2012-RULE_5_4-c-2 |
|
381: |
The macro 'TEE_PANIC_ID_TEE_GETOPERATIONINFOMULTIPLE' has the same name (or the first 31 characters of the name) as the macro
defined in line 377
|
MISRAC2012-RULE_5_4-c-2 |
|
424: |
The macro 'TEE_PANIC_ID_TEE_BIGINTCONVERTFROMS32' has the same name (or the first 31 characters of the name) as the macro
defined in line 423
|
MISRAC2012-RULE_5_4-c-2 |
|
426: |
The macro 'TEE_PANIC_ID_TEE_BIGINTCONVERTTOS32' has the same name (or the first 31 characters of the name) as the macro defined
in line 425
|
MISRAC2012-RULE_5_4-c-2 |
|
453: |
The macro 'TEE_PANIC_ID_TEE_BIGINTCONVERTFROMFMM' has the same name (or the first 31 characters of the name) as the macro
defined in line 423
|
MISRAC2012-RULE_5_4-c-2 |
|
453: |
The macro 'TEE_PANIC_ID_TEE_BIGINTCONVERTFROMFMM' has the same name (or the first 31 characters of the name) as the macro
defined in line 424
|
MISRAC2012-RULE_5_4-c-2 |
|
454: |
The macro 'TEE_PANIC_ID_TEE_BIGINTCONVERTTOFMM' has the same name (or the first 31 characters of the name) as the macro defined
in line 425
|
MISRAC2012-RULE_5_4-c-2 |
|
454: |
The macro 'TEE_PANIC_ID_TEE_BIGINTCONVERTTOFMM' has the same name (or the first 31 characters of the name) as the macro defined
in line 426
|
MISRAC2012-RULE_5_4-c-2 |
|
456: |
Section of code should not be 'commented out' |
MISRAC2012-DIR_4_4-a-4 |
|
466: |
Do not define function-like macro: TEE_PARAM_TYPES |
MISRAC2012-DIR_4_9-a-4 |
|
473: |
Do not define function-like macro: TEE_PARAM_TYPE_GET |
MISRAC2012-DIR_4_9-a-4 |
|
473: |
Each instance of parameter: 't' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
479: |
Do not define function-like macro: TEE_PARAM_TYPE_SET |
MISRAC2012-DIR_4_9-a-4 |
|
486: |
Do not define function-like macro: TEE_BigIntSizeInU32 |
MISRAC2012-DIR_4_9-a-4 |
| /optee_os_MISRA/libutee/include/tee_api_defines_extensions.h |
|
82: |
Section of code should not be 'commented out' |
MISRAC2012-DIR_4_4-a-4 |
| /optee_os_MISRA/libutee/include/tee_api_types.h |
|
49: |
The 'union' keyword shall not be used |
MISRAC2012-RULE_19_2-a-4 |
|
85: |
The 'union' keyword shall not be used |
MISRAC2012-RULE_19_2-a-4 |
|
89: |
The 'union' keyword shall not be used |
MISRAC2012-RULE_19_2-a-4 |
|
107: |
The 'union' keyword shall not be used |
MISRAC2012-RULE_19_2-a-4 |
|
155: |
Flexible array member 'keyInformation' is declared |
MISRAC2012-RULE_18_7-a-2 |
| /optee_os_MISRA/libutee/include/tee_arith_internal.h |
|
58: |
Reserved name '_TEE_MathAPI_Init' used |
MISRAC2012-RULE_21_2-a-2 |
| /optee_os_MISRA/libutee/include/tee_internal_api_extensions.h |
|
16: |
The 'tee_user_mem_mark_heap' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
17: |
The 'tee_user_mem_check_heap' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
| /optee_os_MISRA/libutee/include/tee_isocket.h |
|
7: |
Do not use reserved identifiers : __TEE_ISOCKET_H |
MISRAC2012-RULE_21_1-a-2 |
| /optee_os_MISRA/libutee/include/tee_ta_api.h |
|
47: |
The 'TA_CreateEntryPoint' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
69: |
The 'TA_DestroyEntryPoint' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
120: |
The 'TA_OpenSessionEntryPoint' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
139: |
The 'TA_CloseSessionEntryPoint' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
172: |
The 'TA_InvokeCommandEntryPoint' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
| /optee_os_MISRA/libutee/include/tee_tcpsocket.h |
|
7: |
Do not use reserved identifiers : __TEE_TCPSOCKET_H |
MISRAC2012-RULE_21_1-a-2 |
| /optee_os_MISRA/libutee/include/tee_udpsocket.h |
|
7: |
Do not use reserved identifiers : __TEE_UDPSOCKET_H |
MISRAC2012-RULE_21_1-a-2 |
| /optee_os_MISRA/libutee/include/user_ta_header.h |
|
37: |
An external identifier with the same name 'ta_head' was declared in the 'user_ta_entry.c' file in line 34 |
MISRAC2012-RULE_5_8-a-2 |
|
37: |
Consider hiding the implementation of the structure 'ta_head' in a translation unit 'dl.c' |
MISRAC2012-DIR_4_8-a-4 |
|
37: |
Consider hiding the implementation of the structure 'ta_head' in a translation unit 'main.c' |
MISRAC2012-DIR_4_8-a-4 |
|
37: |
Consider hiding the implementation of the structure 'ta_head' in a translation unit 'ta_elf_rel.c' |
MISRAC2012-DIR_4_8-a-4 |
|
46: |
The 'union' keyword shall not be used |
MISRAC2012-RULE_19_2-a-4 |
|
55: |
The 'union' keyword shall not be used |
MISRAC2012-RULE_19_2-a-4 |
|
56: |
The 'union' keyword shall not be used |
MISRAC2012-RULE_19_2-a-4 |
|
57: |
The 'union' keyword shall not be used |
MISRAC2012-RULE_19_2-a-4 |
|
79: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
83: |
Reserved name '__utee_call_elf_init_fn' used |
MISRAC2012-RULE_21_2-a-2 |
|
84: |
Reserved name '__utee_call_elf_fini_fn' used |
MISRAC2012-RULE_21_2-a-2 |
|
86: |
Reserved name '__utee_tcb_init' used |
MISRAC2012-RULE_21_2-a-2 |
|
92: |
An external identifier with the same name '__elf_phdr_info' was declared in the 'user_ta_entry.c' file in line 38 |
MISRAC2012-RULE_5_8-a-2 |
|
92: |
An external identifier with the same name '__elf_phdr_info' was declared in the 'user_ta_header.h' file in line 109 |
MISRAC2012-RULE_5_8-a-2 |
|
92: |
Reserved name '__elf_phdr_info' used |
MISRAC2012-RULE_21_2-a-2 |
|
101: |
Reserved name '__elf_phdr_info32' used |
MISRAC2012-RULE_21_2-a-2 |
|
109: |
A tag name '__elf_phdr_info' is reused |
MISRAC2012-RULE_5_7-a-2 |
|
109: |
Reserved name '__elf_phdr_info' used |
MISRAC2012-RULE_21_2-a-2 |
|
134: |
'ta_props ' array size should be stated explicitly or defined implicitly by initialisation |
MISRAC2012-RULE_8_11-a-4 |
|
134: |
The 'ta_props' object has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
135: |
The 'ta_num_props' object has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
141: |
The 'tahead_get_trace_level' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
141: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
| /optee_os_MISRA/libutee/include/utee_defines.h |
|
55: |
Reserved name '__tee_alg_get_class' used |
MISRAC2012-RULE_21_2-a-2 |
|
57: |
Conditional statement 'if' in a function '__tee_alg_get_class' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
57: |
Integer constant '0x80000045' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
58: |
Provide only one exit point in '__tee_alg_get_class' function |
MISRAC2012-RULE_15_5-a-4 |
|
59: |
Conditional statement 'if' in a function '__tee_alg_get_class' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
59: |
Operands of the '==' operator have different essential types: 'unsigned int' and 'int' |
MISRAC2012-RULE_10_4-a-2 |
|
60: |
Provide only one exit point in '__tee_alg_get_class' function |
MISRAC2012-RULE_15_5-a-4 |
|
61: |
Conditional statement 'if' in a function '__tee_alg_get_class' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
61: |
Integer constant '0xF0000830' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
62: |
Provide only one exit point in '__tee_alg_get_class' function |
MISRAC2012-RULE_15_5-a-4 |
|
63: |
Conditional statement 'if' in a function '__tee_alg_get_class' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
63: |
Integer constant '0xF0000613' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
64: |
Provide only one exit point in '__tee_alg_get_class' function |
MISRAC2012-RULE_15_5-a-4 |
|
66: |
Operands of the '&' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
66: |
Provide only one exit point in '__tee_alg_get_class' function |
MISRAC2012-RULE_15_5-a-4 |
|
66: |
The right hand operand of the '&' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
69: |
Do not define function-like macro: TEE_ALG_GET_CLASS |
MISRAC2012-DIR_4_9-a-4 |
|
71: |
Reserved name '__tee_alg_get_main_alg' used |
MISRAC2012-RULE_21_2-a-2 |
|
74: |
Integer constant '0x80000045' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
75: |
Provide only one exit point in '__tee_alg_get_main_alg' function |
MISRAC2012-RULE_15_5-a-4 |
|
77: |
Provide only one exit point in '__tee_alg_get_main_alg' function |
MISRAC2012-RULE_15_5-a-4 |
|
79: |
Missing statement or comment before terminating 'break' |
MISRAC2012-RULE_16_4-b-2 |
|
79: |
Missing statement or comment before terminating 'break' |
MISRAC2012-RULE_16_1-f-2 |
|
82: |
Operands of the '&' operator have different essential types: 'unsigned int' and 'short' |
MISRAC2012-RULE_10_4-a-2 |
|
82: |
Provide only one exit point in '__tee_alg_get_main_alg' function |
MISRAC2012-RULE_15_5-a-4 |
|
82: |
The right hand operand of the '&' operator has essentially signed type: short |
MISRAC2012-RULE_10_1-e-2 |
|
85: |
Do not define function-like macro: TEE_ALG_GET_MAIN_ALG |
MISRAC2012-DIR_4_9-a-4 |
|
88: |
Do not define function-like macro: TEE_ALG_GET_CHAIN_MODE |
MISRAC2012-DIR_4_9-a-4 |
|
96: |
Do not use reserved identifiers : __TEE_MAIN_HASH_SM3 |
MISRAC2012-RULE_21_1-a-2 |
|
98: |
Reserved name '__tee_alg_get_digest_hash' used |
MISRAC2012-RULE_21_2-a-2 |
|
100: |
Conditional statement 'if' in a function '__tee_alg_get_digest_hash' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
100: |
Operands of the '==' operator have different essential types: 'unsigned int' and 'int' |
MISRAC2012-RULE_10_4-a-2 |
|
101: |
Provide only one exit point in '__tee_alg_get_digest_hash' function |
MISRAC2012-RULE_15_5-a-4 |
|
104: |
Operands of the '&' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
104: |
Provide only one exit point in '__tee_alg_get_digest_hash' function |
MISRAC2012-RULE_15_5-a-4 |
|
104: |
The right hand operand of the '&' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
107: |
Do not define function-like macro: TEE_ALG_GET_DIGEST_HASH |
MISRAC2012-DIR_4_9-a-4 |
|
110: |
Do not define function-like macro: TEE_ALG_GET_INTERNAL_HASH |
MISRAC2012-DIR_4_9-a-4 |
|
112: |
Reserved name '__tee_alg_get_key_type' used |
MISRAC2012-RULE_21_2-a-2 |
|
114: |
Integer constant '0xA0000000' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
116: |
Conditional statement 'if' in a function '__tee_alg_get_key_type' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
117: |
Operands of the '|=' operator have different essential types: 'unsigned int' and 'int' |
MISRAC2012-RULE_10_4-a-2 |
|
117: |
The right hand operand of the '|=' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
122: |
Do not define function-like macro: TEE_ALG_GET_KEY_TYPE |
MISRAC2012-DIR_4_9-a-4 |
|
123: |
Each instance of parameter: 'algo' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
123: |
Each instance of parameter: 'with_private_key' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
125: |
Reserved name '__tee_alg_hash_algo' used |
MISRAC2012-RULE_21_2-a-2 |
|
127: |
Conditional statement 'if' in a function '__tee_alg_hash_algo' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
127: |
Operands of the '==' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
128: |
Provide only one exit point in '__tee_alg_hash_algo' function |
MISRAC2012-RULE_15_5-a-4 |
|
130: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
130: |
Operands of the '|' operator have different essential types: 'int' and 'unsigned int' |
MISRAC2012-RULE_10_4-a-2 |
|
130: |
Provide only one exit point in '__tee_alg_hash_algo' function |
MISRAC2012-RULE_15_5-a-4 |
|
130: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
130: |
The left hand operand of the '|' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
134: |
Do not define function-like macro: TEE_ALG_HASH_ALGO |
MISRAC2012-DIR_4_9-a-4 |
|
137: |
Do not define function-like macro: TEE_INTERNAL_HASH_TO_ALGO |
MISRAC2012-DIR_4_9-a-4 |
|
141: |
Do not define function-like macro: TEE_DIGEST_HASH_TO_ALGO |
MISRAC2012-DIR_4_9-a-4 |
|
145: |
Do not define function-like macro: TEE_ALG_HMAC_ALGO |
MISRAC2012-DIR_4_9-a-4 |
|
164: |
The left hand operand of the '+' operator has essentially enum type: t_hash_size |
MISRAC2012-RULE_10_1-d-2 |
|
164: |
The right hand operand of the '+' operator has essentially enum type: t_hash_size |
MISRAC2012-RULE_10_1-d-2 |
|
174: |
Reserved name '__tee_alg_get_digest_size' used |
MISRAC2012-RULE_21_2-a-2 |
|
174: |
The names of the identifiers '__tee_alg_get_digest_size' and 'tee_alg_get_digest_size' (line: 12 in the 'tee_cryp_utl.h' file)
differ only in the presence/absence of the underscore character
|
MISRAC2012-DIR_4_5-a-4 |
|
179: |
Provide only one exit point in '__tee_alg_get_digest_size' function |
MISRAC2012-RULE_15_5-a-4 |
|
179: |
The expression of the 'essentially Enum' type is returned from function '__tee_alg_get_digest_size' with the 'essentially
unsigned' type
|
MISRAC2012-RULE_10_3-b-2 |
|
183: |
Provide only one exit point in '__tee_alg_get_digest_size' function |
MISRAC2012-RULE_15_5-a-4 |
|
183: |
The expression of the 'essentially Enum' type is returned from function '__tee_alg_get_digest_size' with the 'essentially
unsigned' type
|
MISRAC2012-RULE_10_3-b-2 |
|
187: |
Provide only one exit point in '__tee_alg_get_digest_size' function |
MISRAC2012-RULE_15_5-a-4 |
|
187: |
The expression of the 'essentially Enum' type is returned from function '__tee_alg_get_digest_size' with the 'essentially
unsigned' type
|
MISRAC2012-RULE_10_3-b-2 |
|
191: |
Provide only one exit point in '__tee_alg_get_digest_size' function |
MISRAC2012-RULE_15_5-a-4 |
|
191: |
The expression of the 'essentially Enum' type is returned from function '__tee_alg_get_digest_size' with the 'essentially
unsigned' type
|
MISRAC2012-RULE_10_3-b-2 |
|
194: |
Provide only one exit point in '__tee_alg_get_digest_size' function |
MISRAC2012-RULE_15_5-a-4 |
|
194: |
The expression of the 'essentially Enum' type is returned from function '__tee_alg_get_digest_size' with the 'essentially
unsigned' type
|
MISRAC2012-RULE_10_3-b-2 |
|
197: |
Provide only one exit point in '__tee_alg_get_digest_size' function |
MISRAC2012-RULE_15_5-a-4 |
|
197: |
The expression of the 'essentially Enum' type is returned from function '__tee_alg_get_digest_size' with the 'essentially
unsigned' type
|
MISRAC2012-RULE_10_3-b-2 |
|
200: |
Provide only one exit point in '__tee_alg_get_digest_size' function |
MISRAC2012-RULE_15_5-a-4 |
|
200: |
The expression of the 'essentially Enum' type is returned from function '__tee_alg_get_digest_size' with the 'essentially
unsigned' type
|
MISRAC2012-RULE_10_3-b-2 |
|
204: |
Provide only one exit point in '__tee_alg_get_digest_size' function |
MISRAC2012-RULE_15_5-a-4 |
|
209: |
Integer constant '0xF0000613' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
210: |
Provide only one exit point in '__tee_alg_get_digest_size' function |
MISRAC2012-RULE_15_5-a-4 |
|
212: |
Provide only one exit point in '__tee_alg_get_digest_size' function |
MISRAC2012-RULE_15_5-a-4 |
|
217: |
Do not define function-like macro: TEE_ALG_GET_DIGEST_SIZE |
MISRAC2012-DIR_4_9-a-4 |
|
227: |
Do not define function-like macro: TEE_U64_BSWAP |
MISRAC2012-DIR_4_9-a-4 |
|
229: |
Do not define function-like macro: TEE_U64_BSWAP |
MISRAC2012-DIR_4_9-a-4 |
|
241: |
Do not define function-like macro: TEE_U32_BSWAP |
MISRAC2012-DIR_4_9-a-4 |
|
243: |
Do not define function-like macro: TEE_U32_BSWAP |
MISRAC2012-DIR_4_9-a-4 |
|
251: |
Do not define function-like macro: TEE_U16_BSWAP |
MISRAC2012-DIR_4_9-a-4 |
|
253: |
Do not define function-like macro: TEE_U16_BSWAP |
MISRAC2012-DIR_4_9-a-4 |
|
259: |
Do not define function-like macro: TEE_U64_FROM_BIG_ENDIAN |
MISRAC2012-DIR_4_9-a-4 |
|
260: |
Do not define function-like macro: TEE_U32_FROM_BIG_ENDIAN |
MISRAC2012-DIR_4_9-a-4 |
|
261: |
Do not define function-like macro: TEE_U16_FROM_BIG_ENDIAN |
MISRAC2012-DIR_4_9-a-4 |
|
262: |
Do not define function-like macro: TEE_U64_TO_BIG_ENDIAN |
MISRAC2012-DIR_4_9-a-4 |
|
263: |
Do not define function-like macro: TEE_U32_TO_BIG_ENDIAN |
MISRAC2012-DIR_4_9-a-4 |
|
264: |
Do not define function-like macro: TEE_U16_TO_BIG_ENDIAN |
MISRAC2012-DIR_4_9-a-4 |
|
268: |
Do not define function-like macro: TEE_TIME_LT |
MISRAC2012-DIR_4_9-a-4 |
|
273: |
Do not define function-like macro: TEE_TIME_LE |
MISRAC2012-DIR_4_9-a-4 |
|
278: |
Do not define function-like macro: TEE_TIME_ADD |
MISRAC2012-DIR_4_9-a-4 |
|
287: |
Do not define function-like macro: TEE_TIME_SUB |
MISRAC2012-DIR_4_9-a-4 |
| /optee_os_MISRA/libutee/include/utee_syscalls.h |
|
32: |
Reserved name '_utee_return' used |
MISRAC2012-RULE_21_2-a-2 |
|
32: |
The '_utee_return' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
32: |
The '_utee_return' function should not be declared with the '_Noreturn' specifier |
MISRAC2012-RULE_1_4-b-2 |
|
32: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
34: |
Reserved name '_utee_log' used |
MISRAC2012-RULE_21_2-a-2 |
|
34: |
The '_utee_log' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
37: |
Reserved name '_utee_panic' used |
MISRAC2012-RULE_21_2-a-2 |
|
37: |
The '_utee_panic' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
37: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
40: |
Reserved name '_utee_get_property' used |
MISRAC2012-RULE_21_2-a-2 |
|
40: |
The '_utee_get_property' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
40: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
40: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
44: |
Reserved name '_utee_get_property_name_to_index' used |
MISRAC2012-RULE_21_2-a-2 |
|
44: |
The '_utee_get_property_name_to_index' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
44: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
46: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
50: |
Reserved name '_utee_open_ta_session' used |
MISRAC2012-RULE_21_2-a-2 |
|
50: |
The '_utee_open_ta_session' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
51: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
56: |
Reserved name '_utee_close_ta_session' used |
MISRAC2012-RULE_21_2-a-2 |
|
56: |
The '_utee_close_ta_session' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
56: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
59: |
Reserved name '_utee_invoke_ta_command' used |
MISRAC2012-RULE_21_2-a-2 |
|
59: |
The '_utee_invoke_ta_command' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
59: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
60: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
61: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
65: |
Reserved name '_utee_check_access_rights' used |
MISRAC2012-RULE_21_2-a-2 |
|
65: |
The '_utee_check_access_rights' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
69: |
Reserved name '_utee_get_cancellation_flag' used |
MISRAC2012-RULE_21_2-a-2 |
|
69: |
The '_utee_get_cancellation_flag' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
72: |
Reserved name '_utee_unmask_cancellation' used |
MISRAC2012-RULE_21_2-a-2 |
|
72: |
The '_utee_unmask_cancellation' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
75: |
Reserved name '_utee_mask_cancellation' used |
MISRAC2012-RULE_21_2-a-2 |
|
75: |
The '_utee_mask_cancellation' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
77: |
Reserved name '_utee_wait' used |
MISRAC2012-RULE_21_2-a-2 |
|
77: |
The '_utee_wait' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
77: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
80: |
Reserved name '_utee_get_time' used |
MISRAC2012-RULE_21_2-a-2 |
|
80: |
Reserved name 'time' used |
MISRAC2012-RULE_21_2-b-2 |
|
80: |
Reserved name 'time' used |
MISRAC2012-RULE_21_2-c-2 |
|
80: |
The '_utee_get_time' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
80: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
82: |
Reserved name '_utee_set_ta_time' used |
MISRAC2012-RULE_21_2-a-2 |
|
82: |
Reserved name 'time' used |
MISRAC2012-RULE_21_2-b-2 |
|
82: |
Reserved name 'time' used |
MISRAC2012-RULE_21_2-c-2 |
|
82: |
The '_utee_set_ta_time' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
84: |
Reserved name '_utee_cryp_state_alloc' used |
MISRAC2012-RULE_21_2-a-2 |
|
84: |
The '_utee_cryp_state_alloc' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
84: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
84: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
85: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
85: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
87: |
Reserved name '_utee_cryp_state_copy' used |
MISRAC2012-RULE_21_2-a-2 |
|
87: |
The '_utee_cryp_state_copy' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
87: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
87: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
88: |
Reserved name '_utee_cryp_state_free' used |
MISRAC2012-RULE_21_2-a-2 |
|
88: |
The '_utee_cryp_state_free' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
88: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
91: |
Reserved name '_utee_hash_init' used |
MISRAC2012-RULE_21_2-a-2 |
|
91: |
The '_utee_hash_init' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
91: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
92: |
Reserved name '_utee_hash_update' used |
MISRAC2012-RULE_21_2-a-2 |
|
92: |
The '_utee_hash_update' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
92: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
94: |
Reserved name '_utee_hash_final' used |
MISRAC2012-RULE_21_2-a-2 |
|
94: |
The '_utee_hash_final' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
94: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
97: |
Reserved name '_utee_cipher_init' used |
MISRAC2012-RULE_21_2-a-2 |
|
97: |
The '_utee_cipher_init' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
97: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
99: |
Reserved name '_utee_cipher_update' used |
MISRAC2012-RULE_21_2-a-2 |
|
99: |
The '_utee_cipher_update' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
99: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
101: |
Reserved name '_utee_cipher_final' used |
MISRAC2012-RULE_21_2-a-2 |
|
101: |
The '_utee_cipher_final' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
101: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
105: |
Reserved name '_utee_cryp_obj_get_info' used |
MISRAC2012-RULE_21_2-a-2 |
|
105: |
The '_utee_cryp_obj_get_info' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
105: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
106: |
Reserved name '_utee_cryp_obj_restrict_usage' used |
MISRAC2012-RULE_21_2-a-2 |
|
106: |
The '_utee_cryp_obj_restrict_usage' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
106: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
107: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
108: |
Reserved name '_utee_cryp_obj_get_attr' used |
MISRAC2012-RULE_21_2-a-2 |
|
108: |
The '_utee_cryp_obj_get_attr' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
108: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
108: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
113: |
Reserved name '_utee_cryp_obj_alloc' used |
MISRAC2012-RULE_21_2-a-2 |
|
113: |
The '_utee_cryp_obj_alloc' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
113: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
113: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
115: |
Reserved name '_utee_cryp_obj_close' used |
MISRAC2012-RULE_21_2-a-2 |
|
115: |
The '_utee_cryp_obj_close' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
115: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
116: |
Reserved name '_utee_cryp_obj_reset' used |
MISRAC2012-RULE_21_2-a-2 |
|
116: |
The '_utee_cryp_obj_reset' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
116: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
117: |
Reserved name '_utee_cryp_obj_populate' used |
MISRAC2012-RULE_21_2-a-2 |
|
117: |
The '_utee_cryp_obj_populate' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
117: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
119: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
120: |
Reserved name '_utee_cryp_obj_copy' used |
MISRAC2012-RULE_21_2-a-2 |
|
120: |
The '_utee_cryp_obj_copy' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
120: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
120: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
122: |
Reserved name '_utee_cryp_obj_generate_key' used |
MISRAC2012-RULE_21_2-a-2 |
|
122: |
The '_utee_cryp_obj_generate_key' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
122: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
123: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
125: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
127: |
Reserved name '_utee_cryp_derive_key' used |
MISRAC2012-RULE_21_2-a-2 |
|
127: |
The '_utee_cryp_derive_key' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
127: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
129: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
130: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
132: |
Reserved name '_utee_cryp_random_number_generate' used |
MISRAC2012-RULE_21_2-a-2 |
|
132: |
The '_utee_cryp_random_number_generate' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
134: |
Reserved name '_utee_authenc_init' used |
MISRAC2012-RULE_21_2-a-2 |
|
134: |
The '_utee_authenc_init' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
134: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
137: |
Reserved name '_utee_authenc_update_aad' used |
MISRAC2012-RULE_21_2-a-2 |
|
137: |
The '_utee_authenc_update_aad' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
137: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
139: |
Reserved name '_utee_authenc_update_payload' used |
MISRAC2012-RULE_21_2-a-2 |
|
139: |
The '_utee_authenc_update_payload' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
139: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
142: |
Reserved name '_utee_authenc_enc_final' used |
MISRAC2012-RULE_21_2-a-2 |
|
142: |
The '_utee_authenc_enc_final' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
142: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
146: |
Reserved name '_utee_authenc_dec_final' used |
MISRAC2012-RULE_21_2-a-2 |
|
146: |
The '_utee_authenc_dec_final' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
146: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
151: |
Reserved name '_utee_asymm_operate' used |
MISRAC2012-RULE_21_2-a-2 |
|
151: |
The '_utee_asymm_operate' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
151: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
153: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
157: |
Reserved name '_utee_asymm_verify' used |
MISRAC2012-RULE_21_2-a-2 |
|
157: |
The '_utee_asymm_verify' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
157: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
159: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
164: |
Reserved name '_utee_storage_obj_open' used |
MISRAC2012-RULE_21_2-a-2 |
|
164: |
The '_utee_storage_obj_open' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
164: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
166: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
172: |
Reserved name '_utee_storage_obj_create' used |
MISRAC2012-RULE_21_2-a-2 |
|
172: |
The '_utee_storage_obj_create' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
172: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
174: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
175: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
179: |
Reserved name '_utee_storage_obj_del' used |
MISRAC2012-RULE_21_2-a-2 |
|
179: |
The '_utee_storage_obj_del' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
179: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
182: |
Reserved name '_utee_storage_obj_rename' used |
MISRAC2012-RULE_21_2-a-2 |
|
182: |
The '_utee_storage_obj_rename' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
182: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
187: |
Reserved name '_utee_storage_alloc_enum' used |
MISRAC2012-RULE_21_2-a-2 |
|
187: |
The '_utee_storage_alloc_enum' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
191: |
Reserved name '_utee_storage_free_enum' used |
MISRAC2012-RULE_21_2-a-2 |
|
191: |
The '_utee_storage_free_enum' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
191: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
194: |
Reserved name '_utee_storage_reset_enum' used |
MISRAC2012-RULE_21_2-a-2 |
|
194: |
The '_utee_storage_reset_enum' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
194: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
197: |
Reserved name '_utee_storage_start_enum' used |
MISRAC2012-RULE_21_2-a-2 |
|
197: |
The '_utee_storage_start_enum' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
197: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
198: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
201: |
Reserved name '_utee_storage_next_enum' used |
MISRAC2012-RULE_21_2-a-2 |
|
201: |
The '_utee_storage_next_enum' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
201: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
206: |
Reserved name '_utee_storage_obj_read' used |
MISRAC2012-RULE_21_2-a-2 |
|
206: |
The '_utee_storage_obj_read' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
206: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
210: |
Reserved name '_utee_storage_obj_write' used |
MISRAC2012-RULE_21_2-a-2 |
|
210: |
The '_utee_storage_obj_write' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
210: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
214: |
Reserved name '_utee_storage_obj_trunc' used |
MISRAC2012-RULE_21_2-a-2 |
|
214: |
The '_utee_storage_obj_trunc' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
214: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
218: |
Reserved name '_utee_storage_obj_seek' used |
MISRAC2012-RULE_21_2-a-2 |
|
218: |
The '_utee_storage_obj_seek' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
218: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
219: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
222: |
Reserved name '_utee_se_service_open' used |
MISRAC2012-RULE_21_2-a-2 |
|
222: |
The '_utee_se_service_open' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
225: |
Reserved name '_utee_se_service_close' used |
MISRAC2012-RULE_21_2-a-2 |
|
225: |
The '_utee_se_service_close' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
225: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
231: |
Reserved name '_utee_se_service_get_readers' used |
MISRAC2012-RULE_21_2-a-2 |
|
231: |
The '_utee_se_service_get_readers' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
231: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
238: |
Reserved name '_utee_se_reader_get_prop' used |
MISRAC2012-RULE_21_2-a-2 |
|
238: |
The '_utee_se_reader_get_prop' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
238: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
241: |
Reserved name '_utee_se_reader_get_name' used |
MISRAC2012-RULE_21_2-a-2 |
|
241: |
The '_utee_se_reader_get_name' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
241: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
248: |
Reserved name '_utee_se_reader_open_session' used |
MISRAC2012-RULE_21_2-a-2 |
|
248: |
The '_utee_se_reader_open_session' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
248: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
251: |
Reserved name '_utee_se_reader_close_sessions' used |
MISRAC2012-RULE_21_2-a-2 |
|
251: |
The '_utee_se_reader_close_sessions' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
251: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
254: |
Reserved name '_utee_se_session_is_closed' used |
MISRAC2012-RULE_21_2-a-2 |
|
254: |
The '_utee_se_session_is_closed' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
254: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
257: |
Reserved name '_utee_se_session_get_atr' used |
MISRAC2012-RULE_21_2-a-2 |
|
257: |
The '_utee_se_session_get_atr' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
257: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
264: |
Reserved name '_utee_se_session_open_channel' used |
MISRAC2012-RULE_21_2-a-2 |
|
264: |
The '_utee_se_session_open_channel' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
264: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
265: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
270: |
Reserved name '_utee_se_session_close' used |
MISRAC2012-RULE_21_2-a-2 |
|
270: |
The '_utee_se_session_close' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
270: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
273: |
Reserved name '_utee_se_channel_select_next' used |
MISRAC2012-RULE_21_2-a-2 |
|
273: |
The '_utee_se_channel_select_next' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
273: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
276: |
Reserved name '_utee_se_channel_get_select_resp' used |
MISRAC2012-RULE_21_2-a-2 |
|
276: |
The '_utee_se_channel_get_select_resp' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
276: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
280: |
Reserved name '_utee_se_channel_transmit' used |
MISRAC2012-RULE_21_2-a-2 |
|
280: |
The '_utee_se_channel_transmit' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
280: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
284: |
Reserved name '_utee_se_channel_close' used |
MISRAC2012-RULE_21_2-a-2 |
|
284: |
The '_utee_se_channel_close' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
284: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
287: |
Reserved name '_utee_cache_operation' used |
MISRAC2012-RULE_21_2-a-2 |
|
287: |
The '_utee_cache_operation' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
287: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
289: |
Reserved name '_utee_gprof_send' used |
MISRAC2012-RULE_21_2-a-2 |
|
289: |
The '_utee_gprof_send' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
| /optee_os_MISRA/libutee/include/utee_types.h |
|
30: |
The names of the identifiers 'TEE_CACHECLEAN' and 'TEE_CacheClean' (line: 34 in the 'tee_internal_api_extensions.h' file)
differ only in capitalization
|
MISRAC2012-DIR_4_5-a-4 |
|
31: |
The names of the identifiers 'TEE_CACHEFLUSH' and 'TEE_CacheFlush' (line: 35 in the 'tee_internal_api_extensions.h' file)
differ only in capitalization
|
MISRAC2012-DIR_4_5-a-4 |
|
32: |
The names of the identifiers 'TEE_CACHEINVALIDATE' and 'TEE_CacheInvalidate' (line: 36 in the 'tee_internal_api_extensions.h'
file) differ only in capitalization
|
MISRAC2012-DIR_4_5-a-4 |
|
35: |
Consider hiding the implementation of the structure 'utee_params' in a translation unit 'abort.c' |
MISRAC2012-DIR_4_8-a-4 |
|
35: |
Consider hiding the implementation of the structure 'utee_params' in a translation unit 'arch_svc.c' |
MISRAC2012-DIR_4_8-a-4 |
|
35: |
Consider hiding the implementation of the structure 'utee_params' in a translation unit 'assert.c' |
MISRAC2012-DIR_4_8-a-4 |
|
35: |
Consider hiding the implementation of the structure 'utee_params' in a translation unit 'tee_api_arith_mpi.c' |
MISRAC2012-DIR_4_8-a-4 |
|
35: |
Consider hiding the implementation of the structure 'utee_params' in a translation unit 'tee_api_objects.c' |
MISRAC2012-DIR_4_8-a-4 |
|
35: |
Consider hiding the implementation of the structure 'utee_params' in a translation unit 'tee_api_operations.c' |
MISRAC2012-DIR_4_8-a-4 |
|
35: |
Consider hiding the implementation of the structure 'utee_params' in a translation unit 'tee_api_panic.c' |
MISRAC2012-DIR_4_8-a-4 |
|
35: |
Consider hiding the implementation of the structure 'utee_params' in a translation unit 'tee_api_property.c' |
MISRAC2012-DIR_4_8-a-4 |
|
35: |
Consider hiding the implementation of the structure 'utee_params' in a translation unit 'trace_ext.c' |
MISRAC2012-DIR_4_8-a-4 |
|
35: |
Consider hiding the implementation of the structure 'utee_params' in a translation unit 'vendor_props.c' |
MISRAC2012-DIR_4_8-a-4 |
|
44: |
Consider hiding the implementation of the structure 'utee_attribute' in a translation unit 'abort.c' |
MISRAC2012-DIR_4_8-a-4 |
|
44: |
Consider hiding the implementation of the structure 'utee_attribute' in a translation unit 'arch_svc.c' |
MISRAC2012-DIR_4_8-a-4 |
|
44: |
Consider hiding the implementation of the structure 'utee_attribute' in a translation unit 'assert.c' |
MISRAC2012-DIR_4_8-a-4 |
|
44: |
Consider hiding the implementation of the structure 'utee_attribute' in a translation unit 'tee_api.c' |
MISRAC2012-DIR_4_8-a-4 |
|
44: |
Consider hiding the implementation of the structure 'utee_attribute' in a translation unit 'tee_api_arith_mpi.c' |
MISRAC2012-DIR_4_8-a-4 |
|
44: |
Consider hiding the implementation of the structure 'utee_attribute' in a translation unit 'tee_api_operations.c' |
MISRAC2012-DIR_4_8-a-4 |
|
44: |
Consider hiding the implementation of the structure 'utee_attribute' in a translation unit 'tee_api_panic.c' |
MISRAC2012-DIR_4_8-a-4 |
|
44: |
Consider hiding the implementation of the structure 'utee_attribute' in a translation unit 'tee_api_property.c' |
MISRAC2012-DIR_4_8-a-4 |
|
44: |
Consider hiding the implementation of the structure 'utee_attribute' in a translation unit 'trace_ext.c' |
MISRAC2012-DIR_4_8-a-4 |
|
44: |
Consider hiding the implementation of the structure 'utee_attribute' in a translation unit 'user_ta_entry.c' |
MISRAC2012-DIR_4_8-a-4 |
| /optee_os_MISRA/libutee/tee_api.c |
|
27: |
Operands of the '*' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
41: |
Operands of the '<' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
43: |
Operands of the '&' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
43: |
Operands of the '*' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
43: |
Shifting operation should be enclosed with if checking that RHS operand does not exceed the upper limit (one less than the
width in bits of the underlying type of the LHS operand)
|
MISRAC2012-RULE_12_2-a-2 |
|
43: |
The right hand operand of the '&' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
58: |
The left hand operand of the logical operator '&&' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
58: |
The right hand operand of the logical operator '&&' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
59: |
The argument number '3' (8 byte essential type) is passed to the function 'TEE_CheckMemoryAccessRights' as a parameter with
a narrower essential type (4 byte)
|
MISRAC2012-RULE_10_3-a-2 |
|
59: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
59: |
The operands of a logical '&&' in function 'copy_param' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
61: |
Operands of the '-' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
61: |
Operands of the '-' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
65: |
Missing statement or comment before terminating 'break' |
MISRAC2012-RULE_16_4-b-2 |
|
65: |
Missing statement or comment before terminating 'break' |
MISRAC2012-RULE_16_1-f-2 |
|
69: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
70: |
Pointer to void type should not be converted to pointer to object type 'uint8_t *' |
MISRAC2012-RULE_11_5-a-4 |
|
71: |
Conditional statement 'if' in a function 'copy_param' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
71: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
72: |
Integer constant '0xFFFF000C' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
72: |
Provide only one exit point in 'copy_param' function |
MISRAC2012-RULE_15_5-a-4 |
|
78: |
Operands of the '<' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
79: |
Operands of the '&' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
79: |
Operands of the '*' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
79: |
Shifting operation should be enclosed with if checking that RHS operand does not exceed the upper limit (one less than the
width in bits of the underlying type of the LHS operand)
|
MISRAC2012-RULE_12_2-a-2 |
|
79: |
The right hand operand of the '&' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
82: |
Operands of the '*' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
83: |
Operands of the '*' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
83: |
Operands of the '+' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
83: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
92: |
Operands of the '-' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
92: |
Operands of the '-' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
92: |
The variable 'tb' used as the left hand side operand of the '+=' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
93: |
Conditional statement 'if' in a function 'copy_param' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
93: |
Operands of the '!=' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
93: |
Operands of the '&' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
93: |
Operands of the '*' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
93: |
Shifting operation should be enclosed with if checking that RHS operand does not exceed the upper limit (one less than the
width in bits of the underlying type of the LHS operand)
|
MISRAC2012-RULE_12_2-a-2 |
|
93: |
The right hand operand of the '&' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
95: |
Unused function's "memcpy" return value |
MISRAC2012-RULE_17_7-a-2 |
|
99: |
Operands of the '*' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
99: |
Pointer to void type should not be converted to arithmetic type 'unsigned long' |
MISRAC2012-RULE_11_6-a-2 |
|
100: |
Operands of the '*' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
100: |
Operands of the '+' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
100: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
103: |
Operands of the '*' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
104: |
Operands of the '*' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
104: |
Operands of the '+' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
104: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
109: |
Provide only one exit point in 'copy_param' function |
MISRAC2012-RULE_15_5-a-4 |
|
113: |
Pass parameter "tmp_va" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
117: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with a narrower essential type (4 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
119: |
Operands of the '<' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
120: |
Operands of the '*' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
121: |
Operands of the '*' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
121: |
Operands of the '+' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
121: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
123: |
Operands of the '&' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
123: |
Operands of the '*' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
123: |
Shifting operation should be enclosed with if checking that RHS operand does not exceed the upper limit (one less than the
width in bits of the underlying type of the LHS operand)
|
MISRAC2012-RULE_12_2-a-2 |
|
123: |
The right hand operand of the '&' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
126: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with a narrower essential type (4 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
127: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with a narrower essential type (4 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
131: |
Conditional statement 'if' in a function 'update_out_param' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
131: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
132: |
Unused function's "memcpy" return value |
MISRAC2012-RULE_17_7-a-2 |
|
133: |
Reserved name '_a' used |
MISRAC2012-RULE_21_2-a-2 |
|
133: |
Reserved name '_b' used |
MISRAC2012-RULE_21_2-a-2 |
|
133: |
The names of the identifiers '_a' and 'a' (line: 120 in the 'tee_api.c' file) differ only in the presence/absence of the underscore
character
|
MISRAC2012-DIR_4_5-a-4 |
|
133: |
The names of the identifiers '_b' and 'b' (line: 121 in the 'tee_api.c' file) differ only in the presence/absence of the underscore
character
|
MISRAC2012-DIR_4_5-a-4 |
|
133: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
134: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with a narrower essential type (4 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
137: |
Missing statement or comment before terminating 'break' |
MISRAC2012-RULE_16_4-b-2 |
|
137: |
Missing statement or comment before terminating 'break' |
MISRAC2012-RULE_16_1-f-2 |
|
156: |
Conditional statement 'if' in a function 'TEE_OpenTASession' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
156: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
158: |
Operands of the '*' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
163: |
Conditional statement 'if' in a function 'TEE_OpenTASession' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
163: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
164: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
168: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
171: |
Conditional statement 'if' in a function 'TEE_OpenTASession' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
171: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
181: |
Conditional statement 'if' in a function 'TEE_OpenTASession' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
181: |
Operands of the '!=' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
184: |
The expression of type 'uintptr_t' should not be cast to pointer to incomplete type 'struct __TEE_TASessionHandle *' |
MISRAC2012-RULE_11_2-a-2 |
|
188: |
Declare parameter 'session' as typedef to pointer to const object |
MISRAC2012-RULE_8_13-b-4 |
|
190: |
Expression of pointer type is compared with '0' |
MISRAC2012-RULE_11_9-b-2 |
|
191: |
Pointer to incomplete type 'struct __TEE_TASessionHandle *' should not be cast to type 'uintptr_t' |
MISRAC2012-RULE_11_2-a-2 |
|
193: |
Conditional statement 'if' in a function 'TEE_CloseTASession' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
193: |
Operands of the '!=' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
198: |
Declare parameter 'session' as typedef to pointer to const object |
MISRAC2012-RULE_8_13-b-4 |
|
211: |
Conditional statement 'if' in a function 'TEE_InvokeTACommand' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
211: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
213: |
Operands of the '*' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
215: |
Conditional statement 'if' in a function 'TEE_InvokeTACommand' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
215: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
220: |
Conditional statement 'if' in a function 'TEE_InvokeTACommand' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
220: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
221: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
222: |
Pointer to incomplete type 'struct __TEE_TASessionHandle *' should not be cast to type 'uintptr_t' |
MISRAC2012-RULE_11_2-a-2 |
|
226: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
229: |
Conditional statement 'if' in a function 'TEE_InvokeTACommand' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
229: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
234: |
Conditional statement 'if' in a function 'TEE_InvokeTACommand' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
237: |
Conditional statement 'if' in a function 'TEE_InvokeTACommand' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
237: |
Operands of the '==' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
238: |
Provide only one exit point in 'TEE_InvokeTACommand' function |
MISRAC2012-RULE_15_5-a-4 |
|
240: |
Conditional statement 'if' in a function 'TEE_InvokeTACommand' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
240: |
Operands of the '!=' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
240: |
The operands of a logical '&&' in function 'TEE_InvokeTACommand' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
241: |
Integer constant '0xFFFF000C' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
241: |
The operands of a logical '&&' in function 'TEE_InvokeTACommand' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
242: |
Integer constant '0xFFFF3024' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
242: |
The operands of a logical '&&' in function 'TEE_InvokeTACommand' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
245: |
Provide only one exit point in 'TEE_InvokeTACommand' function |
MISRAC2012-RULE_15_5-a-4 |
|
255: |
Conditional statement 'if' in a function 'TEE_GetCancellationFlag' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
255: |
Operands of the '!=' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
257: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
265: |
Conditional statement 'if' in a function 'TEE_UnmaskCancellation' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
265: |
Operands of the '!=' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
267: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
275: |
Conditional statement 'if' in a function 'TEE_MaskCancellation' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
275: |
Operands of the '!=' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
277: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
282: |
Pass parameter "buffer" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
287: |
Conditional statement 'if' in a function 'TEE_CheckMemoryAccessRights' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
287: |
Operands of the '==' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
288: |
Provide only one exit point in 'TEE_CheckMemoryAccessRights' function |
MISRAC2012-RULE_15_5-a-4 |
|
292: |
Conditional statement 'if' in a function 'TEE_CheckMemoryAccessRights' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
292: |
Operands of the '!=' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
293: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
302: |
Provide only one exit point in 'TEE_CheckMemoryAccessRights' function |
MISRAC2012-RULE_15_5-a-4 |
|
327: |
The argument number '2' ('essentially unsigned' type) is passed to the function 'memset' as a parameter with the 'essentially
signed' type
|
MISRAC2012-RULE_10_3-b-2 |
|
332: |
Reserved name 'time' used |
MISRAC2012-RULE_21_2-b-2 |
|
332: |
Reserved name 'time' used |
MISRAC2012-RULE_21_2-c-2 |
|
334: |
The argument number '1' ('essentially Enum' type) is passed to the function '_utee_get_time' as a parameter with the 'essentially
unsigned' type
|
MISRAC2012-RULE_10_3-b-2 |
|
336: |
Conditional statement 'if' in a function 'TEE_GetSystemTime' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
336: |
Operands of the '!=' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
344: |
Conditional statement 'if' in a function 'TEE_Wait' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
344: |
Integer constant '0xFFFF0002' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
344: |
Operands of the '!=' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
344: |
The operands of a logical '&&' in function 'TEE_Wait' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
344: |
The operands of a logical '&&' in function 'TEE_Wait' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
350: |
Reserved name 'time' used |
MISRAC2012-RULE_21_2-b-2 |
|
350: |
Reserved name 'time' used |
MISRAC2012-RULE_21_2-c-2 |
|
354: |
The argument number '1' ('essentially Enum' type) is passed to the function '_utee_get_time' as a parameter with the 'essentially
unsigned' type
|
MISRAC2012-RULE_10_3-b-2 |
|
356: |
Integer constant '0xFFFF300F' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
356: |
Operands of the '!=' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
356: |
The operands of a logical '&&' in function 'TEE_GetTAPersistentTime' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
356: |
The operands of a logical '&&' in function 'TEE_GetTAPersistentTime' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
361: |
Conditional statement 'if' in a function 'TEE_GetTAPersistentTime' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
361: |
Operands of the '!=' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
361: |
The operands of a logical '&&' in function 'TEE_GetTAPersistentTime' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
362: |
Integer constant '0xFFFF5000' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
362: |
The operands of a logical '&&' in function 'TEE_GetTAPersistentTime' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
363: |
Integer constant '0xFFFF5001' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
363: |
The operands of a logical '&&' in function 'TEE_GetTAPersistentTime' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
364: |
Integer constant '0xFFFF300F' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
364: |
The operands of a logical '&&' in function 'TEE_GetTAPersistentTime' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
365: |
Integer constant '0xFFFF000C' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
365: |
The operands of a logical '&&' in function 'TEE_GetTAPersistentTime' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
371: |
Reserved name 'time' used |
MISRAC2012-RULE_21_2-b-2 |
|
371: |
Reserved name 'time' used |
MISRAC2012-RULE_21_2-c-2 |
|
377: |
Conditional statement 'if' in a function 'TEE_SetTAPersistentTime' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
377: |
Operands of the '!=' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
377: |
The operands of a logical '&&' in function 'TEE_SetTAPersistentTime' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
378: |
Integer constant '0xFFFF000C' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
378: |
The operands of a logical '&&' in function 'TEE_SetTAPersistentTime' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
379: |
Integer constant '0xFFFF3041' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
379: |
The operands of a logical '&&' in function 'TEE_SetTAPersistentTime' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
385: |
Reserved name 'time' used |
MISRAC2012-RULE_21_2-b-2 |
|
385: |
Reserved name 'time' used |
MISRAC2012-RULE_21_2-c-2 |
|
387: |
The argument number '1' ('essentially Enum' type) is passed to the function '_utee_get_time' as a parameter with the 'essentially
unsigned' type
|
MISRAC2012-RULE_10_3-b-2 |
|
389: |
Conditional statement 'if' in a function 'TEE_GetREETime' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
389: |
Operands of the '!=' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
393: |
Identifiers given in declaration of 'TEE_Malloc' function (file: 'tee_api.h', line: '90') are: 'size' not: 'len' |
MISRAC2012-RULE_8_3-b-2 |
|
395: |
Conditional statement 'if' in a function 'TEE_Malloc' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
395: |
Operands of the '==' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
396: |
'calloc' function should not be used |
MISRAC2012-RULE_21_3-a-2 |
|
396: |
'calloc' function should not be used |
MISRAC2012-DIR_4_12-a-2 |
|
396: |
Provide only one exit point in 'TEE_Malloc' function |
MISRAC2012-RULE_15_5-a-4 |
|
397: |
Conditional statement 'if' in a function 'TEE_Malloc' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
397: |
Integer constant '0x80000000' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
397: |
Provide 'else' after the last 'else-if' construct |
MISRAC2012-RULE_15_7-a-2 |
|
398: |
'malloc' function should not be used |
MISRAC2012-RULE_21_3-a-2 |
|
398: |
'malloc' function should not be used |
MISRAC2012-DIR_4_12-a-2 |
|
398: |
Provide only one exit point in 'TEE_Malloc' function |
MISRAC2012-RULE_15_5-a-4 |
|
402: |
Provide only one exit point in 'TEE_Malloc' function |
MISRAC2012-RULE_15_5-a-4 |
|
407: |
'realloc' function should not be used |
MISRAC2012-RULE_21_3-a-2 |
|
407: |
'realloc' function should not be used |
MISRAC2012-DIR_4_12-a-2 |
|
412: |
'free' function should not be used |
MISRAC2012-RULE_21_3-a-2 |
|
412: |
'free' function should not be used |
MISRAC2012-DIR_4_12-a-2 |
|
416: |
The names of the identifiers 'TEE_CacheClean' and 'TEE_CACHECLEAN' (line: 30 in the 'utee_types.h' file) differ only in capitalization |
MISRAC2012-DIR_4_5-a-4 |
|
418: |
The argument number '3' ('essentially Enum' type) is passed to the function '_utee_cache_operation' as a parameter with the
'essentially unsigned' type
|
MISRAC2012-RULE_10_3-b-2 |
|
420: |
The names of the identifiers 'TEE_CacheFlush' and 'TEE_CACHEFLUSH' (line: 31 in the 'utee_types.h' file) differ only in capitalization |
MISRAC2012-DIR_4_5-a-4 |
|
422: |
The argument number '3' ('essentially Enum' type) is passed to the function '_utee_cache_operation' as a parameter with the
'essentially unsigned' type
|
MISRAC2012-RULE_10_3-b-2 |
|
425: |
The names of the identifiers 'TEE_CacheInvalidate' and 'TEE_CACHEINVALIDATE' (line: 32 in the 'utee_types.h' file) differ
only in capitalization
|
MISRAC2012-DIR_4_5-a-4 |
|
427: |
The argument number '3' ('essentially Enum' type) is passed to the function '_utee_cache_operation' as a parameter with the
'essentially unsigned' type
|
MISRAC2012-RULE_10_3-b-2 |
| /optee_os_MISRA/libutee/tee_api_arith_mpi.c |
|
18: |
The 'api_panic' function should not be declared with the '_Noreturn' specifier |
MISRAC2012-RULE_1_4-b-2 |
|
18: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
20: |
Unused function's "printf" return value |
MISRAC2012-RULE_17_7-a-2 |
|
20: |
Usage of 'printf' function is not allowed |
MISRAC2012-RULE_21_6-a-2 |
|
22: |
'while' statement in a function 'api_panic' should be followed by a block |
MISRAC2012-RULE_15_6-a-2 |
|
26: |
Do not define function-like macro: API_PANIC |
MISRAC2012-DIR_4_9-a-4 |
|
26: |
Each instance of parameter: 'x' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
28: |
The 'mpi_panic' function should not be declared with the '_Noreturn' specifier |
MISRAC2012-RULE_1_4-b-2 |
|
28: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
28: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
30: |
Unused function's "printf" return value |
MISRAC2012-RULE_17_7-a-2 |
|
30: |
Usage of 'printf' function is not allowed |
MISRAC2012-RULE_21_6-a-2 |
|
32: |
'while' statement in a function 'mpi_panic' should be followed by a block |
MISRAC2012-RULE_15_6-a-2 |
|
36: |
Do not define function-like macro: MPI_CHECK |
MISRAC2012-DIR_4_9-a-4 |
|
43: |
Reserved name '_TEE_MathAPI_Init' used |
MISRAC2012-RULE_21_2-a-2 |
|
47: |
Pointer to incomplete type 'struct mempool *' should not be converted to type 'void *' |
MISRAC2012-RULE_11_2-a-2 |
|
48: |
Conditional statement 'if' in a function '_TEE_MathAPI_Init' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
48: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
60: |
Pass parameter "mpi" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
62: |
Pointer to object type 'TEE_BigInt *' is cast to pointer to different object type 'struct bigint_hdr *' |
MISRAC2012-RULE_11_3-a-2 |
|
66: |
'while' statement in a function 'copy_mpi_to_bigint' should be followed by a block |
MISRAC2012-RULE_15_6-a-2 |
|
66: |
Operands of the '-' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
66: |
The left hand operand of the logical operator '&&' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
66: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
66: |
The operands of a logical '&&' in function 'copy_mpi_to_bigint' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
69: |
Conditional statement 'if' in a function 'copy_mpi_to_bigint' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
70: |
Integer constant '0xFFFF300F' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
70: |
Provide only one exit point in 'copy_mpi_to_bigint' function |
MISRAC2012-RULE_15_5-a-4 |
|
72: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with a narrower essential type (2 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
74: |
In the call of the function 'memcpy' the first argument type 'bigint_hdr*' is not compatible with the second argument type
'unsigned int*'
|
MISRAC2012-RULE_21_15-a-2 |
| +
|
74: |
The number of bytes to process by the "memcpy" function is not positive and equals 0 |
MISRAC2012-RULE_21_18-a-1 |
| |
|
tee_api_arith_mpi.c (62): struct bigint_hdr *hdr = (struct bigint_hdr *)bigInt;
Point where number of bytes to process is defined
tee_api_arith_mpi.c (63): size_t n = mpi->n; *** Buffer: bigint_hdr hdr + 1[]
tee_api_arith_mpi.c (66): while (n && !mpi->p[n - 1]) *** Loop condition evaluation: (n != 0) (assuming false) *** Loop condition evaluation: n && !mpi->p[n - 1] (false) *** Not entering the loop
tee_api_arith_mpi.c (69): if (hdr->alloc_size < n) *** Condition evaluation: (hdr->alloc_size < n) (false)
tee_api_arith_mpi.c (72): hdr->nblimbs = n;
tee_api_arith_mpi.c (73): hdr->sign = mpi->s;
Point where buffer is passed to the function
tee_api_arith_mpi.c (74): memcpy(hdr + 1, mpi->p, mpi->n * sizeof(mbedtls_mpi_uint)); *** Buffer: bigint_hdr hdr + 1[] |
|
|
74: |
The variable 'hdr' used as the left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
74: |
Unused function's "memcpy" return value |
MISRAC2012-RULE_17_7-a-2 |
|
76: |
Provide only one exit point in 'copy_mpi_to_bigint' function |
MISRAC2012-RULE_15_5-a-4 |
|
92: |
The 'switch' statement contains less than two switch-clauses |
MISRAC2012-RULE_16_6-a-2 |
|
92: |
The 'switch' statement contains less than two switch-clauses |
MISRAC2012-RULE_16_1-h-2 |
|
98: |
Operands of the '*' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
98: |
The 'switch' statement contains less than two switch-clauses |
MISRAC2012-RULE_16_6-a-2 |
|
98: |
The 'switch' statement contains less than two switch-clauses |
MISRAC2012-RULE_16_1-h-2 |
|
98: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
103: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
104: |
Cast from 'const TEE_BigInt *' removes 'const' qualifier |
MISRAC2012-RULE_11_8-a-2 |
|
104: |
Pointer to object type 'const TEE_BigInt *' is cast to pointer to different object type 'struct bigint_hdr *' |
MISRAC2012-RULE_11_3-a-2 |
|
105: |
Pointer to object type 'const struct bigint_hdr *' is cast to pointer to different object type 'const mbedtls_mpi_uint *' |
MISRAC2012-RULE_11_3-a-2 |
|
105: |
The variable 'hdr' used as the left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
109: |
'while' statement in a function 'get_mpi' should be followed by a block |
MISRAC2012-RULE_15_6-a-2 |
|
109: |
Operands of the '-' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
109: |
The left hand operand of the logical operator '&&' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
109: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
109: |
The operands of a logical '&&' in function 'get_mpi' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
112: |
Conditional statement 'if' in a function 'get_mpi' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
112: |
Reserved name '_rc' used |
MISRAC2012-RULE_21_2-a-2 |
|
112: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
113: |
The expression of the 'int' essential type (4 byte) is assigned to an object with a narrower essential type (2 byte) |
MISRAC2012-RULE_10_3-a-2 |
| +
|
114: |
The number of bytes to process by the "memcpy" function is not positive and equals 0 |
MISRAC2012-RULE_21_18-a-1 |
| |
|
tee_api_arith_mpi.c (92): COMPILE_TIME_ASSERT(sizeof(mbedtls_mpi_uint) == sizeof(uint32_t));
tee_api_arith_mpi.c (93): *** Loop condition evaluation: 0 (false) *** Not entering the loop
tee_api_arith_mpi.c (98): COMPILE_TIME_ASSERT(sizeof(struct bigint_hdr) ==
tee_api_arith_mpi.c (99): sizeof(uint32_t) * BIGINT_HDR_SIZE_IN_U32); *** Loop condition evaluation: 0 (false) *** Not entering the loop
tee_api_arith_mpi.c (101): mbedtls_mpi_init_mempool(mpi);
tee_api_arith_mpi.c (103): if (bigInt) { *** Condition evaluation: (bigInt != 0) (assuming true)
tee_api_arith_mpi.c (104): const struct bigint_hdr *hdr = (struct bigint_hdr *)bigInt;
tee_api_arith_mpi.c (105): const mbedtls_mpi_uint *p = (const mbedtls_mpi_uint *)(hdr + 1);
tee_api_arith_mpi.c (106): size_t n = hdr->nblimbs;
Point where number of bytes to process is defined
tee_api_arith_mpi.c (109): while (n && !p[n - 1]) *** Buffer: mbedtls_mpi_uint mpi->p[] *** Loop condition evaluation: (n != 0) (assuming false) *** Loop condition evaluation: n && !p[n - 1] (false) *** Not entering the loop
tee_api_arith_mpi.c (112): MPI_CHECK(mbedtls_mpi_grow(mpi, n));
tee_api_arith_mpi.c (113): mpi->s = hdr->sign; *** Loop condition evaluation: 0 (false) *** Not entering the loop
Point where buffer is passed to the function
tee_api_arith_mpi.c (114): memcpy(mpi->p, p, n * sizeof(mbedtls_mpi_uint)); *** Buffer: mbedtls_mpi_uint mpi->p[] |
|
|
114: |
Unused function's "memcpy" return value |
MISRAC2012-RULE_17_7-a-2 |
|
118: |
The function 'TEE_BigIntInit' is referenced only in the translation unit where it is defined |
MISRAC2012-RULE_8_7-a-4 |
|
120: |
Pointer to object type 'TEE_BigInt *' is cast to pointer to different object type 'struct bigint_hdr *' |
MISRAC2012-RULE_11_3-a-2 |
|
122: |
Unused function's "memset" return value |
MISRAC2012-RULE_17_7-a-2 |
|
124: |
Conditional statement 'if' in a function 'TEE_BigIntInit' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
| +
|
124: |
Integer overflow: value of (len - 2) will be 4,294,967,294 instead of -2 (result type: 32 bits, unsigned, min: 0, max: 4,294,967,295) |
MISRAC2012-DIR_4_1-k-2 |
| |
|
Start of the path
tee_api_arith_mpi.c (122): memset(bigInt, 0, len * sizeof(uint32_t));
memset.c (75): _PTR _DEFUN(memset, (m, c, n), _PTR m _AND int c _AND size_t n) *** Parameter value: c = 0
memset.c (77): char *s = (char *)m;
memset.c (125): while (n--) *** Condition evaluation: n-- (assuming 0) -> len = 0 *** Condition evaluation: n-- (assuming 0) -> n = 18446744073709551615 *** Loop condition evaluation: (n != 0) (assuming false) *** Not entering the loop
memset.c (128): return m;
tee_api_arith_mpi.c (123): hdr->sign = 1;
Integer overflow point
tee_api_arith_mpi.c (124): if ((len - BIGINT_HDR_SIZE_IN_U32) > MBEDTLS_MPI_MAX_LIMBS) *** Variable assignment: tmp$0 = (len - 2) -> tmp$0 = 4294967294 |
|
|
124: |
Operands of the '-' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
124: |
Operands of the '>' operator have different essential types: 'unsigned int' and 'short' |
MISRAC2012-RULE_10_4-a-2 |
|
126: |
Operands of the '-' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
126: |
The expression of the 'unsigned int' essential type (4 byte) is assigned to an object with a narrower essential type (2 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
138: |
Conditional statement 'if' in a function 'TEE_BigIntConvertFromOctetString' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
138: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
139: |
Integer constant '0xFFFF300F' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
141: |
An 'else' statement in a function 'TEE_BigIntConvertFromOctetString' shall be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
143: |
Conditional statement 'if' in a function 'TEE_BigIntConvertFromOctetString' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
146: |
Conditional statement 'if' in a function 'TEE_BigIntConvertFromOctetString' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
146: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
164: |
Conditional statement 'if' in a function 'TEE_BigIntConvertToOctetString' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
165: |
Conditional statement 'if' in a function 'TEE_BigIntConvertToOctetString' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
165: |
Reserved name '_rc' used |
MISRAC2012-RULE_21_2-a-2 |
|
165: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
167: |
An 'else' statement in a function 'TEE_BigIntConvertToOctetString' shall be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
167: |
Integer constant '0xFFFF0010' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
169: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with a narrower essential type (4 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
182: |
Conditional statement 'if' in a function 'TEE_BigIntConvertFromS32' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
182: |
Reserved name '_rc' used |
MISRAC2012-RULE_21_2-a-2 |
|
182: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
184: |
Conditional statement 'if' in a function 'TEE_BigIntConvertFromS32' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
184: |
Reserved name '_rc' used |
MISRAC2012-RULE_21_2-a-2 |
|
184: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
184: |
The expression of the 'essentially unsigned' type is assigned to an object with the 'essentially signed' type |
MISRAC2012-RULE_10_3-b-2 |
|
188: |
Pass parameter "dest" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
196: |
Pointer to void type should not be converted to pointer to object type 'unsigned char *' in function's argument |
MISRAC2012-RULE_11_5-a-4 |
|
196: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
197: |
Integer constant '0xFFFF300F' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
198: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
202: |
Conditional statement 'if' in a function 'TEE_BigIntConvertToS32' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
203: |
Integer constant '0xFFFF300F' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
205: |
Conditional statement 'if' in a function 'TEE_BigIntConvertToS32' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
206: |
Integer constant '0xFFFF300F' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
232: |
The function 'TEE_BigIntCmpS32' is referenced only in the translation unit where it is defined |
MISRAC2012-RULE_8_7-a-4 |
|
254: |
Conditional statement 'if' in a function 'TEE_BigIntShiftRight' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
254: |
Reserved name '_rc' used |
MISRAC2012-RULE_21_2-a-2 |
|
254: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
255: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
261: |
Conditional statement 'if' in a function 'TEE_BigIntShiftRight' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
261: |
Reserved name '_rc' used |
MISRAC2012-RULE_21_2-a-2 |
|
261: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
262: |
Conditional statement 'if' in a function 'TEE_BigIntShiftRight' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
262: |
Reserved name '_rc' used |
MISRAC2012-RULE_21_2-a-2 |
|
262: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
273: |
Conditional statement 'if' in a function 'TEE_BigIntShiftRight' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
273: |
Reserved name '_rc' used |
MISRAC2012-RULE_21_2-a-2 |
|
273: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
274: |
Conditional statement 'if' in a function 'TEE_BigIntShiftRight' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
274: |
Reserved name '_rc' used |
MISRAC2012-RULE_21_2-a-2 |
|
274: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
275: |
Conditional statement 'if' in a function 'TEE_BigIntShiftRight' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
275: |
Reserved name '_rc' used |
MISRAC2012-RULE_21_2-a-2 |
|
275: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
283: |
Conditional statement 'if' in a function 'TEE_BigIntShiftRight' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
283: |
Reserved name '_rc' used |
MISRAC2012-RULE_21_2-a-2 |
|
283: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
283: |
The expression of the 'essentially unsigned' type is assigned to an object with the 'essentially signed' type |
MISRAC2012-RULE_10_3-b-2 |
|
294: |
The expression of the 'essentially signed' type is assigned to an object with the 'essentially Boolean' type |
MISRAC2012-RULE_10_3-b-2 |
|
301: |
The function 'TEE_BigIntGetBitCount' is referenced only in the translation unit where it is defined |
MISRAC2012-RULE_8_7-a-4 |
|
308: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with a narrower essential type (4 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
317: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
328: |
Conditional statement 'if' in a function 'bigint_binary' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
331: |
An 'else' statement in a function 'bigint_binary' shall be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
333: |
Conditional statement 'if' in a function 'bigint_binary' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
335: |
Conditional statement 'if' in a function 'bigint_binary' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
338: |
An 'else' statement in a function 'bigint_binary' shall be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
340: |
Conditional statement 'if' in a function 'bigint_binary' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
340: |
Reserved name '_rc' used |
MISRAC2012-RULE_21_2-a-2 |
|
340: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
342: |
Conditional statement 'if' in a function 'bigint_binary' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
342: |
Reserved name '_rc' used |
MISRAC2012-RULE_21_2-a-2 |
|
342: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
342: |
The expression of the 'essentially unsigned' type is assigned to an object with the 'essentially signed' type |
MISRAC2012-RULE_10_3-b-2 |
|
344: |
Conditional statement 'if' in a function 'bigint_binary' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
346: |
Conditional statement 'if' in a function 'bigint_binary' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
352: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
355: |
Conditional statement 'if' in a function 'bigint_binary_mod' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
369: |
Conditional statement 'if' in a function 'bigint_binary_mod' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
372: |
An 'else' statement in a function 'bigint_binary_mod' shall be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
374: |
Conditional statement 'if' in a function 'bigint_binary_mod' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
376: |
Conditional statement 'if' in a function 'bigint_binary_mod' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
379: |
An 'else' statement in a function 'bigint_binary_mod' shall be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
383: |
Conditional statement 'if' in a function 'bigint_binary_mod' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
383: |
Reserved name '_rc' used |
MISRAC2012-RULE_21_2-a-2 |
|
383: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
384: |
Conditional statement 'if' in a function 'bigint_binary_mod' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
384: |
Reserved name '_rc' used |
MISRAC2012-RULE_21_2-a-2 |
|
384: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
386: |
Conditional statement 'if' in a function 'bigint_binary_mod' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
386: |
Reserved name '_rc' used |
MISRAC2012-RULE_21_2-a-2 |
|
386: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
386: |
The expression of the 'essentially unsigned' type is assigned to an object with the 'essentially signed' type |
MISRAC2012-RULE_10_3-b-2 |
|
388: |
Conditional statement 'if' in a function 'bigint_binary_mod' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
390: |
Conditional statement 'if' in a function 'bigint_binary_mod' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
396: |
The function 'TEE_BigIntAdd' is referenced only in the translation unit where it is defined |
MISRAC2012-RULE_8_7-a-4 |
|
408: |
Identifiers given in declaration of 'TEE_BigIntNeg' function (file: 'tee_api.h', line: '385') are: 'op' not: 'src' |
MISRAC2012-RULE_8_3-b-2 |
|
419: |
Conditional statement 'if' in a function 'TEE_BigIntNeg' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
419: |
Reserved name '_rc' used |
MISRAC2012-RULE_21_2-a-2 |
|
419: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
426: |
Conditional statement 'if' in a function 'TEE_BigIntNeg' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
426: |
Reserved name '_rc' used |
MISRAC2012-RULE_21_2-a-2 |
|
426: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
426: |
The expression of the 'essentially unsigned' type is assigned to an object with the 'essentially signed' type |
MISRAC2012-RULE_10_3-b-2 |
|
430: |
The function 'TEE_BigIntMul' is referenced only in the translation unit where it is defined |
MISRAC2012-RULE_8_7-a-4 |
|
435: |
Operands of the '+' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
435: |
Operands of the '+' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
435: |
Operands of the '+' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
435: |
Operands of the '+' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
435: |
Operands of the '/' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
435: |
Operands of the '/' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
439: |
Pointer to void type should not be converted to pointer to object type 'TEE_BigInt *' |
MISRAC2012-RULE_11_5-a-4 |
|
439: |
The expression of type 'void *' is converted to a pointer to incomplete type 'struct mempool *' in function's argument |
MISRAC2012-RULE_11_2-a-2 |
|
440: |
Conditional statement 'if' in a function 'TEE_BigIntMul' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
440: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
441: |
Integer constant '0xFFFF000C' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
443: |
The argument number '2' (8 byte essential type) is passed to the function 'TEE_BigIntInit' as a parameter with a narrower
essential type (4 byte)
|
MISRAC2012-RULE_10_3-a-2 |
|
444: |
The argument number '2' ('essentially signed' type) is passed to the function 'TEE_BigIntInit' as a parameter with the 'essentially
unsigned' type
|
MISRAC2012-RULE_10_3-b-2 |
|
450: |
The expression of type 'void *' is converted to a pointer to incomplete type 'struct mempool *' in function's argument |
MISRAC2012-RULE_11_2-a-2 |
|
471: |
Conditional statement 'if' in a function 'TEE_BigIntDiv' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
473: |
Conditional statement 'if' in a function 'TEE_BigIntDiv' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
476: |
An 'else' statement in a function 'TEE_BigIntDiv' shall be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
478: |
Conditional statement 'if' in a function 'TEE_BigIntDiv' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
480: |
Conditional statement 'if' in a function 'TEE_BigIntDiv' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
482: |
Conditional statement 'if' in a function 'TEE_BigIntDiv' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
485: |
An 'else' statement in a function 'TEE_BigIntDiv' shall be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
487: |
Conditional statement 'if' in a function 'TEE_BigIntDiv' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
487: |
Reserved name '_rc' used |
MISRAC2012-RULE_21_2-a-2 |
|
487: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
489: |
Conditional statement 'if' in a function 'TEE_BigIntDiv' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
489: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
490: |
Conditional statement 'if' in a function 'TEE_BigIntDiv' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
490: |
Reserved name '_rc' used |
MISRAC2012-RULE_21_2-a-2 |
|
490: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
490: |
The expression of the 'essentially unsigned' type is assigned to an object with the 'essentially signed' type |
MISRAC2012-RULE_10_3-b-2 |
|
491: |
Conditional statement 'if' in a function 'TEE_BigIntDiv' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
491: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
492: |
Conditional statement 'if' in a function 'TEE_BigIntDiv' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
492: |
Reserved name '_rc' used |
MISRAC2012-RULE_21_2-a-2 |
|
492: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
492: |
The expression of the 'essentially unsigned' type is assigned to an object with the 'essentially signed' type |
MISRAC2012-RULE_10_3-b-2 |
|
495: |
Conditional statement 'if' in a function 'TEE_BigIntDiv' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
497: |
Conditional statement 'if' in a function 'TEE_BigIntDiv' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
501: |
The function 'TEE_BigIntMod' is referenced only in the translation unit where it is defined |
MISRAC2012-RULE_8_7-a-4 |
|
503: |
Conditional statement 'if' in a function 'TEE_BigIntMod' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
521: |
The function 'TEE_BigIntMulMod' is referenced only in the translation unit where it is defined |
MISRAC2012-RULE_8_7-a-4 |
|
536: |
Conditional statement 'if' in a function 'TEE_BigIntInvMod' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
536: |
Function 'TEE_BigIntCmpS32' called in the right-hand operand of a logical '||' operator may cause side effect |
MISRAC2012-RULE_13_5-a-2 |
|
536: |
The operands of a logical '||' in function 'TEE_BigIntInvMod' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
536: |
The operands of a logical '||' in function 'TEE_BigIntInvMod' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
547: |
Conditional statement 'if' in a function 'TEE_BigIntInvMod' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
550: |
An 'else' statement in a function 'TEE_BigIntInvMod' shall be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
552: |
Conditional statement 'if' in a function 'TEE_BigIntInvMod' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
552: |
Reserved name '_rc' used |
MISRAC2012-RULE_21_2-a-2 |
|
552: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
554: |
Conditional statement 'if' in a function 'TEE_BigIntInvMod' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
554: |
Reserved name '_rc' used |
MISRAC2012-RULE_21_2-a-2 |
|
554: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
554: |
The expression of the 'essentially unsigned' type is assigned to an object with the 'essentially signed' type |
MISRAC2012-RULE_10_3-b-2 |
|
557: |
Conditional statement 'if' in a function 'TEE_BigIntInvMod' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
571: |
Conditional statement 'if' in a function 'TEE_BigIntRelativePrime' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
574: |
An 'else' statement in a function 'TEE_BigIntRelativePrime' shall be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
578: |
Conditional statement 'if' in a function 'TEE_BigIntRelativePrime' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
578: |
Reserved name '_rc' used |
MISRAC2012-RULE_21_2-a-2 |
|
578: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
578: |
The names of the identifiers '_rc' and 'rc' (line: 563 in the 'tee_api_arith_mpi.c' file) differ only in the presence/absence
of the underscore character
|
MISRAC2012-DIR_4_5-a-4 |
|
580: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
584: |
Conditional statement 'if' in a function 'TEE_BigIntRelativePrime' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
590: |
Pass parameter "x" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
592: |
The expression of the 'essentially signed' type is returned from function 'mpi_is_odd' with the 'essentially Boolean' type |
MISRAC2012-RULE_10_3-b-2 |
|
604: |
Value 73 is out of acceptable range: 'lower than 30' |
METRIC.CC-3 |
|
605: |
Pass parameter "x_in" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
605: |
Pass parameter "y_in" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
608: |
The names of the identifiers 'A' and 'a' (line: 604 in the 'tee_api_arith_mpi.c' file) differ only in capitalization |
MISRAC2012-DIR_4_5-a-4 |
|
609: |
The names of the identifiers 'B' and 'b' (line: 604 in the 'tee_api_arith_mpi.c' file) differ only in capitalization |
MISRAC2012-DIR_4_5-a-4 |
|
625: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
626: |
Conditional statement 'if' in a function 'mpi_egcd' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
626: |
Reserved name '_rc' used |
MISRAC2012-RULE_21_2-a-2 |
|
626: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
627: |
Conditional statement 'if' in a function 'mpi_egcd' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
627: |
Reserved name '_rc' used |
MISRAC2012-RULE_21_2-a-2 |
|
627: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
628: |
Conditional statement 'if' in a function 'mpi_egcd' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
628: |
Reserved name '_rc' used |
MISRAC2012-RULE_21_2-a-2 |
|
628: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
629: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
632: |
Conditional statement 'if' in a function 'mpi_egcd' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
632: |
Reserved name '_rc' used |
MISRAC2012-RULE_21_2-a-2 |
|
632: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
633: |
Conditional statement 'if' in a function 'mpi_egcd' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
633: |
Reserved name '_rc' used |
MISRAC2012-RULE_21_2-a-2 |
|
633: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
636: |
The operands of a logical '&&' in function 'mpi_egcd' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
636: |
The operands of a logical '&&' in function 'mpi_egcd' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
638: |
Conditional statement 'if' in a function 'mpi_egcd' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
638: |
Reserved name '_rc' used |
MISRAC2012-RULE_21_2-a-2 |
|
638: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
639: |
Conditional statement 'if' in a function 'mpi_egcd' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
639: |
Reserved name '_rc' used |
MISRAC2012-RULE_21_2-a-2 |
|
639: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
642: |
Conditional statement 'if' in a function 'mpi_egcd' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
642: |
Reserved name '_rc' used |
MISRAC2012-RULE_21_2-a-2 |
|
642: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
643: |
Conditional statement 'if' in a function 'mpi_egcd' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
643: |
Reserved name '_rc' used |
MISRAC2012-RULE_21_2-a-2 |
|
643: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
644: |
Conditional statement 'if' in a function 'mpi_egcd' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
644: |
Reserved name '_rc' used |
MISRAC2012-RULE_21_2-a-2 |
|
644: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
645: |
Conditional statement 'if' in a function 'mpi_egcd' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
645: |
Reserved name '_rc' used |
MISRAC2012-RULE_21_2-a-2 |
|
645: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
646: |
Conditional statement 'if' in a function 'mpi_egcd' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
646: |
Reserved name '_rc' used |
MISRAC2012-RULE_21_2-a-2 |
|
646: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
647: |
Conditional statement 'if' in a function 'mpi_egcd' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
647: |
Reserved name '_rc' used |
MISRAC2012-RULE_21_2-a-2 |
|
647: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
649: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
651: |
Conditional statement 'if' in a function 'mpi_egcd' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
651: |
Reserved name '_rc' used |
MISRAC2012-RULE_21_2-a-2 |
|
651: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
652: |
The operands of a logical '||' in function 'mpi_egcd' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
652: |
The operands of a logical '||' in function 'mpi_egcd' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
653: |
Conditional statement 'if' in a function 'mpi_egcd' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
653: |
Reserved name '_rc' used |
MISRAC2012-RULE_21_2-a-2 |
|
653: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
654: |
Conditional statement 'if' in a function 'mpi_egcd' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
654: |
Reserved name '_rc' used |
MISRAC2012-RULE_21_2-a-2 |
|
654: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
656: |
Conditional statement 'if' in a function 'mpi_egcd' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
656: |
Reserved name '_rc' used |
MISRAC2012-RULE_21_2-a-2 |
|
656: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
657: |
Conditional statement 'if' in a function 'mpi_egcd' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
657: |
Reserved name '_rc' used |
MISRAC2012-RULE_21_2-a-2 |
|
657: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
661: |
Conditional statement 'if' in a function 'mpi_egcd' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
661: |
Reserved name '_rc' used |
MISRAC2012-RULE_21_2-a-2 |
|
661: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
662: |
The operands of a logical '||' in function 'mpi_egcd' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
662: |
The operands of a logical '||' in function 'mpi_egcd' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
663: |
Conditional statement 'if' in a function 'mpi_egcd' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
663: |
Reserved name '_rc' used |
MISRAC2012-RULE_21_2-a-2 |
|
663: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
664: |
Conditional statement 'if' in a function 'mpi_egcd' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
664: |
Reserved name '_rc' used |
MISRAC2012-RULE_21_2-a-2 |
|
664: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
666: |
Conditional statement 'if' in a function 'mpi_egcd' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
666: |
Reserved name '_rc' used |
MISRAC2012-RULE_21_2-a-2 |
|
666: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
667: |
Conditional statement 'if' in a function 'mpi_egcd' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
667: |
Reserved name '_rc' used |
MISRAC2012-RULE_21_2-a-2 |
|
667: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
672: |
Conditional statement 'if' in a function 'mpi_egcd' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
672: |
Reserved name '_rc' used |
MISRAC2012-RULE_21_2-a-2 |
|
672: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
673: |
Conditional statement 'if' in a function 'mpi_egcd' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
673: |
Reserved name '_rc' used |
MISRAC2012-RULE_21_2-a-2 |
|
673: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
674: |
Conditional statement 'if' in a function 'mpi_egcd' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
674: |
Reserved name '_rc' used |
MISRAC2012-RULE_21_2-a-2 |
|
674: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
676: |
Conditional statement 'if' in a function 'mpi_egcd' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
676: |
Reserved name '_rc' used |
MISRAC2012-RULE_21_2-a-2 |
|
676: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
677: |
Conditional statement 'if' in a function 'mpi_egcd' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
677: |
Reserved name '_rc' used |
MISRAC2012-RULE_21_2-a-2 |
|
677: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
678: |
Conditional statement 'if' in a function 'mpi_egcd' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
678: |
Reserved name '_rc' used |
MISRAC2012-RULE_21_2-a-2 |
|
678: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
682: |
Conditional statement 'if' in a function 'mpi_egcd' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
682: |
Reserved name '_rc' used |
MISRAC2012-RULE_21_2-a-2 |
|
682: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
683: |
Conditional statement 'if' in a function 'mpi_egcd' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
683: |
Reserved name '_rc' used |
MISRAC2012-RULE_21_2-a-2 |
|
683: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
684: |
Conditional statement 'if' in a function 'mpi_egcd' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
684: |
Reserved name '_rc' used |
MISRAC2012-RULE_21_2-a-2 |
|
684: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
708: |
Conditional statement 'if' in a function 'TEE_BigIntComputeExtendedGcd' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
711: |
An 'else' statement in a function 'TEE_BigIntComputeExtendedGcd' shall be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
713: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
713: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
713: |
The operands of a logical '&&' in function 'TEE_BigIntComputeExtendedGcd' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
713: |
The operands of a logical '&&' in function 'TEE_BigIntComputeExtendedGcd' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
714: |
Conditional statement 'if' in a function 'TEE_BigIntComputeExtendedGcd' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
714: |
Reserved name '_rc' used |
MISRAC2012-RULE_21_2-a-2 |
|
714: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
718: |
The expression of the 'short' essential type (2 byte) is assigned to an object with a narrower essential type (1 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
719: |
The expression of the 'short' essential type (2 byte) is assigned to an object with a narrower essential type (1 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
720: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
730: |
Conditional statement 'if' in a function 'TEE_BigIntComputeExtendedGcd' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
730: |
Reserved name '_rc' used |
MISRAC2012-RULE_21_2-a-2 |
|
730: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
731: |
Conditional statement 'if' in a function 'TEE_BigIntComputeExtendedGcd' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
731: |
Reserved name '_rc' used |
MISRAC2012-RULE_21_2-a-2 |
|
731: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
732: |
Conditional statement 'if' in a function 'TEE_BigIntComputeExtendedGcd' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
732: |
Reserved name '_rc' used |
MISRAC2012-RULE_21_2-a-2 |
|
732: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
742: |
Conditional statement 'if' in a function 'TEE_BigIntComputeExtendedGcd' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
742: |
Reserved name '_rc' used |
MISRAC2012-RULE_21_2-a-2 |
|
742: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
742: |
The expression of the 'essentially unsigned' type is assigned to an object with the 'essentially signed' type |
MISRAC2012-RULE_10_3-b-2 |
|
743: |
Conditional statement 'if' in a function 'TEE_BigIntComputeExtendedGcd' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
743: |
Reserved name '_rc' used |
MISRAC2012-RULE_21_2-a-2 |
|
743: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
743: |
The expression of the 'essentially unsigned' type is assigned to an object with the 'essentially signed' type |
MISRAC2012-RULE_10_3-b-2 |
|
748: |
Conditional statement 'if' in a function 'TEE_BigIntComputeExtendedGcd' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
748: |
Reserved name '_rc' used |
MISRAC2012-RULE_21_2-a-2 |
|
748: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
748: |
The expression of the 'essentially unsigned' type is assigned to an object with the 'essentially signed' type |
MISRAC2012-RULE_10_3-b-2 |
|
751: |
Conditional statement 'if' in a function 'TEE_BigIntComputeExtendedGcd' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
755: |
Parameter 'ignored' is not used in function 'rng_read' |
MISRAC2012-RULE_2_7-a-4 |
|
755: |
Pass parameter "ignored" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
755: |
The basic numerical type 'char' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
755: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
757: |
Conditional statement 'if' in a function 'rng_read' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
757: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
758: |
Provide only one exit point in 'rng_read' function |
MISRAC2012-RULE_15_5-a-4 |
|
759: |
Provide only one exit point in 'rng_read' function |
MISRAC2012-RULE_15_5-a-4 |
|
763: |
Parameter 'confidenceLevel' is not used in function 'TEE_BigIntIsProbablePrime' |
MISRAC2012-RULE_2_7-a-4 |
|
765: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
774: |
Conditional statement 'if' in a function 'TEE_BigIntIsProbablePrime' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
774: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
775: |
Provide only one exit point in 'TEE_BigIntIsProbablePrime' function |
MISRAC2012-RULE_15_5-a-4 |
|
777: |
Provide only one exit point in 'TEE_BigIntIsProbablePrime' function |
MISRAC2012-RULE_15_5-a-4 |
|
793: |
Parameter 'context' is not used in function 'TEE_BigIntInitFMMContext' |
MISRAC2012-RULE_2_7-a-4 |
|
793: |
Pass parameter "context" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
794: |
Parameter 'len' is not used in function 'TEE_BigIntInitFMMContext' |
MISRAC2012-RULE_2_7-a-4 |
|
795: |
Parameter 'modulus' is not used in function 'TEE_BigIntInitFMMContext' |
MISRAC2012-RULE_2_7-a-4 |
|
801: |
Operands of the '+' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
801: |
Operands of the '+' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
801: |
Operands of the '/' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
804: |
Parameter 'modulusSizeInBits' is not used in function 'TEE_BigIntFMMContextSizeInU32' |
MISRAC2012-RULE_2_7-a-4 |
|
812: |
Parameter 'context' is not used in function 'TEE_BigIntConvertToFMM' |
MISRAC2012-RULE_2_7-a-4 |
|
818: |
Parameter 'n' is not used in function 'TEE_BigIntConvertFromFMM' |
MISRAC2012-RULE_2_7-a-4 |
|
819: |
Parameter 'context' is not used in function 'TEE_BigIntConvertFromFMM' |
MISRAC2012-RULE_2_7-a-4 |
|
827: |
Conditional statement 'if' in a function 'TEE_BigIntConvertFromFMM' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
827: |
Reserved name '_rc' used |
MISRAC2012-RULE_21_2-a-2 |
|
827: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
829: |
Conditional statement 'if' in a function 'TEE_BigIntConvertFromFMM' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
829: |
Reserved name '_rc' used |
MISRAC2012-RULE_21_2-a-2 |
|
829: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
829: |
The expression of the 'essentially unsigned' type is assigned to an object with the 'essentially signed' type |
MISRAC2012-RULE_10_3-b-2 |
|
836: |
Parameter 'context' is not used in function 'TEE_BigIntComputeFMM' |
MISRAC2012-RULE_2_7-a-4 |
|
850: |
Conditional statement 'if' in a function 'TEE_BigIntComputeFMM' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
850: |
Reserved name '_rc' used |
MISRAC2012-RULE_21_2-a-2 |
|
850: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
851: |
Conditional statement 'if' in a function 'TEE_BigIntComputeFMM' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
851: |
Reserved name '_rc' used |
MISRAC2012-RULE_21_2-a-2 |
|
851: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
857: |
Conditional statement 'if' in a function 'TEE_BigIntComputeFMM' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
857: |
Reserved name '_rc' used |
MISRAC2012-RULE_21_2-a-2 |
|
857: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
857: |
The expression of the 'essentially unsigned' type is assigned to an object with the 'essentially signed' type |
MISRAC2012-RULE_10_3-b-2 |
| /optee_os_MISRA/libutee/tee_api_objects.c |
|
12: |
An unused macro declaration 'TEE_USAGE_DEFAULT' has been found |
MISRAC2012-RULE_2_5-a-4 |
|
14: |
Reserved name '__utee_from_attr' used |
MISRAC2012-RULE_21_2-a-2 |
|
21: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
21: |
Operands of the '&' operator have different essential types: 'unsigned int' and 'int' |
MISRAC2012-RULE_10_4-a-2 |
|
21: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
21: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
21: |
The right hand operand of the '&' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
25: |
Pointer to void type should not be converted to arithmetic type 'unsigned long' |
MISRAC2012-RULE_11_6-a-2 |
|
38: |
Declare parameter 'object' as typedef to pointer to const object |
MISRAC2012-RULE_8_13-b-4 |
|
42: |
Pointer to incomplete type 'struct __TEE_ObjectHandle *' should not be cast to type 'unsigned long' |
MISRAC2012-RULE_11_2-a-2 |
|
42: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
44: |
Conditional statement 'if' in a function 'TEE_GetObjectInfo' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
44: |
Operands of the '!=' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
47: |
Integer constant '0xA00000BE' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
57: |
Declare parameter 'object' as typedef to pointer to const object |
MISRAC2012-RULE_8_13-b-4 |
|
61: |
Pointer to incomplete type 'struct __TEE_ObjectHandle *' should not be cast to type 'unsigned long' |
MISRAC2012-RULE_11_2-a-2 |
|
61: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
63: |
Conditional statement 'if' in a function 'TEE_GetObjectInfo1' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
63: |
Operands of the '!=' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
63: |
The operands of a logical '&&' in function 'TEE_GetObjectInfo1' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
64: |
Integer constant '0xF0100001' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
64: |
The operands of a logical '&&' in function 'TEE_GetObjectInfo1' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
65: |
Integer constant '0xF0100003' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
65: |
The operands of a logical '&&' in function 'TEE_GetObjectInfo1' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
82: |
Pointer to incomplete type 'struct __TEE_ObjectHandle *' should not be cast to type 'unsigned long' |
MISRAC2012-RULE_11_2-a-2 |
|
82: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
| +
|
82: |
Value of "res" is never used |
MISRAC2012-RULE_2_2-b-2 |
| |
|
Point where value is declared
Point where value is declared
tee_api_objects.c (82): res = _utee_cryp_obj_get_info((unsigned long)object, &objectInfo);
Point(s) where value is overwritten
Point(s) where value is overwritten
tee_api_objects.c (86): res = TEE_RestrictObjectUsage1(object, objectUsage); |
|
|
83: |
Conditional statement 'if' in a function 'TEE_RestrictObjectUsage' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
83: |
Integer constant '0xA00000BE' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
84: |
'return' statement should be at the end of the 'TEE_RestrictObjectUsage' function |
MISRAC2012-RULE_15_5-a-4 |
|
88: |
Conditional statement 'if' in a function 'TEE_RestrictObjectUsage' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
88: |
Operands of the '!=' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
92: |
Declare parameter 'object' as typedef to pointer to const object |
MISRAC2012-RULE_8_13-b-4 |
|
92: |
The function 'TEE_RestrictObjectUsage1' is referenced only in the translation unit where it is defined |
MISRAC2012-RULE_8_7-a-4 |
|
96: |
Pointer to incomplete type 'struct __TEE_ObjectHandle *' should not be cast to type 'unsigned long' |
MISRAC2012-RULE_11_2-a-2 |
|
96: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
99: |
Conditional statement 'if' in a function 'TEE_RestrictObjectUsage1' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
99: |
Operands of the '!=' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
99: |
The operands of a logical '&&' in function 'TEE_RestrictObjectUsage1' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
100: |
Integer constant '0xF0100001' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
100: |
The operands of a logical '&&' in function 'TEE_RestrictObjectUsage1' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
101: |
Integer constant '0xF0100003' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
101: |
The operands of a logical '&&' in function 'TEE_RestrictObjectUsage1' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
107: |
Declare parameter 'object' as typedef to pointer to const object |
MISRAC2012-RULE_8_13-b-4 |
|
117: |
Pointer to incomplete type 'struct __TEE_ObjectHandle *' should not be cast to type 'unsigned long' |
MISRAC2012-RULE_11_2-a-2 |
|
117: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
118: |
Conditional statement 'if' in a function 'TEE_GetObjectBufferAttribute' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
118: |
Operands of the '!=' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
119: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
122: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
122: |
Operands of the '&' operator have different essential types: 'unsigned int' and 'int' |
MISRAC2012-RULE_10_4-a-2 |
|
122: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
122: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
122: |
The right hand operand of the '&' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
123: |
Integer constant '0xFFFF0006' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
124: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
128: |
Pointer to incomplete type 'struct __TEE_ObjectHandle *' should not be cast to type 'unsigned long' |
MISRAC2012-RULE_11_2-a-2 |
|
128: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
130: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with a narrower essential type (4 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
133: |
Conditional statement 'if' in a function 'TEE_GetObjectBufferAttribute' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
133: |
Operands of the '!=' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
133: |
The operands of a logical '&&' in function 'TEE_GetObjectBufferAttribute' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
134: |
Integer constant '0xFFFF0008' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
134: |
The operands of a logical '&&' in function 'TEE_GetObjectBufferAttribute' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
135: |
Integer constant '0xFFFF0010' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
135: |
The operands of a logical '&&' in function 'TEE_GetObjectBufferAttribute' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
136: |
Integer constant '0xF0100001' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
136: |
The operands of a logical '&&' in function 'TEE_GetObjectBufferAttribute' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
137: |
Integer constant '0xF0100003' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
137: |
The operands of a logical '&&' in function 'TEE_GetObjectBufferAttribute' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
143: |
Declare parameter 'object' as typedef to pointer to const object |
MISRAC2012-RULE_8_13-b-4 |
|
152: |
Conditional statement 'if' in a function 'TEE_GetObjectValueAttribute' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
152: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
154: |
Conditional statement 'if' in a function 'TEE_GetObjectValueAttribute' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
154: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
157: |
Pointer to incomplete type 'struct __TEE_ObjectHandle *' should not be cast to type 'unsigned long' |
MISRAC2012-RULE_11_2-a-2 |
|
157: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
158: |
Conditional statement 'if' in a function 'TEE_GetObjectValueAttribute' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
158: |
Operands of the '!=' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
159: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
162: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
162: |
Operands of the '&' operator have different essential types: 'unsigned int' and 'int' |
MISRAC2012-RULE_10_4-a-2 |
|
162: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
162: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
162: |
The right hand operand of the '&' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
163: |
Integer constant '0xFFFF0006' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
164: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
167: |
Pointer to incomplete type 'struct __TEE_ObjectHandle *' should not be cast to type 'unsigned long' |
MISRAC2012-RULE_11_2-a-2 |
|
167: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
171: |
Conditional statement 'if' in a function 'TEE_GetObjectValueAttribute' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
171: |
Operands of the '!=' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
171: |
The operands of a logical '&&' in function 'TEE_GetObjectValueAttribute' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
172: |
Integer constant '0xFFFF0008' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
172: |
The operands of a logical '&&' in function 'TEE_GetObjectValueAttribute' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
173: |
Integer constant '0xF0100001' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
173: |
The operands of a logical '&&' in function 'TEE_GetObjectValueAttribute' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
174: |
Integer constant '0xF0100003' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
174: |
The operands of a logical '&&' in function 'TEE_GetObjectValueAttribute' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
177: |
Conditional statement 'if' in a function 'TEE_GetObjectValueAttribute' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
180: |
Operands of the '==' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
181: |
Conditional statement 'if' in a function 'TEE_GetObjectValueAttribute' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
181: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
183: |
Conditional statement 'if' in a function 'TEE_GetObjectValueAttribute' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
183: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
190: |
Declare parameter 'object' as typedef to pointer to const object |
MISRAC2012-RULE_8_13-b-4 |
|
194: |
Conditional statement 'if' in a function 'TEE_CloseObject' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
194: |
Expression of pointer type is compared with '0' |
MISRAC2012-RULE_11_9-b-2 |
|
195: |
'return' statement should be at the end of the 'TEE_CloseObject' function |
MISRAC2012-RULE_15_5-a-4 |
|
197: |
Pointer to incomplete type 'struct __TEE_ObjectHandle *' should not be cast to type 'unsigned long' |
MISRAC2012-RULE_11_2-a-2 |
|
197: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
198: |
Conditional statement 'if' in a function 'TEE_CloseObject' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
198: |
Operands of the '!=' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
215: |
Conditional statement 'if' in a function 'TEE_AllocateTransientObject' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
215: |
Operands of the '!=' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
215: |
The operands of a logical '&&' in function 'TEE_AllocateTransientObject' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
216: |
Integer constant '0xFFFF000C' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
216: |
The operands of a logical '&&' in function 'TEE_AllocateTransientObject' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
217: |
Integer constant '0xFFFF000A' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
217: |
The operands of a logical '&&' in function 'TEE_AllocateTransientObject' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
220: |
Conditional statement 'if' in a function 'TEE_AllocateTransientObject' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
220: |
Operands of the '==' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
221: |
The expression of type 'uintptr_t' should not be cast to pointer to incomplete type 'struct __TEE_ObjectHandle *' |
MISRAC2012-RULE_11_2-a-2 |
|
226: |
Declare parameter 'object' as typedef to pointer to const object |
MISRAC2012-RULE_8_13-b-4 |
|
231: |
Conditional statement 'if' in a function 'TEE_FreeTransientObject' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
231: |
Expression of pointer type is compared with '0' |
MISRAC2012-RULE_11_9-b-2 |
|
232: |
'return' statement should be at the end of the 'TEE_FreeTransientObject' function |
MISRAC2012-RULE_15_5-a-4 |
|
234: |
Pointer to incomplete type 'struct __TEE_ObjectHandle *' should not be cast to type 'unsigned long' |
MISRAC2012-RULE_11_2-a-2 |
|
234: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
235: |
Conditional statement 'if' in a function 'TEE_FreeTransientObject' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
235: |
Operands of the '!=' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
238: |
Conditional statement 'if' in a function 'TEE_FreeTransientObject' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
238: |
Operands of the '!=' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
238: |
Operands of the '&' operator have different essential types: 'unsigned int' and 'int' |
MISRAC2012-RULE_10_4-a-2 |
|
238: |
The right hand operand of the '&' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
241: |
Pointer to incomplete type 'struct __TEE_ObjectHandle *' should not be cast to type 'unsigned long' |
MISRAC2012-RULE_11_2-a-2 |
|
241: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
242: |
Conditional statement 'if' in a function 'TEE_FreeTransientObject' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
242: |
Operands of the '!=' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
246: |
Declare parameter 'object' as typedef to pointer to const object |
MISRAC2012-RULE_8_13-b-4 |
|
251: |
Conditional statement 'if' in a function 'TEE_ResetTransientObject' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
251: |
Expression of pointer type is compared with '0' |
MISRAC2012-RULE_11_9-b-2 |
|
252: |
'return' statement should be at the end of the 'TEE_ResetTransientObject' function |
MISRAC2012-RULE_15_5-a-4 |
|
254: |
Pointer to incomplete type 'struct __TEE_ObjectHandle *' should not be cast to type 'unsigned long' |
MISRAC2012-RULE_11_2-a-2 |
|
254: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
255: |
Conditional statement 'if' in a function 'TEE_ResetTransientObject' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
255: |
Operands of the '!=' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
258: |
Conditional statement 'if' in a function 'TEE_ResetTransientObject' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
258: |
Operands of the '!=' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
258: |
Operands of the '&' operator have different essential types: 'unsigned int' and 'int' |
MISRAC2012-RULE_10_4-a-2 |
|
258: |
The right hand operand of the '&' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
261: |
Pointer to incomplete type 'struct __TEE_ObjectHandle *' should not be cast to type 'unsigned long' |
MISRAC2012-RULE_11_2-a-2 |
|
261: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
262: |
Conditional statement 'if' in a function 'TEE_ResetTransientObject' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
262: |
Operands of the '!=' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
266: |
Declare parameter 'object' as typedef to pointer to const object |
MISRAC2012-RULE_8_13-b-4 |
|
272: |
The dimension of array 'ua' is not an integer constant expression |
MISRAC2012-RULE_18_8-a-2 |
|
276: |
Pointer to incomplete type 'struct __TEE_ObjectHandle *' should not be cast to type 'unsigned long' |
MISRAC2012-RULE_11_2-a-2 |
|
276: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
277: |
Conditional statement 'if' in a function 'TEE_PopulateTransientObject' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
277: |
Operands of the '!=' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
281: |
Conditional statement 'if' in a function 'TEE_PopulateTransientObject' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
281: |
Operands of the '!=' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
281: |
Operands of the '&' operator have different essential types: 'unsigned int' and 'int' |
MISRAC2012-RULE_10_4-a-2 |
|
281: |
The right hand operand of the '&' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
285: |
Conditional statement 'if' in a function 'TEE_PopulateTransientObject' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
285: |
Operands of the '!=' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
285: |
Operands of the '&' operator have different essential types: 'unsigned int' and 'int' |
MISRAC2012-RULE_10_4-a-2 |
|
285: |
The right hand operand of the '&' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
289: |
Pointer to incomplete type 'struct __TEE_ObjectHandle *' should not be cast to type 'unsigned long' |
MISRAC2012-RULE_11_2-a-2 |
|
289: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
290: |
Conditional statement 'if' in a function 'TEE_PopulateTransientObject' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
290: |
Integer constant '0xFFFF0006' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
290: |
Operands of the '!=' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
290: |
The operands of a logical '&&' in function 'TEE_PopulateTransientObject' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
290: |
The operands of a logical '&&' in function 'TEE_PopulateTransientObject' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
300: |
Conditional statement 'if' in a function 'TEE_InitRefAttribute' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
300: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
300: |
Operands of the '!=' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
300: |
Operands of the '&' operator have different essential types: 'unsigned int' and 'int' |
MISRAC2012-RULE_10_4-a-2 |
|
300: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
300: |
The right hand operand of the '&' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
303: |
Cast from 'const void *' removes 'const' qualifier |
MISRAC2012-RULE_11_8-a-2 |
|
312: |
Conditional statement 'if' in a function 'TEE_InitValueAttribute' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
312: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
312: |
Operands of the '&' operator have different essential types: 'unsigned int' and 'int' |
MISRAC2012-RULE_10_4-a-2 |
|
312: |
Operands of the '==' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
312: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
312: |
The right hand operand of the '&' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
331: |
Pointer to incomplete type 'struct __TEE_ObjectHandle *' should not be cast to type 'unsigned long' |
MISRAC2012-RULE_11_2-a-2 |
|
331: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
| +
|
331: |
Value of "res" is never used |
MISRAC2012-RULE_2_2-b-2 |
| |
|
Point where value is declared
Point where value is declared
tee_api_objects.c (331): res = _utee_cryp_obj_get_info((unsigned long)srcObject, &src_info);
Point(s) where value is overwritten
Point(s) where value is overwritten
tee_api_objects.c (335): res = TEE_CopyObjectAttributes1(destObject, srcObject); |
|
|
332: |
Conditional statement 'if' in a function 'TEE_CopyObjectAttributes' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
332: |
Integer constant '0xA00000BE' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
333: |
'return' statement should be at the end of the 'TEE_CopyObjectAttributes' function |
MISRAC2012-RULE_15_5-a-4 |
|
336: |
Conditional statement 'if' in a function 'TEE_CopyObjectAttributes' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
336: |
Operands of the '!=' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
340: |
Declare parameter 'destObject' as typedef to pointer to const object |
MISRAC2012-RULE_8_13-b-4 |
|
341: |
Declare parameter 'srcObject' as typedef to pointer to const object |
MISRAC2012-RULE_8_13-b-4 |
|
347: |
Pointer to incomplete type 'struct __TEE_ObjectHandle *' should not be cast to type 'unsigned long' |
MISRAC2012-RULE_11_2-a-2 |
|
347: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
348: |
Conditional statement 'if' in a function 'TEE_CopyObjectAttributes1' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
348: |
Operands of the '!=' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
349: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
351: |
Pointer to incomplete type 'struct __TEE_ObjectHandle *' should not be cast to type 'unsigned long' |
MISRAC2012-RULE_11_2-a-2 |
|
351: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
352: |
Conditional statement 'if' in a function 'TEE_CopyObjectAttributes1' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
352: |
Operands of the '!=' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
353: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
355: |
Conditional statement 'if' in a function 'TEE_CopyObjectAttributes1' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
355: |
Operands of the '&' operator have different essential types: 'unsigned int' and 'int' |
MISRAC2012-RULE_10_4-a-2 |
|
355: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
355: |
The right hand operand of the '&' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
358: |
Conditional statement 'if' in a function 'TEE_CopyObjectAttributes1' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
358: |
Operands of the '&' operator have different essential types: 'unsigned int' and 'int' |
MISRAC2012-RULE_10_4-a-2 |
|
358: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
358: |
The right hand operand of the '&' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
361: |
Conditional statement 'if' in a function 'TEE_CopyObjectAttributes1' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
361: |
Operands of the '&' operator have different essential types: 'unsigned int' and 'int' |
MISRAC2012-RULE_10_4-a-2 |
|
361: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
361: |
The right hand operand of the '&' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
364: |
Pointer to incomplete type 'struct __TEE_ObjectHandle *' should not be cast to type 'unsigned long' |
MISRAC2012-RULE_11_2-a-2 |
|
364: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
365: |
Pointer to incomplete type 'struct __TEE_ObjectHandle *' should not be cast to type 'unsigned long' |
MISRAC2012-RULE_11_2-a-2 |
|
365: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
368: |
Conditional statement 'if' in a function 'TEE_CopyObjectAttributes1' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
368: |
Operands of the '!=' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
368: |
The operands of a logical '&&' in function 'TEE_CopyObjectAttributes1' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
369: |
Integer constant '0xF0100001' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
369: |
The operands of a logical '&&' in function 'TEE_CopyObjectAttributes1' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
370: |
Integer constant '0xF0100003' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
370: |
The operands of a logical '&&' in function 'TEE_CopyObjectAttributes1' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
376: |
Declare parameter 'object' as typedef to pointer to const object |
MISRAC2012-RULE_8_13-b-4 |
|
380: |
The dimension of array 'ua' is not an integer constant expression |
MISRAC2012-RULE_18_8-a-2 |
|
385: |
Pointer to incomplete type 'struct __TEE_ObjectHandle *' should not be cast to type 'unsigned long' |
MISRAC2012-RULE_11_2-a-2 |
|
385: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
388: |
Conditional statement 'if' in a function 'TEE_GenerateKey' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
388: |
Integer constant '0xFFFF0006' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
388: |
Operands of the '!=' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
388: |
The operands of a logical '&&' in function 'TEE_GenerateKey' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
388: |
The operands of a logical '&&' in function 'TEE_GenerateKey' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
403: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
404: |
Integer constant '0xFFFF0008' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
405: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
412: |
Conditional statement 'if' in a function 'TEE_OpenPersistentObject' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
412: |
Operands of the '==' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
413: |
The expression of type 'uintptr_t' should not be cast to pointer to incomplete type 'struct __TEE_ObjectHandle *' |
MISRAC2012-RULE_11_2-a-2 |
|
416: |
Conditional statement 'if' in a function 'TEE_OpenPersistentObject' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
416: |
Operands of the '!=' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
416: |
The operands of a logical '&&' in function 'TEE_OpenPersistentObject' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
417: |
Integer constant '0xFFFF0008' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
417: |
The operands of a logical '&&' in function 'TEE_OpenPersistentObject' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
418: |
Integer constant '0xFFFF0003' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
418: |
The operands of a logical '&&' in function 'TEE_OpenPersistentObject' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
419: |
Integer constant '0xFFFF000C' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
419: |
The operands of a logical '&&' in function 'TEE_OpenPersistentObject' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
420: |
Integer constant '0xF0100001' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
420: |
The operands of a logical '&&' in function 'TEE_OpenPersistentObject' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
421: |
Integer constant '0xF0100003' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
421: |
The operands of a logical '&&' in function 'TEE_OpenPersistentObject' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
424: |
Conditional statement 'if' in a function 'TEE_OpenPersistentObject' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
424: |
Operands of the '!=' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
425: |
'0' is assigned to expression of pointer type |
MISRAC2012-RULE_11_9-b-2 |
|
432: |
Declare parameter 'attributes' as typedef to pointer to const object |
MISRAC2012-RULE_8_13-b-4 |
|
440: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
441: |
Integer constant '0xFFFF0008' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
442: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
448: |
Pointer to incomplete type 'struct __TEE_ObjectHandle *' should not be cast to type 'unsigned long' |
MISRAC2012-RULE_11_2-a-2 |
|
448: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
451: |
Conditional statement 'if' in a function 'TEE_CreatePersistentObject' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
451: |
Operands of the '==' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
452: |
The expression of type 'uintptr_t' should not be cast to pointer to incomplete type 'struct __TEE_ObjectHandle *' |
MISRAC2012-RULE_11_2-a-2 |
|
455: |
Conditional statement 'if' in a function 'TEE_CreatePersistentObject' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
455: |
Operands of the '!=' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
455: |
The operands of a logical '&&' in function 'TEE_CreatePersistentObject' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
456: |
Integer constant '0xFFFF0008' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
456: |
The operands of a logical '&&' in function 'TEE_CreatePersistentObject' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
457: |
Integer constant '0xFFFF0003' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
457: |
The operands of a logical '&&' in function 'TEE_CreatePersistentObject' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
458: |
Integer constant '0xFFFF000C' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
458: |
The operands of a logical '&&' in function 'TEE_CreatePersistentObject' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
459: |
Integer constant '0xFFFF3041' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
459: |
The operands of a logical '&&' in function 'TEE_CreatePersistentObject' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
460: |
Integer constant '0xF0100001' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
460: |
The operands of a logical '&&' in function 'TEE_CreatePersistentObject' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
461: |
Integer constant '0xF0100003' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
461: |
The operands of a logical '&&' in function 'TEE_CreatePersistentObject' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
464: |
Conditional statement 'if' in a function 'TEE_CreatePersistentObject' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
464: |
Operands of the '!=' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
465: |
'0' is assigned to expression of pointer type |
MISRAC2012-RULE_11_9-b-2 |
|
480: |
Conditional statement 'if' in a function 'TEE_CloseAndDeletePersistentObject' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
480: |
Expression of pointer type is compared with '0' |
MISRAC2012-RULE_11_9-b-2 |
|
481: |
'return' statement should be at the end of the 'TEE_CloseAndDeletePersistentObject' function |
MISRAC2012-RULE_15_5-a-4 |
|
485: |
Conditional statement 'if' in a function 'TEE_CloseAndDeletePersistentObject' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
485: |
Operands of the '!=' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
489: |
Declare parameter 'object' as typedef to pointer to const object |
MISRAC2012-RULE_8_13-b-4 |
|
489: |
The function 'TEE_CloseAndDeletePersistentObject1' is referenced only in the translation unit where it is defined |
MISRAC2012-RULE_8_7-a-4 |
|
489: |
The identifier 'TEE_CloseAndDeletePersistentObject1' has the same first 31 characters of the name as the identifier 'TEE_CloseAndDeletePersistentObject'
defined in the 'tee_api.h' file in line '167'
|
MISRAC2012-RULE_5_1-a-2 |
|
493: |
Conditional statement 'if' in a function 'TEE_CloseAndDeletePersistentObject1' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
493: |
Expression of pointer type is compared with '0' |
MISRAC2012-RULE_11_9-b-2 |
|
494: |
Provide only one exit point in 'TEE_CloseAndDeletePersistentObject1' function |
MISRAC2012-RULE_15_5-a-4 |
|
496: |
Pointer to incomplete type 'struct __TEE_ObjectHandle *' should not be cast to type 'unsigned long' |
MISRAC2012-RULE_11_2-a-2 |
|
496: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
498: |
Conditional statement 'if' in a function 'TEE_CloseAndDeletePersistentObject1' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
498: |
Integer constant '0xF0100003' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
498: |
Operands of the '!=' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
498: |
The operands of a logical '&&' in function 'TEE_CloseAndDeletePersistentObject1' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
498: |
The operands of a logical '&&' in function 'TEE_CloseAndDeletePersistentObject1' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
501: |
Provide only one exit point in 'TEE_CloseAndDeletePersistentObject1' function |
MISRAC2012-RULE_15_5-a-4 |
|
505: |
Declare parameter 'object' as typedef to pointer to const object |
MISRAC2012-RULE_8_13-b-4 |
|
511: |
Expression of pointer type is compared with '0' |
MISRAC2012-RULE_11_9-b-2 |
|
512: |
Integer constant '0xFFFF0008' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
513: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
516: |
Pointer to incomplete type 'struct __TEE_ObjectHandle *' should not be cast to type 'unsigned long' |
MISRAC2012-RULE_11_2-a-2 |
|
516: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
520: |
Conditional statement 'if' in a function 'TEE_RenamePersistentObject' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
520: |
Operands of the '!=' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
520: |
The operands of a logical '&&' in function 'TEE_RenamePersistentObject' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
521: |
Integer constant '0xFFFF0003' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
521: |
The operands of a logical '&&' in function 'TEE_RenamePersistentObject' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
522: |
Integer constant '0xF0100001' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
522: |
The operands of a logical '&&' in function 'TEE_RenamePersistentObject' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
523: |
Integer constant '0xF0100003' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
523: |
The operands of a logical '&&' in function 'TEE_RenamePersistentObject' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
540: |
Conditional statement 'if' in a function 'TEE_AllocatePersistentObjectEnumerator' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
540: |
Operands of the '!=' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
543: |
The expression of type 'uintptr_t' should not be cast to pointer to incomplete type 'struct __TEE_ObjectEnumHandle *' |
MISRAC2012-RULE_11_2-a-2 |
|
545: |
Conditional statement 'if' in a function 'TEE_AllocatePersistentObjectEnumerator' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
545: |
Operands of the '!=' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
545: |
The operands of a logical '&&' in function 'TEE_AllocatePersistentObjectEnumerator' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
546: |
Integer constant '0xFFFF0003' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
546: |
The operands of a logical '&&' in function 'TEE_AllocatePersistentObjectEnumerator' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
552: |
Declare parameter 'objectEnumerator' as typedef to pointer to const object |
MISRAC2012-RULE_8_13-b-4 |
|
556: |
Conditional statement 'if' in a function 'TEE_FreePersistentObjectEnumerator' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
556: |
Expression of pointer type is compared with '0' |
MISRAC2012-RULE_11_9-b-2 |
|
557: |
'return' statement should be at the end of the 'TEE_FreePersistentObjectEnumerator' function |
MISRAC2012-RULE_15_5-a-4 |
|
559: |
Pointer to incomplete type 'struct __TEE_ObjectEnumHandle *' should not be cast to type 'unsigned long' |
MISRAC2012-RULE_11_2-a-2 |
|
559: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
561: |
Conditional statement 'if' in a function 'TEE_FreePersistentObjectEnumerator' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
561: |
Operands of the '!=' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
565: |
Declare parameter 'objectEnumerator' as typedef to pointer to const object |
MISRAC2012-RULE_8_13-b-4 |
|
569: |
Conditional statement 'if' in a function 'TEE_ResetPersistentObjectEnumerator' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
569: |
Expression of pointer type is compared with '0' |
MISRAC2012-RULE_11_9-b-2 |
|
570: |
'return' statement should be at the end of the 'TEE_ResetPersistentObjectEnumerator' function |
MISRAC2012-RULE_15_5-a-4 |
|
572: |
Pointer to incomplete type 'struct __TEE_ObjectEnumHandle *' should not be cast to type 'unsigned long' |
MISRAC2012-RULE_11_2-a-2 |
|
572: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
574: |
Conditional statement 'if' in a function 'TEE_ResetPersistentObjectEnumerator' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
574: |
Operands of the '!=' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
579: |
Declare parameter 'objectEnumerator' as typedef to pointer to const object |
MISRAC2012-RULE_8_13-b-4 |
|
584: |
Pointer to incomplete type 'struct __TEE_ObjectEnumHandle *' should not be cast to type 'unsigned long' |
MISRAC2012-RULE_11_2-a-2 |
|
584: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
587: |
Conditional statement 'if' in a function 'TEE_StartPersistentObjectEnumerator' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
587: |
Operands of the '!=' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
587: |
The operands of a logical '&&' in function 'TEE_StartPersistentObjectEnumerator' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
588: |
Integer constant '0xFFFF0008' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
588: |
The operands of a logical '&&' in function 'TEE_StartPersistentObjectEnumerator' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
589: |
Integer constant '0xF0100001' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
589: |
The operands of a logical '&&' in function 'TEE_StartPersistentObjectEnumerator' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
590: |
Integer constant '0xF0100003' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
590: |
The operands of a logical '&&' in function 'TEE_StartPersistentObjectEnumerator' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
596: |
Declare parameter 'objectEnumerator' as typedef to pointer to const object |
MISRAC2012-RULE_8_13-b-4 |
|
605: |
Conditional statement 'if' in a function 'TEE_GetNextPersistentObject' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
605: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
609: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
610: |
Integer constant '0xFFFF0006' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
611: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
614: |
Conditional statement 'if' in a function 'TEE_GetNextPersistentObject' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
614: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
617: |
An 'else' statement in a function 'TEE_GetNextPersistentObject' shall be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
619: |
Pointer to incomplete type 'struct __TEE_ObjectEnumHandle *' should not be cast to type 'unsigned long' |
MISRAC2012-RULE_11_2-a-2 |
|
619: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
621: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with a narrower essential type (4 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
624: |
Conditional statement 'if' in a function 'TEE_GetNextPersistentObject' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
624: |
Operands of the '!=' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
624: |
The operands of a logical '&&' in function 'TEE_GetNextPersistentObject' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
625: |
Integer constant '0xFFFF0008' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
625: |
The operands of a logical '&&' in function 'TEE_GetNextPersistentObject' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
626: |
Integer constant '0xF0100001' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
626: |
The operands of a logical '&&' in function 'TEE_GetNextPersistentObject' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
627: |
Integer constant '0xF0100003' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
627: |
The operands of a logical '&&' in function 'TEE_GetNextPersistentObject' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
635: |
Declare parameter 'object' as typedef to pointer to const object |
MISRAC2012-RULE_8_13-b-4 |
|
641: |
Expression of pointer type is compared with '0' |
MISRAC2012-RULE_11_9-b-2 |
|
642: |
Integer constant '0xFFFF0006' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
643: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
648: |
Pointer to incomplete type 'struct __TEE_ObjectHandle *' should not be cast to type 'unsigned long' |
MISRAC2012-RULE_11_2-a-2 |
|
648: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
650: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with a narrower essential type (4 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
653: |
Conditional statement 'if' in a function 'TEE_ReadObjectData' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
653: |
Operands of the '!=' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
653: |
The operands of a logical '&&' in function 'TEE_ReadObjectData' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
654: |
Integer constant '0xF0100001' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
654: |
The operands of a logical '&&' in function 'TEE_ReadObjectData' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
655: |
Integer constant '0xF0100003' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
655: |
The operands of a logical '&&' in function 'TEE_ReadObjectData' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
661: |
Declare parameter 'object' as typedef to pointer to const object |
MISRAC2012-RULE_8_13-b-4 |
|
666: |
Expression of pointer type is compared with '0' |
MISRAC2012-RULE_11_9-b-2 |
|
667: |
Integer constant '0xFFFF0006' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
668: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
671: |
Integer constant '0xFFFFFFFF' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
672: |
Integer constant '0xFFFF300F' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
673: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
676: |
Pointer to incomplete type 'struct __TEE_ObjectHandle *' should not be cast to type 'unsigned long' |
MISRAC2012-RULE_11_2-a-2 |
|
676: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
679: |
Conditional statement 'if' in a function 'TEE_WriteObjectData' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
679: |
Operands of the '!=' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
679: |
The operands of a logical '&&' in function 'TEE_WriteObjectData' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
680: |
Integer constant '0xFFFF3041' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
680: |
The operands of a logical '&&' in function 'TEE_WriteObjectData' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
681: |
Integer constant '0xFFFF300F' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
681: |
The operands of a logical '&&' in function 'TEE_WriteObjectData' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
682: |
Integer constant '0xF0100001' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
682: |
The operands of a logical '&&' in function 'TEE_WriteObjectData' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
683: |
Integer constant '0xF0100003' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
683: |
The operands of a logical '&&' in function 'TEE_WriteObjectData' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
689: |
Declare parameter 'object' as typedef to pointer to const object |
MISRAC2012-RULE_8_13-b-4 |
|
693: |
Expression of pointer type is compared with '0' |
MISRAC2012-RULE_11_9-b-2 |
|
694: |
Integer constant '0xFFFF0006' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
695: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
698: |
Pointer to incomplete type 'struct __TEE_ObjectHandle *' should not be cast to type 'unsigned long' |
MISRAC2012-RULE_11_2-a-2 |
|
698: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
701: |
Conditional statement 'if' in a function 'TEE_TruncateObjectData' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
701: |
Operands of the '!=' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
701: |
The operands of a logical '&&' in function 'TEE_TruncateObjectData' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
702: |
Integer constant '0xFFFF3041' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
702: |
The operands of a logical '&&' in function 'TEE_TruncateObjectData' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
703: |
Integer constant '0xF0100001' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
703: |
The operands of a logical '&&' in function 'TEE_TruncateObjectData' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
704: |
Integer constant '0xF0100003' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
704: |
The operands of a logical '&&' in function 'TEE_TruncateObjectData' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
710: |
Declare parameter 'object' as typedef to pointer to const object |
MISRAC2012-RULE_8_13-b-4 |
|
716: |
Expression of pointer type is compared with '0' |
MISRAC2012-RULE_11_9-b-2 |
|
717: |
Integer constant '0xFFFF0006' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
718: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
721: |
Pointer to incomplete type 'struct __TEE_ObjectHandle *' should not be cast to type 'unsigned long' |
MISRAC2012-RULE_11_2-a-2 |
|
721: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
722: |
Conditional statement 'if' in a function 'TEE_SeekObjectData' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
722: |
Operands of the '!=' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
723: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
727: |
Integer constant '0xFFFFFFFF' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
727: |
The operands of a logical '&&' in function 'TEE_SeekObjectData' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
727: |
The operands of a logical '&&' in function 'TEE_SeekObjectData' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
728: |
Integer constant '0xFFFF300F' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
729: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
733: |
The operands of a logical '&&' in function 'TEE_SeekObjectData' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
734: |
The operands of a logical '||' in function 'TEE_SeekObjectData' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
734: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
735: |
Integer constant '0xFFFFFFFF' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
736: |
The operands of a logical '||' in function 'TEE_SeekObjectData' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
736: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
738: |
Integer constant '0xFFFF300F' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
739: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
743: |
The operands of a logical '&&' in function 'TEE_SeekObjectData' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
744: |
Integer constant '0xFFFFFFFF' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
744: |
The operands of a logical '||' in function 'TEE_SeekObjectData' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
744: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
745: |
The operands of a logical '||' in function 'TEE_SeekObjectData' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
745: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
746: |
Integer constant '0xFFFF300F' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
747: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
750: |
Every non empty default clause in a switch statement shall be terminated with a break statement |
MISRAC2012-RULE_16_1-d-2 |
|
750: |
Every non empty default clause in a switch statement shall be terminated with a break statement |
MISRAC2012-RULE_16_3-b-2 |
|
751: |
Integer constant '0xFFFF0008' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
752: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
755: |
Pointer to incomplete type 'struct __TEE_ObjectHandle *' should not be cast to type 'unsigned long' |
MISRAC2012-RULE_11_2-a-2 |
|
755: |
The argument number '3' ('essentially Enum' type) is passed to the function '_utee_storage_obj_seek' as a parameter with the
'essentially unsigned' type
|
MISRAC2012-RULE_10_3-b-2 |
|
755: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
758: |
Conditional statement 'if' in a function 'TEE_SeekObjectData' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
758: |
Operands of the '!=' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
758: |
The operands of a logical '&&' in function 'TEE_SeekObjectData' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
759: |
Integer constant '0xFFFF300F' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
759: |
The operands of a logical '&&' in function 'TEE_SeekObjectData' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
760: |
Integer constant '0xF0100001' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
760: |
The operands of a logical '&&' in function 'TEE_SeekObjectData' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
761: |
Integer constant '0xF0100003' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
761: |
The operands of a logical '&&' in function 'TEE_SeekObjectData' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
| /optee_os_MISRA/libutee/tee_api_operations.c |
|
18: |
Reserved name '__TEE_OperationHandle' used |
MISRAC2012-RULE_21_2-a-2 |
|
32: |
Value 63 is out of acceptable range: 'lower than 30' |
METRIC.CC-3 |
|
37: |
Variable 'op' of pointer type is initialized with '0' |
MISRAC2012-RULE_11_9-b-2 |
|
44: |
Conditional statement 'if' in a function 'TEE_AllocateOperation' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
44: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
47: |
Conditional statement 'if' in a function 'TEE_AllocateOperation' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
47: |
Operands of the '==' operator have different essential types: 'unsigned int' and 'int' |
MISRAC2012-RULE_10_4-a-2 |
|
47: |
Operands of the '==' operator have different essential types: 'unsigned int' and 'int' |
MISRAC2012-RULE_10_4-a-2 |
|
47: |
The operands of a logical '||' in function 'TEE_AllocateOperation' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
47: |
The operands of a logical '||' in function 'TEE_AllocateOperation' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
53: |
Conditional statement 'if' in a function 'TEE_AllocateOperation' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
53: |
Operands of the '<' operator have different essential types: 'unsigned int' and 'short' |
MISRAC2012-RULE_10_4-a-2 |
|
54: |
Integer constant '0xFFFF000A' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
54: |
Provide only one exit point in 'TEE_AllocateOperation' function |
MISRAC2012-RULE_15_5-a-4 |
|
55: |
Conditional statement 'if' in a function 'TEE_AllocateOperation' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
55: |
Operands of the '>' operator have different essential types: 'unsigned int' and 'short' |
MISRAC2012-RULE_10_4-a-2 |
|
56: |
Integer constant '0xFFFF000A' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
56: |
Provide only one exit point in 'TEE_AllocateOperation' function |
MISRAC2012-RULE_15_5-a-4 |
|
57: |
Conditional statement 'if' in a function 'TEE_AllocateOperation' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
57: |
Operands of the '!=' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
57: |
Operands of the '%' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
57: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
58: |
Integer constant '0xFFFF000A' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
58: |
Provide only one exit point in 'TEE_AllocateOperation' function |
MISRAC2012-RULE_15_5-a-4 |
|
62: |
Conditional statement 'if' in a function 'TEE_AllocateOperation' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
62: |
Operands of the '!=' operator have different essential types: 'unsigned int' and 'short' |
MISRAC2012-RULE_10_4-a-2 |
|
63: |
Integer constant '0xFFFF000A' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
63: |
Provide only one exit point in 'TEE_AllocateOperation' function |
MISRAC2012-RULE_15_5-a-4 |
|
67: |
Conditional statement 'if' in a function 'TEE_AllocateOperation' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
67: |
Operands of the '!=' operator have different essential types: 'unsigned int' and 'short' |
MISRAC2012-RULE_10_4-a-2 |
|
67: |
Operands of the '!=' operator have different essential types: 'unsigned int' and 'short' |
MISRAC2012-RULE_10_4-a-2 |
|
67: |
The operands of a logical '&&' in function 'TEE_AllocateOperation' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
67: |
The operands of a logical '&&' in function 'TEE_AllocateOperation' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
68: |
Integer constant '0xFFFF000A' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
68: |
Provide only one exit point in 'TEE_AllocateOperation' function |
MISRAC2012-RULE_15_5-a-4 |
|
72: |
Integer constant '0x80001042' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
73: |
Conditional statement 'if' in a function 'TEE_AllocateOperation' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
73: |
Operands of the '!=' operator have different essential types: 'unsigned int' and 'short' |
MISRAC2012-RULE_10_4-a-2 |
|
74: |
Integer constant '0xFFFF000A' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
74: |
Provide only one exit point in 'TEE_AllocateOperation' function |
MISRAC2012-RULE_15_5-a-4 |
|
78: |
Integer constant '0x80002042' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
79: |
Conditional statement 'if' in a function 'TEE_AllocateOperation' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
79: |
Operands of the '!=' operator have different essential types: 'unsigned int' and 'short' |
MISRAC2012-RULE_10_4-a-2 |
|
80: |
Integer constant '0xFFFF000A' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
80: |
Provide only one exit point in 'TEE_AllocateOperation' function |
MISRAC2012-RULE_15_5-a-4 |
|
84: |
Integer constant '0x80003042' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
85: |
Integer constant '0x80000045' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
87: |
Conditional statement 'if' in a function 'TEE_AllocateOperation' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
87: |
Operands of the '!=' operator have different essential types: 'unsigned int' and 'short' |
MISRAC2012-RULE_10_4-a-2 |
|
88: |
Integer constant '0xFFFF000A' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
88: |
Provide only one exit point in 'TEE_AllocateOperation' function |
MISRAC2012-RULE_15_5-a-4 |
|
93: |
Conditional statement 'if' in a function 'TEE_AllocateOperation' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
93: |
Operands of the '!=' operator have different essential types: 'unsigned int' and 'short' |
MISRAC2012-RULE_10_4-a-2 |
|
94: |
Integer constant '0xFFFF000A' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
94: |
Provide only one exit point in 'TEE_AllocateOperation' function |
MISRAC2012-RULE_15_5-a-4 |
|
98: |
Integer constant '0x80004042' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
99: |
Conditional statement 'if' in a function 'TEE_AllocateOperation' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
99: |
Operands of the '!=' operator have different essential types: 'unsigned int' and 'short' |
MISRAC2012-RULE_10_4-a-2 |
|
100: |
Integer constant '0xFFFF000A' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
100: |
Provide only one exit point in 'TEE_AllocateOperation' function |
MISRAC2012-RULE_15_5-a-4 |
|
104: |
Integer constant '0x80005042' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
105: |
Conditional statement 'if' in a function 'TEE_AllocateOperation' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
105: |
Operands of the '!=' operator have different essential types: 'unsigned int' and 'short' |
MISRAC2012-RULE_10_4-a-2 |
|
106: |
Integer constant '0xFFFF000A' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
106: |
Provide only one exit point in 'TEE_AllocateOperation' function |
MISRAC2012-RULE_15_5-a-4 |
|
110: |
Missing statement or comment before terminating 'break' |
MISRAC2012-RULE_16_4-b-2 |
|
110: |
Missing statement or comment before terminating 'break' |
MISRAC2012-RULE_16_1-f-2 |
|
116: |
Every non empty case clause in a switch statement shall be terminated with a break statement |
MISRAC2012-RULE_16_1-c-2 |
|
116: |
Every non empty case clause in a switch statement shall be terminated with a break statement |
MISRAC2012-RULE_16_3-a-2 |
|
128: |
Every non empty case clause in a switch statement shall be terminated with a break statement |
MISRAC2012-RULE_16_1-c-2 |
|
128: |
Every non empty case clause in a switch statement shall be terminated with a break statement |
MISRAC2012-RULE_16_3-a-2 |
|
129: |
Conditional statement 'if' in a function 'TEE_AllocateOperation' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
129: |
Operands of the '==' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
131: |
Conditional statement 'if' in a function 'TEE_AllocateOperation' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
131: |
Operands of the '==' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
134: |
An 'else' statement in a function 'TEE_AllocateOperation' shall be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
138: |
Conditional statement 'if' in a function 'TEE_AllocateOperation' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
138: |
Operands of the '==' operator have different essential types: 'unsigned int' and 'TEE_OperationMode' |
MISRAC2012-RULE_10_4-a-2 |
|
140: |
Conditional statement 'if' in a function 'TEE_AllocateOperation' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
140: |
Operands of the '==' operator have different essential types: 'unsigned int' and 'TEE_OperationMode' |
MISRAC2012-RULE_10_4-a-2 |
|
143: |
An 'else' statement in a function 'TEE_AllocateOperation' shall be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
143: |
Integer constant '0xFFFF000A' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
143: |
Provide only one exit point in 'TEE_AllocateOperation' function |
MISRAC2012-RULE_15_5-a-4 |
|
147: |
Integer constant '0xF0000830' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
169: |
Operands of the '==' operator have different essential types: 'unsigned int' and 'TEE_OperationMode' |
MISRAC2012-RULE_10_4-a-2 |
|
172: |
Operands of the '==' operator have different essential types: 'unsigned int' and 'TEE_OperationMode' |
MISRAC2012-RULE_10_4-a-2 |
|
175: |
Integer constant '0xFFFF000A' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
175: |
Provide only one exit point in 'TEE_AllocateOperation' function |
MISRAC2012-RULE_15_5-a-4 |
|
185: |
Integer constant '0x80000045' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
186: |
Operands of the '==' operator have different essential types: 'unsigned int' and 'TEE_OperationMode' |
MISRAC2012-RULE_10_4-a-2 |
|
188: |
Operands of the '==' operator have different essential types: 'unsigned int' and 'TEE_OperationMode' |
MISRAC2012-RULE_10_4-a-2 |
|
192: |
Integer constant '0xFFFF000A' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
192: |
Provide only one exit point in 'TEE_AllocateOperation' function |
MISRAC2012-RULE_15_5-a-4 |
|
197: |
Operands of the '==' operator have different essential types: 'unsigned int' and 'TEE_OperationMode' |
MISRAC2012-RULE_10_4-a-2 |
|
198: |
The expression of the 'essentially signed' type is assigned to an object with the 'essentially unsigned' type |
MISRAC2012-RULE_10_3-b-2 |
|
198: |
The left hand operand of the '|' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
198: |
The right hand operand of the '|' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
199: |
Operands of the '==' operator have different essential types: 'unsigned int' and 'TEE_OperationMode' |
MISRAC2012-RULE_10_4-a-2 |
|
201: |
The expression of the 'essentially signed' type is assigned to an object with the 'essentially unsigned' type |
MISRAC2012-RULE_10_3-b-2 |
|
201: |
The left hand operand of the '|' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
201: |
The right hand operand of the '|' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
203: |
Integer constant '0xFFFF000A' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
203: |
Provide only one exit point in 'TEE_AllocateOperation' function |
MISRAC2012-RULE_15_5-a-4 |
|
207: |
Integer constant '0x80000032' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
208: |
Integer constant '0x80001042' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
209: |
Integer constant '0x80002042' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
210: |
Integer constant '0x80003042' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
211: |
Integer constant '0x80004042' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
212: |
Integer constant '0x80005042' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
213: |
Integer constant '0x800010C0' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
214: |
Integer constant '0x800020C0' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
215: |
Integer constant '0x800030C0' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
216: |
Integer constant '0x800040C0' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
217: |
Integer constant '0x800050C0' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
218: |
Integer constant '0x800060C0' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
219: |
Integer constant '0x800020C1' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
220: |
Integer constant '0x800030C1' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
221: |
Integer constant '0x800040C1' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
222: |
Integer constant '0x800050C1' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
223: |
Integer constant '0x800060C1' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
224: |
Integer constant '0x800020C2' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
226: |
Conditional statement 'if' in a function 'TEE_AllocateOperation' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
226: |
Operands of the '!=' operator have different essential types: 'unsigned int' and 'TEE_OperationMode' |
MISRAC2012-RULE_10_4-a-2 |
|
227: |
Integer constant '0xFFFF000A' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
227: |
Provide only one exit point in 'TEE_AllocateOperation' function |
MISRAC2012-RULE_15_5-a-4 |
|
239: |
Conditional statement 'if' in a function 'TEE_AllocateOperation' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
239: |
Operands of the '!=' operator have different essential types: 'unsigned int' and 'TEE_OperationMode' |
MISRAC2012-RULE_10_4-a-2 |
|
240: |
Integer constant '0xFFFF000A' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
240: |
Provide only one exit point in 'TEE_AllocateOperation' function |
MISRAC2012-RULE_15_5-a-4 |
|
241: |
Conditional statement 'if' in a function 'TEE_AllocateOperation' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
241: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
242: |
Integer constant '0xFFFF000A' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
242: |
Provide only one exit point in 'TEE_AllocateOperation' function |
MISRAC2012-RULE_15_5-a-4 |
|
244: |
Operands of the '|=' operator have different essential types: 'unsigned int' and 'int' |
MISRAC2012-RULE_10_4-a-2 |
|
244: |
The right hand operand of the '|=' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
255: |
Integer constant '0xF0000613' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
263: |
Conditional statement 'if' in a function 'TEE_AllocateOperation' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
263: |
Operands of the '!=' operator have different essential types: 'unsigned int' and 'TEE_OperationMode' |
MISRAC2012-RULE_10_4-a-2 |
|
264: |
Integer constant '0xFFFF000A' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
264: |
Provide only one exit point in 'TEE_AllocateOperation' function |
MISRAC2012-RULE_15_5-a-4 |
|
269: |
Integer constant '0xFFFF000A' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
269: |
Provide only one exit point in 'TEE_AllocateOperation' function |
MISRAC2012-RULE_15_5-a-4 |
|
272: |
Pointer to void type should not be converted to pointer to object type 'struct __TEE_OperationHandle *' |
MISRAC2012-RULE_11_5-a-4 |
|
272: |
The argument number '1' (8 byte essential type) is passed to the function 'TEE_Malloc' as a parameter with a narrower essential
type (4 byte)
|
MISRAC2012-RULE_10_3-a-2 |
|
273: |
Conditional statement 'if' in a function 'TEE_AllocateOperation' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
273: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
274: |
Integer constant '0xFFFF000C' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
274: |
Provide only one exit point in 'TEE_AllocateOperation' function |
MISRAC2012-RULE_15_5-a-4 |
| +
|
277: |
The return value of the "__tee_alg_get_class" method is not checked. It is checked at least 80% times in the testing scope |
MISRAC2012-DIR_4_7-a-2 |
| |
|
Example path
tee_api_operations.c (1780): if (TEE_ALG_GET_CLASS(operation->info.algorithm) != *** Method call *** Example of checking
Violation path
Method call
Point by which returned value should be checked
tee_api_operations.c (277): op->info.operationClass = TEE_ALG_GET_CLASS(algorithm); |
|
|
279: |
Conditional statement 'if' in a function 'TEE_AllocateOperation' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
279: |
Integer constant '0xF0000830' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
283: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with a narrower essential type (4 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
288: |
Operands of the '>' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
291: |
Conditional statement 'if' in a function 'TEE_AllocateOperation' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
292: |
Operands of the '*=' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
294: |
Pointer to void type should not be converted to pointer to object type 'uint8_t *' |
MISRAC2012-RULE_11_5-a-4 |
|
294: |
The argument number '1' (8 byte essential type) is passed to the function 'TEE_Malloc' as a parameter with a narrower essential
type (4 byte)
|
MISRAC2012-RULE_10_3-a-2 |
|
295: |
Integer constant '0x80000000' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
297: |
Integer constant '0xFFFF000C' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
298: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
304: |
Operands of the '!=' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
313: |
Conditional statement 'if' in a function 'TEE_AllocateOperation' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
313: |
Operands of the '&' operator have different essential types: 'unsigned int' and 'int' |
MISRAC2012-RULE_10_4-a-2 |
|
313: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
313: |
The right hand operand of the '&' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
314: |
Operands of the '/=' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
317: |
Conditional statement 'if' in a function 'TEE_AllocateOperation' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
317: |
Operands of the '!=' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
318: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
320: |
Operands of the '&' operator have different essential types: 'unsigned int' and 'int' |
MISRAC2012-RULE_10_4-a-2 |
|
320: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
320: |
The right hand operand of the '&' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
323: |
Conditional statement 'if' in a function 'TEE_AllocateOperation' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
323: |
Operands of the '!=' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
324: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
328: |
Pointer to incomplete type 'struct __TEE_ObjectHandle *' should not be cast to type 'unsigned long' |
MISRAC2012-RULE_11_2-a-2 |
|
328: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
329: |
Pointer to incomplete type 'struct __TEE_ObjectHandle *' should not be cast to type 'unsigned long' |
MISRAC2012-RULE_11_2-a-2 |
|
329: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
330: |
Conditional statement 'if' in a function 'TEE_AllocateOperation' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
330: |
Operands of the '!=' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
331: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
338: |
Operands of the '==' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
340: |
Conditional statement 'if' in a function 'TEE_AllocateOperation' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
340: |
Operands of the '!=' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
341: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
343: |
Operands of the '|=' operator have different essential types: 'unsigned int' and 'int' |
MISRAC2012-RULE_10_4-a-2 |
|
343: |
The right hand operand of the '|=' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
351: |
Operands of the '!=' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
352: |
Conditional statement 'if' in a function 'TEE_AllocateOperation' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
352: |
Integer constant '0xFFFF000C' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
352: |
The operands of a logical '&&' in function 'TEE_AllocateOperation' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
353: |
Integer constant '0xFFFF000A' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
353: |
The operands of a logical '&&' in function 'TEE_AllocateOperation' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
| +
|
355: |
"op" is checked for null after being dereferenced |
MISRAC2012-DIR_4_1-f-2 |
| |
|
Point of dereferencing
tee_api_operations.c (346): op->operationState = TEE_OPERATION_STATE_INITIAL; *** Important values: op != null
tee_api_operations.c (348): *operation = op;
tee_api_operations.c (350): out:
tee_api_operations.c (351): if (res != TEE_SUCCESS) { *** Condition evaluation: (res != 0) (assuming true)
tee_api_operations.c (352): if (res != TEE_ERROR_OUT_OF_MEMORY && *** Condition evaluation: (res != 4294901772) (assuming false) *** Condition evaluation: res != TEE_ERROR_OUT_OF_MEMORY && res != TEE_ERROR_ (false)
Point of checking for nullity
tee_api_operations.c (355): if (op) { *** Important values: op != null |
|
|
355: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
356: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
367: |
Provide only one exit point in 'TEE_AllocateOperation' function |
MISRAC2012-RULE_15_5-a-4 |
|
370: |
The function 'TEE_FreeOperation' is referenced only in the translation unit where it is defined |
MISRAC2012-RULE_8_7-a-4 |
|
374: |
Conditional statement 'if' in a function 'TEE_FreeOperation' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
374: |
Expression of pointer type is compared with '0' |
MISRAC2012-RULE_11_9-b-2 |
| +
|
382: |
"operation" may possibly be null |
MISRAC2012-DIR_4_1-b-2 |
| |
|
tee_api_operations.c (372): TEE_Result res;
Source of null value
tee_api_operations.c (374): if (operation == TEE_HANDLE_NULL) *** Null value carrier: operation *** Condition evaluation: (operation == 0) (assuming true)
tee_api_operations.c (375): TEE_Panic(0);
tee_api_panic.c (24): _utee_panic(panicCode);
Null pointer dereferencing point
tee_api_operations.c (382): res = _utee_cryp_state_free(operation->state); *** Null value carrier: operation |
|
|
383: |
Conditional statement 'if' in a function 'TEE_FreeOperation' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
383: |
Operands of the '!=' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
390: |
Declare parameter 'operation' as typedef to pointer to const object |
MISRAC2012-RULE_8_13-b-4 |
|
393: |
Conditional statement 'if' in a function 'TEE_GetOperationInfo' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
393: |
Expression of pointer type is compared with '0' |
MISRAC2012-RULE_11_9-b-2 |
|
399: |
Operands of the '&' operator have different essential types: 'unsigned int' and 'int' |
MISRAC2012-RULE_10_4-a-2 |
|
399: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
399: |
The right hand operand of the '&' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
405: |
Identifiers given in declaration of 'TEE_GetOperationInfoMultiple' function (file: 'tee_api.h', line: '214') are: 'operation,
operationInfoMultiple, operationSize' not: 'op, op_info, size'
|
MISRAC2012-RULE_8_3-b-2 |
|
414: |
Expression of pointer type is compared with '0' |
MISRAC2012-RULE_11_9-b-2 |
|
415: |
Integer constant '0xFFFF0006' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
416: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
422: |
Integer constant '0xFFFF0006' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
423: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
428: |
Unused function's "TEE_MemFill" return value |
MISRAC2012-RULE_17_7-a-2 |
|
431: |
Operands of the '&' operator have different essential types: 'unsigned int' and 'int' |
MISRAC2012-RULE_10_4-a-2 |
|
431: |
The expression of the 'essentially unsigned' type is assigned to an object with the 'essentially Boolean' type |
MISRAC2012-RULE_10_3-b-2 |
|
431: |
The right hand operand of the '&' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
433: |
Operands of the '==' operator have different essential types: 'unsigned int' and 'TEE_OperationMode' |
MISRAC2012-RULE_10_4-a-2 |
|
436: |
Operands of the '<' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
437: |
Integer constant '0xFFFF0010' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
438: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
443: |
Conditional statement 'if' in a function 'TEE_GetOperationInfoMultiple' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
443: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
444: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
451: |
Operands of the '<' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
452: |
Integer constant '0xFFFF0010' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
453: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
458: |
Conditional statement 'if' in a function 'TEE_GetOperationInfoMultiple' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
458: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
459: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
467: |
Conditional statement 'if' in a function 'TEE_GetOperationInfoMultiple' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
467: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
468: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
486: |
Conditional statement 'if' in a function 'TEE_GetOperationInfoMultiple' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
486: |
Operands of the '!=' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
486: |
The operands of a logical '&&' in function 'TEE_GetOperationInfoMultiple' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
487: |
Integer constant '0xFFFF0010' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
487: |
The operands of a logical '&&' in function 'TEE_GetOperationInfoMultiple' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
493: |
The function 'TEE_ResetOperation' is referenced only in the translation unit where it is defined |
MISRAC2012-RULE_8_7-a-4 |
|
497: |
Conditional statement 'if' in a function 'TEE_ResetOperation' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
497: |
Expression of pointer type is compared with '0' |
MISRAC2012-RULE_11_9-b-2 |
| +
|
500: |
"operation" may possibly be null |
MISRAC2012-DIR_4_1-b-2 |
| |
|
tee_api_operations.c (495): TEE_Result res;
Source of null value
tee_api_operations.c (497): if (operation == TEE_HANDLE_NULL) *** Null value carrier: operation *** Condition evaluation: (operation == 0) (assuming true)
tee_api_operations.c (498): TEE_Panic(0);
tee_api_panic.c (24): _utee_panic(panicCode);
Null pointer dereferencing point
tee_api_operations.c (500): if (!(operation->info.handleState & TEE_HANDLE_FLAG_KEY_SET)) *** Null value carrier: operation |
|
|
500: |
Conditional statement 'if' in a function 'TEE_ResetOperation' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
500: |
Operands of the '&' operator have different essential types: 'unsigned int' and 'int' |
MISRAC2012-RULE_10_4-a-2 |
|
500: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
500: |
The right hand operand of the '&' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
505: |
Operands of the '==' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
507: |
Conditional statement 'if' in a function 'TEE_ResetOperation' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
507: |
Operands of the '!=' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
509: |
Operands of the '|=' operator have different essential types: 'unsigned int' and 'int' |
MISRAC2012-RULE_10_4-a-2 |
|
509: |
The right hand operand of the '|=' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
511: |
Operands of the '&=' operator have different essential types: 'unsigned int' and 'int' |
MISRAC2012-RULE_10_4-a-2 |
|
511: |
The operand of the '~' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
511: |
The right hand operand of the '&=' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
515: |
The function 'TEE_SetOperationKey' is referenced only in the translation unit where it is defined |
MISRAC2012-RULE_8_7-a-4 |
|
522: |
Expression of pointer type is compared with '0' |
MISRAC2012-RULE_11_9-b-2 |
|
523: |
Integer constant '0xFFFF0006' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
524: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
527: |
Operands of the '!=' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
528: |
Integer constant '0xFFFF0006' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
529: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
532: |
Expression of pointer type is compared with '0' |
MISRAC2012-RULE_11_9-b-2 |
|
535: |
Operands of the '&=' operator have different essential types: 'unsigned int' and 'int' |
MISRAC2012-RULE_10_4-a-2 |
|
535: |
The operand of the '~' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
535: |
The right hand operand of the '&=' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
536: |
Provide only one exit point in 'TEE_SetOperationKey' function |
MISRAC2012-RULE_15_5-a-4 |
|
540: |
Operands of the '==' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
541: |
Integer constant '0xFFFF0006' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
542: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
546: |
Operands of the '!=' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
546: |
Operands of the '&' operator have different essential types: 'unsigned int' and 'int' |
MISRAC2012-RULE_10_4-a-2 |
|
546: |
The right hand operand of the '&' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
548: |
Integer constant '0xFFFF0006' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
549: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
554: |
Conditional statement 'if' in a function 'TEE_SetOperationKey' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
554: |
Operands of the '!=' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
555: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
560: |
Integer constant '0xFFFF0006' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
561: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
565: |
Integer constant '0xFFFF0006' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
566: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
572: |
Operands of the '&=' operator have different essential types: 'unsigned int' and 'int' |
MISRAC2012-RULE_10_4-a-2 |
|
572: |
The operand of the '~' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
572: |
The right hand operand of the '&=' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
575: |
Conditional statement 'if' in a function 'TEE_SetOperationKey' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
575: |
Operands of the '!=' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
576: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
578: |
Operands of the '|=' operator have different essential types: 'unsigned int' and 'int' |
MISRAC2012-RULE_10_4-a-2 |
|
578: |
The right hand operand of the '|=' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
583: |
Conditional statement 'if' in a function 'TEE_SetOperationKey' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
583: |
Operands of the '!=' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
583: |
The operands of a logical '&&' in function 'TEE_SetOperationKey' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
584: |
Integer constant '0xF0100001' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
584: |
The operands of a logical '&&' in function 'TEE_SetOperationKey' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
585: |
Integer constant '0xF0100003' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
585: |
The operands of a logical '&&' in function 'TEE_SetOperationKey' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
588: |
Provide only one exit point in 'TEE_SetOperationKey' function |
MISRAC2012-RULE_15_5-a-4 |
|
591: |
The function 'TEE_SetOperationKey2' is referenced only in the translation unit where it is defined |
MISRAC2012-RULE_8_7-a-4 |
|
599: |
Expression of pointer type is compared with '0' |
MISRAC2012-RULE_11_9-b-2 |
|
600: |
Integer constant '0xFFFF0006' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
601: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
604: |
Operands of the '!=' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
605: |
Integer constant '0xFFFF0006' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
606: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
613: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
613: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
613: |
The operands of a logical '&&' in function 'TEE_SetOperationKey2' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
613: |
The operands of a logical '&&' in function 'TEE_SetOperationKey2' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
617: |
Operands of the '&=' operator have different essential types: 'unsigned int' and 'int' |
MISRAC2012-RULE_10_4-a-2 |
|
617: |
The operand of the '~' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
617: |
The right hand operand of the '&=' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
618: |
Provide only one exit point in 'TEE_SetOperationKey2' function |
MISRAC2012-RULE_15_5-a-4 |
|
619: |
Provide 'else' after the last 'else-if' construct |
MISRAC2012-RULE_15_7-a-2 |
|
619: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
619: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
619: |
The operands of a logical '||' in function 'TEE_SetOperationKey2' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
619: |
The operands of a logical '||' in function 'TEE_SetOperationKey2' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
621: |
Integer constant '0xFFFF0006' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
622: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
626: |
Operands of the '==' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
627: |
Integer constant '0xFFFF0006' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
628: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
632: |
Operands of the '&' operator have different essential types: 'unsigned int' and 'int' |
MISRAC2012-RULE_10_4-a-2 |
|
632: |
Operands of the '==' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
632: |
The right hand operand of the '&' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
634: |
Integer constant '0xFFFF0006' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
635: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
640: |
Conditional statement 'if' in a function 'TEE_SetOperationKey2' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
640: |
Operands of the '!=' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
641: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
646: |
Integer constant '0xFFFF0006' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
647: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
652: |
Operands of the '!=' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
653: |
Conditional statement 'if' in a function 'TEE_SetOperationKey2' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
653: |
Integer constant '0xF0100001' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
654: |
Integer constant '0xF0100002' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
655: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
661: |
Integer constant '0xFFFF0006' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
662: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
670: |
Integer constant '0xFFFF0006' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
671: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
676: |
Integer constant '0xFFFF0006' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
677: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
688: |
Operands of the '&=' operator have different essential types: 'unsigned int' and 'int' |
MISRAC2012-RULE_10_4-a-2 |
|
688: |
The operand of the '~' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
688: |
The right hand operand of the '&=' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
691: |
Conditional statement 'if' in a function 'TEE_SetOperationKey2' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
691: |
Operands of the '!=' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
692: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
694: |
Operands of the '!=' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
695: |
Conditional statement 'if' in a function 'TEE_SetOperationKey2' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
695: |
Integer constant '0xF0100001' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
696: |
Integer constant '0xF0100002' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
697: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
700: |
Operands of the '|=' operator have different essential types: 'unsigned int' and 'int' |
MISRAC2012-RULE_10_4-a-2 |
|
700: |
The right hand operand of the '|=' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
705: |
Conditional statement 'if' in a function 'TEE_SetOperationKey2' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
705: |
Operands of the '!=' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
705: |
The operands of a logical '&&' in function 'TEE_SetOperationKey2' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
706: |
Integer constant '0xF0100001' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
706: |
The operands of a logical '&&' in function 'TEE_SetOperationKey2' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
707: |
Integer constant '0xF0100002' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
707: |
The operands of a logical '&&' in function 'TEE_SetOperationKey2' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
708: |
Integer constant '0xF0100003' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
708: |
The operands of a logical '&&' in function 'TEE_SetOperationKey2' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
709: |
Integer constant '0xF0100004' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
709: |
The operands of a logical '&&' in function 'TEE_SetOperationKey2' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
712: |
Provide only one exit point in 'TEE_SetOperationKey2' function |
MISRAC2012-RULE_15_5-a-4 |
|
715: |
Declare parameter 'src_op' as typedef to pointer to const object |
MISRAC2012-RULE_8_13-b-4 |
|
715: |
Identifiers given in declaration of 'TEE_CopyOperation' function (file: 'tee_api.h', line: '226') are: 'dstOperation, srcOperation'
not: 'dst_op, src_op'
|
MISRAC2012-RULE_8_3-b-2 |
|
719: |
Conditional statement 'if' in a function 'TEE_CopyOperation' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
719: |
Expression of pointer type is compared with '0' |
MISRAC2012-RULE_11_9-b-2 |
|
719: |
Expression of pointer type is compared with '0' |
MISRAC2012-RULE_11_9-b-2 |
|
719: |
The operands of a logical '||' in function 'TEE_CopyOperation' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
719: |
The operands of a logical '||' in function 'TEE_CopyOperation' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
| +
|
721: |
"dst_op" may possibly be null |
MISRAC2012-DIR_4_1-b-2 |
| |
|
tee_api_operations.c (717): TEE_Result res;
Source of null value
tee_api_operations.c (719): if (dst_op == TEE_HANDLE_NULL || src_op == TEE_HANDLE_NULL) *** Null value carrier: dst_op *** Condition evaluation: (dst_op == 0) (assuming true) *** Condition evaluation: dst_op == TEE_HANDLE_NULL (true)
tee_api_operations.c (720): TEE_Panic(0);
tee_api_panic.c (24): _utee_panic(panicCode);
Null pointer dereferencing point
tee_api_operations.c (721): if (dst_op->info.algorithm != src_op->info.algorithm) *** Null value carrier: dst_op |
|
| +
|
721: |
"src_op" may possibly be null |
MISRAC2012-DIR_4_1-b-2 |
| |
|
tee_api_operations.c (717): TEE_Result res;
Source of null value
tee_api_operations.c (719): if (dst_op == TEE_HANDLE_NULL || src_op == TEE_HANDLE_NULL) *** Null value carrier: src_op *** Condition evaluation: (dst_op == 0) (assuming false) *** Condition evaluation: (src_op == 0) (assuming true) *** Condition evaluation: dst_op == TEE_HANDLE_NULL (true)
tee_api_operations.c (720): TEE_Panic(0);
tee_api_panic.c (24): _utee_panic(panicCode);
Null pointer dereferencing point
tee_api_operations.c (721): if (dst_op->info.algorithm != src_op->info.algorithm) *** Null value carrier: src_op |
|
|
721: |
Conditional statement 'if' in a function 'TEE_CopyOperation' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
723: |
Conditional statement 'if' in a function 'TEE_CopyOperation' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
725: |
Operands of the '!=' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
726: |
Variable 'key1' of pointer type is initialized with '0' |
MISRAC2012-RULE_11_9-b-2 |
|
727: |
Variable 'key2' of pointer type is initialized with '0' |
MISRAC2012-RULE_11_9-b-2 |
|
729: |
Operands of the '&' operator have different essential types: 'unsigned int' and 'int' |
MISRAC2012-RULE_10_4-a-2 |
|
729: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
729: |
The right hand operand of the '&' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
734: |
Operands of the '&' operator have different essential types: 'unsigned int' and 'int' |
MISRAC2012-RULE_10_4-a-2 |
|
734: |
Operands of the '==' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
734: |
The right hand operand of the '&' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
736: |
Unused function's "TEE_SetOperationKey" return value |
MISRAC2012-RULE_17_7-a-2 |
|
738: |
Unused function's "TEE_SetOperationKey2" return value |
MISRAC2012-RULE_17_7-a-2 |
|
746: |
Conditional statement 'if' in a function 'TEE_CopyOperation' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
746: |
The operands of a logical '||' in function 'TEE_CopyOperation' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
747: |
The operands of a logical '||' in function 'TEE_CopyOperation' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
751: |
Conditional statement 'if' in a function 'TEE_CopyOperation' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
754: |
Unused function's "memcpy" return value |
MISRAC2012-RULE_17_7-a-2 |
|
756: |
Provide 'else' after the last 'else-if' construct |
MISRAC2012-RULE_15_7-a-2 |
|
761: |
Conditional statement 'if' in a function 'TEE_CopyOperation' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
761: |
Operands of the '!=' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
777: |
Conditional statement 'if' in a function 'init_hash_operation' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
777: |
Operands of the '!=' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
780: |
Operands of the '|=' operator have different essential types: 'unsigned int' and 'int' |
MISRAC2012-RULE_10_4-a-2 |
|
780: |
The right hand operand of the '|=' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
786: |
Integer constant '0xFFFF0000' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
788: |
Conditional statement 'if' in a function 'TEE_DigestUpdate' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
788: |
Expression of pointer type is compared with '0' |
MISRAC2012-RULE_11_9-b-2 |
|
788: |
The operands of a logical '||' in function 'TEE_DigestUpdate' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
789: |
Operands of the '!=' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
789: |
The operands of a logical '||' in function 'TEE_DigestUpdate' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
| +
|
792: |
"operation" may possibly be null |
MISRAC2012-DIR_4_1-b-2 |
| |
|
tee_api_operations.c (786): TEE_Result res = TEE_ERROR_GENERIC;
Source of null value
tee_api_operations.c (788): if (operation == TEE_HANDLE_NULL || *** Null value carrier: operation *** Condition evaluation: (operation == 0) (assuming true) *** Condition evaluation: operation == TEE_HANDLE_NULL || operation->info.operationClass != T (true)
tee_api_operations.c (790): TEE_Panic(0);
tee_api_panic.c (24): _utee_panic(panicCode);
Null pointer dereferencing point
tee_api_operations.c (792): operation->operationState = TEE_OPERATION_STATE_ACTIVE; *** Null value carrier: operation |
|
|
795: |
Conditional statement 'if' in a function 'TEE_DigestUpdate' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
795: |
Operands of the '!=' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
805: |
Expression of pointer type is compared with '0' |
MISRAC2012-RULE_11_9-b-2 |
|
806: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
806: |
The operands of a logical '&&' in function 'TEE_DigestDoFinal' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
806: |
The right hand operand of the logical operator '&&' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
807: |
Operands of the '!=' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
808: |
Integer constant '0xFFFF0006' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
809: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
815: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with a narrower essential type (4 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
816: |
Conditional statement 'if' in a function 'TEE_DigestDoFinal' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
816: |
Operands of the '!=' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
817: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
825: |
Conditional statement 'if' in a function 'TEE_DigestDoFinal' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
825: |
Operands of the '!=' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
825: |
The operands of a logical '&&' in function 'TEE_DigestDoFinal' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
826: |
Integer constant '0xFFFF0010' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
826: |
The operands of a logical '&&' in function 'TEE_DigestDoFinal' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
839: |
Conditional statement 'if' in a function 'TEE_CipherInit' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
839: |
Expression of pointer type is compared with '0' |
MISRAC2012-RULE_11_9-b-2 |
| +
|
842: |
"operation" may possibly be null |
MISRAC2012-DIR_4_1-b-2 |
| |
|
tee_api_operations.c (837): TEE_Result res;
Source of null value
tee_api_operations.c (839): if (operation == TEE_HANDLE_NULL) *** Null value carrier: operation *** Condition evaluation: (operation == 0) (assuming true)
tee_api_operations.c (840): TEE_Panic(0);
tee_api_panic.c (24): _utee_panic(panicCode);
Null pointer dereferencing point
tee_api_operations.c (842): if (operation->info.operationClass != TEE_OPERATION_CIPHER) *** Null value carrier: operation |
|
|
842: |
Conditional statement 'if' in a function 'TEE_CipherInit' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
842: |
Operands of the '!=' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
845: |
Conditional statement 'if' in a function 'TEE_CipherInit' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
845: |
Operands of the '&' operator have different essential types: 'unsigned int' and 'int' |
MISRAC2012-RULE_10_4-a-2 |
|
845: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
845: |
The operands of a logical '||' in function 'TEE_CipherInit' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
845: |
The right hand operand of the '&' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
846: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
846: |
The operands of a logical '||' in function 'TEE_CipherInit' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
849: |
Conditional statement 'if' in a function 'TEE_CipherInit' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
849: |
Operands of the '!=' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
855: |
Conditional statement 'if' in a function 'TEE_CipherInit' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
855: |
Operands of the '!=' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
859: |
Operands of the '|=' operator have different essential types: 'unsigned int' and 'int' |
MISRAC2012-RULE_10_4-a-2 |
|
859: |
The right hand operand of the '|=' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
864: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
870: |
Pointer to void type should not be converted to pointer to object type 'const uint8_t *' |
MISRAC2012-RULE_11_5-a-4 |
|
872: |
Pointer to void type should not be converted to pointer to object type 'uint8_t *' |
MISRAC2012-RULE_11_5-a-4 |
|
880: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
881: |
Conditional statement 'if' in a function 'tee_buffer_update' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
881: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
883: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
887: |
Operands of the '*' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
894: |
Operands of the '>' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
896: |
Conditional statement 'if' in a function 'tee_buffer_update' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
897: |
Reserved name '_a' used |
MISRAC2012-RULE_21_2-a-2 |
|
897: |
Reserved name '_b' used |
MISRAC2012-RULE_21_2-a-2 |
|
897: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
899: |
An 'else' statement in a function 'tee_buffer_update' shall be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
899: |
Reserved name '_a' used |
MISRAC2012-RULE_21_2-a-2 |
|
899: |
Reserved name '_b' used |
MISRAC2012-RULE_21_2-a-2 |
|
899: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
900: |
The left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
900: |
Unused function's "memcpy" return value |
MISRAC2012-RULE_17_7-a-2 |
|
902: |
The variable 'src' used as the left hand side operand of the '+=' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
904: |
Conditional statement 'if' in a function 'tee_buffer_update' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
904: |
Operands of the '!=' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
905: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
909: |
Operands of the '>' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
911: |
Operands of the '-' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
911: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
913: |
Reserved name '_a' used |
MISRAC2012-RULE_21_2-a-2 |
|
913: |
Reserved name '_b' used |
MISRAC2012-RULE_21_2-a-2 |
|
913: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
916: |
Conditional statement 'if' in a function 'tee_buffer_update' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
916: |
Operands of the '!=' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
918: |
The variable 'dst' used as the left hand side operand of the '+=' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
922: |
Operands of the '>' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
926: |
The left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
926: |
Unused function's "memcpy" return value |
MISRAC2012-RULE_17_7-a-2 |
|
927: |
The left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
927: |
Unused function's "memcpy" return value |
MISRAC2012-RULE_17_7-a-2 |
|
929: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
935: |
Conditional statement 'if' in a function 'tee_buffer_update' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
935: |
Operands of the '==' operator have different essential types: 'unsigned int' and 'int' |
MISRAC2012-RULE_10_4-a-2 |
|
936: |
Operands of the '-' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
936: |
Operands of the '-' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
938: |
An 'else' statement in a function 'tee_buffer_update' shall be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
938: |
Operands of the '+' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
938: |
Operands of the '-' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
938: |
Operands of the '-' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
938: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
942: |
Conditional statement 'if' in a function 'tee_buffer_update' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
942: |
Operands of the '!=' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
944: |
The variable 'src' used as the left hand side operand of the '+=' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
946: |
The variable 'dst' used as the left hand side operand of the '+=' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
| +
|
946: |
Value of "dst" is never used |
MISRAC2012-RULE_2_2-b-2 |
| |
|
Point where value is declared
Point where value is declared
tee_api_operations.c (946): dst += tmp_dlen; |
|
| +
|
947: |
Value of "dlen" is never used |
MISRAC2012-RULE_2_2-b-2 |
| |
|
Point where value is declared
Point where value is declared
tee_api_operations.c (947): dlen -= tmp_dlen; |
|
|
952: |
The left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
952: |
Unused function's "memcpy" return value |
MISRAC2012-RULE_17_7-a-2 |
|
967: |
Expression of pointer type is compared with '0' |
MISRAC2012-RULE_11_9-b-2 |
|
967: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
967: |
The operands of a logical '&&' in function 'TEE_CipherUpdate' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
967: |
The operands of a logical '||' in function 'TEE_CipherUpdate' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
967: |
The right hand operand of the logical operator '&&' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
968: |
Integer constant '0xFFFF0006' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
969: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
973: |
Operands of the '!=' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
974: |
Integer constant '0xFFFF0006' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
975: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
978: |
Operands of the '&' operator have different essential types: 'unsigned int' and 'int' |
MISRAC2012-RULE_10_4-a-2 |
|
978: |
Operands of the '==' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
978: |
The right hand operand of the '&' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
979: |
Integer constant '0xFFFF0006' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
980: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
983: |
Operands of the '!=' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
984: |
Integer constant '0xFFFF0006' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
985: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
988: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
988: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
988: |
The operands of a logical '&&' in function 'TEE_CipherUpdate' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
988: |
The operands of a logical '&&' in function 'TEE_CipherUpdate' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
991: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
995: |
Operands of the '>' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
1002: |
Conditional statement 'if' in a function 'TEE_CipherUpdate' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1002: |
Operands of the '*' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
1002: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
1003: |
Operands of the '*' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
1005: |
An 'else' statement in a function 'TEE_CipherUpdate' shall be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1013: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with a narrower essential type (4 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
1014: |
Integer constant '0xFFFF0010' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
1015: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
1019: |
Operands of the '>' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
1023: |
Operands of the '>' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
1031: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with a narrower essential type (4 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
1034: |
Conditional statement 'if' in a function 'TEE_CipherUpdate' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1034: |
Operands of the '!=' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
1034: |
The operands of a logical '&&' in function 'TEE_CipherUpdate' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
1035: |
Integer constant '0xFFFF0010' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
1035: |
The operands of a logical '&&' in function 'TEE_CipherUpdate' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
1046: |
Pointer to void type should not be converted to pointer to object type 'uint8_t *' |
MISRAC2012-RULE_11_5-a-4 |
|
1051: |
Expression of pointer type is compared with '0' |
MISRAC2012-RULE_11_9-b-2 |
|
1051: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
1051: |
The operands of a logical '&&' in function 'TEE_CipherDoFinal' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
1051: |
The operands of a logical '||' in function 'TEE_CipherDoFinal' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
1051: |
The right hand operand of the logical operator '&&' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
1052: |
Integer constant '0xFFFF0006' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
1053: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
1055: |
Conditional statement 'if' in a function 'TEE_CipherDoFinal' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1055: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
1058: |
Operands of the '!=' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
1059: |
Integer constant '0xFFFF0006' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
1060: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
1063: |
Operands of the '&' operator have different essential types: 'unsigned int' and 'int' |
MISRAC2012-RULE_10_4-a-2 |
|
1063: |
Operands of the '==' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
1063: |
The right hand operand of the '&' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
1064: |
Integer constant '0xFFFF0006' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
1065: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
1068: |
Operands of the '!=' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
1069: |
Integer constant '0xFFFF0006' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
1070: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
1077: |
Operands of the '==' operator have different essential types: 'unsigned int' and 'int' |
MISRAC2012-RULE_10_4-a-2 |
|
1077: |
The operands of a logical '||' in function 'TEE_CipherDoFinal' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
1078: |
Operands of the '==' operator have different essential types: 'unsigned int' and 'int' |
MISRAC2012-RULE_10_4-a-2 |
|
1078: |
The operands of a logical '||' in function 'TEE_CipherDoFinal' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
1079: |
Operands of the '==' operator have different essential types: 'unsigned int' and 'int' |
MISRAC2012-RULE_10_4-a-2 |
|
1079: |
The operands of a logical '||' in function 'TEE_CipherDoFinal' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
1080: |
Operands of the '==' operator have different essential types: 'unsigned int' and 'int' |
MISRAC2012-RULE_10_4-a-2 |
|
1080: |
The operands of a logical '||' in function 'TEE_CipherDoFinal' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
1081: |
Operands of the '==' operator have different essential types: 'unsigned int' and 'int' |
MISRAC2012-RULE_10_4-a-2 |
|
1081: |
The operands of a logical '||' in function 'TEE_CipherDoFinal' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
1082: |
Operands of the '==' operator have different essential types: 'unsigned int' and 'int' |
MISRAC2012-RULE_10_4-a-2 |
|
1082: |
The operands of a logical '||' in function 'TEE_CipherDoFinal' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
1083: |
Operands of the '==' operator have different essential types: 'unsigned int' and 'int' |
MISRAC2012-RULE_10_4-a-2 |
|
1083: |
The operands of a logical '||' in function 'TEE_CipherDoFinal' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
1084: |
Operands of the '==' operator have different essential types: 'unsigned int' and 'int' |
MISRAC2012-RULE_10_4-a-2 |
|
1084: |
The operands of a logical '||' in function 'TEE_CipherDoFinal' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
1085: |
Operands of the '!=' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
1087: |
Integer constant '0xFFFF0006' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
1088: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
1097: |
Operands of the '>' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
1102: |
Conditional statement 'if' in a function 'TEE_CipherDoFinal' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1102: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
1105: |
Conditional statement 'if' in a function 'TEE_CipherDoFinal' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1105: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
1106: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with a narrower essential type (4 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
1107: |
Integer constant '0xFFFF0010' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
1108: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
1111: |
Operands of the '>' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
1112: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
1116: |
Conditional statement 'if' in a function 'TEE_CipherDoFinal' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1116: |
Operands of the '!=' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
1117: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
1119: |
The variable 'dst' used as the left hand side operand of the '+=' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
1131: |
Conditional statement 'if' in a function 'TEE_CipherDoFinal' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1131: |
Operands of the '!=' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
1132: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
1135: |
Conditional statement 'if' in a function 'TEE_CipherDoFinal' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1135: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
1136: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with a narrower essential type (4 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
1138: |
Operands of the '&=' operator have different essential types: 'unsigned int' and 'int' |
MISRAC2012-RULE_10_4-a-2 |
|
1138: |
The operand of the '~' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
1138: |
The right hand operand of the '&=' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
1143: |
Conditional statement 'if' in a function 'TEE_CipherDoFinal' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1143: |
Operands of the '!=' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
1143: |
The operands of a logical '&&' in function 'TEE_CipherDoFinal' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
1144: |
Integer constant '0xFFFF0010' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
1144: |
The operands of a logical '&&' in function 'TEE_CipherDoFinal' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
1154: |
Conditional statement 'if' in a function 'TEE_MACInit' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1154: |
Expression of pointer type is compared with '0' |
MISRAC2012-RULE_11_9-b-2 |
| +
|
1157: |
"operation" may possibly be null |
MISRAC2012-DIR_4_1-b-2 |
| |
|
Source of null value
tee_api_operations.c (1154): if (operation == TEE_HANDLE_NULL) *** Null value carrier: operation *** Condition evaluation: (operation == 0) (assuming true)
tee_api_operations.c (1155): TEE_Panic(0);
tee_api_panic.c (24): _utee_panic(panicCode);
Null pointer dereferencing point
tee_api_operations.c (1157): if (operation->info.operationClass != TEE_OPERATION_MAC) *** Null value carrier: operation |
|
|
1157: |
Conditional statement 'if' in a function 'TEE_MACInit' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1157: |
Operands of the '!=' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
1160: |
Conditional statement 'if' in a function 'TEE_MACInit' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1160: |
Operands of the '&' operator have different essential types: 'unsigned int' and 'int' |
MISRAC2012-RULE_10_4-a-2 |
|
1160: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
1160: |
The operands of a logical '||' in function 'TEE_MACInit' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
1160: |
The right hand operand of the '&' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
1161: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
1161: |
The operands of a logical '||' in function 'TEE_MACInit' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
1164: |
Conditional statement 'if' in a function 'TEE_MACInit' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1164: |
Operands of the '!=' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
1172: |
Declare parameter 'operation' as typedef to pointer to const object |
MISRAC2012-RULE_8_13-b-4 |
|
1177: |
Conditional statement 'if' in a function 'TEE_MACUpdate' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1177: |
Operands of the '!=' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
1177: |
The operands of a logical '&&' in function 'TEE_MACUpdate' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
1177: |
The operands of a logical '&&' in function 'TEE_MACUpdate' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
1177: |
The operands of a logical '||' in function 'TEE_MACUpdate' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
| +
|
1180: |
"operation" may possibly be null |
MISRAC2012-DIR_4_1-b-2 |
| |
|
tee_api_operations.c (1175): TEE_Result res;
Source of null value
tee_api_operations.c (1177): if (operation == TEE_HANDLE_NULL || (chunk == NULL && chunkSize != 0)) *** Null value carrier: operation *** Condition evaluation: (operation == 0) (assuming true) *** Condition evaluation: operation == TEE_HANDLE_NULL || (chunk == NULL && chunkSize != 0 (true)
tee_api_operations.c (1178): TEE_Panic(0);
tee_api_panic.c (24): _utee_panic(panicCode);
Null pointer dereferencing point
tee_api_operations.c (1180): if (operation->info.operationClass != TEE_OPERATION_MAC) *** Null value carrier: operation |
|
|
1180: |
Conditional statement 'if' in a function 'TEE_MACUpdate' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1180: |
Operands of the '!=' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
1183: |
Conditional statement 'if' in a function 'TEE_MACUpdate' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1183: |
Operands of the '&' operator have different essential types: 'unsigned int' and 'int' |
MISRAC2012-RULE_10_4-a-2 |
|
1183: |
Operands of the '==' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
1183: |
The right hand operand of the '&' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
1186: |
Conditional statement 'if' in a function 'TEE_MACUpdate' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1186: |
Operands of the '!=' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
1190: |
Conditional statement 'if' in a function 'TEE_MACUpdate' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1190: |
Operands of the '!=' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
1194: |
The function 'TEE_MACComputeFinal' is referenced only in the translation unit where it is defined |
MISRAC2012-RULE_8_7-a-4 |
|
1201: |
Expression of pointer type is compared with '0' |
MISRAC2012-RULE_11_9-b-2 |
|
1201: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
1201: |
The operands of a logical '&&' in function 'TEE_MACComputeFinal' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
1201: |
The operands of a logical '||' in function 'TEE_MACComputeFinal' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
1201: |
The right hand operand of the logical operator '&&' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
1202: |
Integer constant '0xFFFF0006' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
1203: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
1207: |
Operands of the '!=' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
1208: |
Integer constant '0xFFFF0006' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
1209: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
1212: |
Operands of the '&' operator have different essential types: 'unsigned int' and 'int' |
MISRAC2012-RULE_10_4-a-2 |
|
1212: |
Operands of the '==' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
1212: |
The right hand operand of the '&' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
1213: |
Integer constant '0xFFFF0006' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
1214: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
1217: |
Operands of the '!=' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
1218: |
Integer constant '0xFFFF0006' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
1219: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
1224: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with a narrower essential type (4 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
1225: |
Conditional statement 'if' in a function 'TEE_MACComputeFinal' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1225: |
Operands of the '!=' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
1226: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
1228: |
Operands of the '&=' operator have different essential types: 'unsigned int' and 'int' |
MISRAC2012-RULE_10_4-a-2 |
|
1228: |
The operand of the '~' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
1228: |
The right hand operand of the '&=' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
1233: |
Conditional statement 'if' in a function 'TEE_MACComputeFinal' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1233: |
Operands of the '!=' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
1233: |
The operands of a logical '&&' in function 'TEE_MACComputeFinal' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
1234: |
Integer constant '0xFFFF0010' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
1234: |
The operands of a logical '&&' in function 'TEE_MACComputeFinal' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
1246: |
The expression of the 'essentially Enum' type is assigned to an object with the 'essentially unsigned' type |
MISRAC2012-RULE_10_3-b-2 |
|
1248: |
Operands of the '!=' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
1249: |
Integer constant '0xFFFF0006' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
1250: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
1253: |
Operands of the '&' operator have different essential types: 'unsigned int' and 'int' |
MISRAC2012-RULE_10_4-a-2 |
|
1253: |
Operands of the '==' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
1253: |
The right hand operand of the '&' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
1254: |
Integer constant '0xFFFF0006' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
1255: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
1258: |
Operands of the '!=' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
1259: |
Integer constant '0xFFFF0006' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
1260: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
1265: |
Conditional statement 'if' in a function 'TEE_MACCompareFinal' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1265: |
Operands of the '!=' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
1266: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
1269: |
Integer constant '0xFFFF3071' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
1270: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
1274: |
Integer constant '0xFFFF3071' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
1275: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
1281: |
Conditional statement 'if' in a function 'TEE_MACCompareFinal' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1281: |
Operands of the '!=' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
1281: |
The operands of a logical '&&' in function 'TEE_MACCompareFinal' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
1282: |
Integer constant '0xFFFF3071' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
1282: |
The operands of a logical '&&' in function 'TEE_MACCompareFinal' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
1296: |
The operands of a logical '||' in function 'TEE_AEInit' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
1296: |
The operands of a logical '||' in function 'TEE_AEInit' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
1297: |
Integer constant '0xFFFF0006' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
1298: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
1301: |
Operands of the '!=' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
1302: |
Integer constant '0xFFFF0006' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
1303: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
1306: |
Operands of the '!=' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
1307: |
Integer constant '0xFFFF0006' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
1308: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
1317: |
Operands of the '==' operator have different essential types: 'unsigned int' and 'int' |
MISRAC2012-RULE_10_4-a-2 |
|
1321: |
Operands of the '!=' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
1321: |
Operands of the '%' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
1321: |
Operands of the '<' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
1321: |
Operands of the '>' operator have different essential types: 'unsigned int' and 'short' |
MISRAC2012-RULE_10_4-a-2 |
|
1321: |
The operands of a logical '||' in function 'TEE_AEInit' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
1321: |
The operands of a logical '||' in function 'TEE_AEInit' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
1321: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
1322: |
Integer constant '0xFFFF000A' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
1323: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
1327: |
Operands of the '/' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
1327: |
The value of a composite expression (32 bit essential type) is passed to function '_utee_authenc_init' as parameter with wider
essential type (64 bit)
|
MISRAC2012-RULE_10_6-a-2 |
|
1329: |
Conditional statement 'if' in a function 'TEE_AEInit' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1329: |
Operands of the '!=' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
1330: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
1332: |
Operands of the '/' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
1334: |
Operands of the '|=' operator have different essential types: 'unsigned int' and 'int' |
MISRAC2012-RULE_10_4-a-2 |
|
1334: |
The right hand operand of the '|=' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
1337: |
Conditional statement 'if' in a function 'TEE_AEInit' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1337: |
Operands of the '!=' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
1337: |
The operands of a logical '&&' in function 'TEE_AEInit' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
1338: |
Integer constant '0xFFFF000A' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
1338: |
The operands of a logical '&&' in function 'TEE_AEInit' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
1349: |
Conditional statement 'if' in a function 'TEE_AEUpdateAAD' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1349: |
Expression of pointer type is compared with '0' |
MISRAC2012-RULE_11_9-b-2 |
|
1349: |
The operands of a logical '||' in function 'TEE_AEUpdateAAD' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
1350: |
Operands of the '!=' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
1350: |
The operands of a logical '&&' in function 'TEE_AEUpdateAAD' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
1350: |
The operands of a logical '&&' in function 'TEE_AEUpdateAAD' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
| +
|
1353: |
"operation" may possibly be null |
MISRAC2012-DIR_4_1-b-2 |
| |
|
tee_api_operations.c (1347): TEE_Result res;
Source of null value
tee_api_operations.c (1349): if (operation == TEE_HANDLE_NULL || *** Null value carrier: operation *** Condition evaluation: (operation == 0) (assuming true) *** Condition evaluation: operation == TEE_HANDLE_NULL || (AADdata == NULL && AADdataLen != 0 (true)
tee_api_operations.c (1351): TEE_Panic(0);
tee_api_panic.c (24): _utee_panic(panicCode);
Null pointer dereferencing point
tee_api_operations.c (1353): if (operation->info.operationClass != TEE_OPERATION_AE) *** Null value carrier: operation |
|
|
1353: |
Conditional statement 'if' in a function 'TEE_AEUpdateAAD' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1353: |
Operands of the '!=' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
1356: |
Conditional statement 'if' in a function 'TEE_AEUpdateAAD' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1356: |
Operands of the '&' operator have different essential types: 'unsigned int' and 'int' |
MISRAC2012-RULE_10_4-a-2 |
|
1356: |
Operands of the '==' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
1356: |
The right hand operand of the '&' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
1363: |
Conditional statement 'if' in a function 'TEE_AEUpdateAAD' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1363: |
Operands of the '!=' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
1374: |
Expression of pointer type is compared with '0' |
MISRAC2012-RULE_11_9-b-2 |
|
1374: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
1374: |
The operands of a logical '&&' in function 'TEE_AEUpdate' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
1374: |
The operands of a logical '||' in function 'TEE_AEUpdate' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
1374: |
The right hand operand of the logical operator '&&' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
1375: |
Integer constant '0xFFFF0006' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
1376: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
1380: |
Operands of the '!=' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
1381: |
Integer constant '0xFFFF0006' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
1382: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
1385: |
Operands of the '&' operator have different essential types: 'unsigned int' and 'int' |
MISRAC2012-RULE_10_4-a-2 |
|
1385: |
Operands of the '==' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
1385: |
The right hand operand of the '&' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
1386: |
Integer constant '0xFFFF0006' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
1387: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
1390: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
1390: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
1390: |
The operands of a logical '&&' in function 'TEE_AEUpdate' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
1390: |
The operands of a logical '&&' in function 'TEE_AEUpdate' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
1393: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
1401: |
Operands of the '>' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
1402: |
Operands of the '-' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
1410: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with a narrower essential type (4 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
1411: |
Integer constant '0xFFFF0010' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
1412: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
1415: |
Operands of the '>' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
1419: |
Operands of the '>' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
1428: |
Conditional statement 'if' in a function 'TEE_AEUpdate' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1428: |
Operands of the '!=' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
1429: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
1431: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with a narrower essential type (4 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
1436: |
Conditional statement 'if' in a function 'TEE_AEUpdate' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1436: |
Operands of the '!=' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
1436: |
The operands of a logical '&&' in function 'TEE_AEUpdate' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
1437: |
Integer constant '0xFFFF0010' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
1437: |
The operands of a logical '&&' in function 'TEE_AEUpdate' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
1449: |
Pointer to void type should not be converted to pointer to object type 'uint8_t *' |
MISRAC2012-RULE_11_5-a-4 |
|
1455: |
Expression of pointer type is compared with '0' |
MISRAC2012-RULE_11_9-b-2 |
|
1455: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
1455: |
The operands of a logical '&&' in function 'TEE_AEEncryptFinal' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
1455: |
The operands of a logical '||' in function 'TEE_AEEncryptFinal' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
1455: |
The right hand operand of the logical operator '&&' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
1456: |
Integer constant '0xFFFF0006' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
1457: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
1462: |
Operands of the '!=' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
1463: |
Integer constant '0xFFFF0006' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
1464: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
1467: |
Operands of the '&' operator have different essential types: 'unsigned int' and 'int' |
MISRAC2012-RULE_10_4-a-2 |
|
1467: |
Operands of the '==' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
1467: |
The right hand operand of the '&' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
1468: |
Integer constant '0xFFFF0006' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
1469: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
1480: |
Integer constant '0xFFFF0000' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
1484: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with a narrower essential type (4 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
1485: |
Integer constant '0xFFFF0010' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
1490: |
Integer constant '0xFFFF0010' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
1493: |
Conditional statement 'if' in a function 'TEE_AEEncryptFinal' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1493: |
Integer constant '0xFFFF0010' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
1494: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
1498: |
Operands of the '>' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
1501: |
Conditional statement 'if' in a function 'TEE_AEEncryptFinal' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1501: |
Operands of the '!=' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
1502: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
1504: |
The variable 'dst' used as the left hand side operand of the '+=' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
1517: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with a narrower essential type (4 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
1518: |
Conditional statement 'if' in a function 'TEE_AEEncryptFinal' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1518: |
Operands of the '!=' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
1519: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
1522: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with a narrower essential type (4 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
1524: |
Operands of the '&=' operator have different essential types: 'unsigned int' and 'int' |
MISRAC2012-RULE_10_4-a-2 |
|
1524: |
The operand of the '~' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
1524: |
The right hand operand of the '&=' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
1529: |
Conditional statement 'if' in a function 'TEE_AEEncryptFinal' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1529: |
Operands of the '!=' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
1529: |
The operands of a logical '&&' in function 'TEE_AEEncryptFinal' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
1530: |
Integer constant '0xFFFF0010' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
1530: |
The operands of a logical '&&' in function 'TEE_AEEncryptFinal' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
1538: |
Pass parameter "tag" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
1542: |
Pointer to void type should not be converted to pointer to object type 'uint8_t *' |
MISRAC2012-RULE_11_5-a-4 |
|
1547: |
Expression of pointer type is compared with '0' |
MISRAC2012-RULE_11_9-b-2 |
|
1547: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
1547: |
The operands of a logical '&&' in function 'TEE_AEDecryptFinal' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
1547: |
The operands of a logical '||' in function 'TEE_AEDecryptFinal' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
1547: |
The right hand operand of the logical operator '&&' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
1548: |
Integer constant '0xFFFF0006' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
1549: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
1553: |
Operands of the '!=' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
1554: |
Integer constant '0xFFFF0006' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
1555: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
1558: |
Operands of the '&' operator have different essential types: 'unsigned int' and 'int' |
MISRAC2012-RULE_10_4-a-2 |
|
1558: |
Operands of the '==' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
1558: |
The right hand operand of the '&' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
1559: |
Integer constant '0xFFFF0006' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
1560: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
1570: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with a narrower essential type (4 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
1571: |
Integer constant '0xFFFF0010' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
1572: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
1576: |
Operands of the '>' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
1579: |
Conditional statement 'if' in a function 'TEE_AEDecryptFinal' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1579: |
Operands of the '!=' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
1580: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
1582: |
The variable 'dst' used as the left hand side operand of the '+=' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
1595: |
Conditional statement 'if' in a function 'TEE_AEDecryptFinal' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1595: |
Operands of the '!=' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
1596: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
1599: |
Conditional statement 'if' in a function 'TEE_AEDecryptFinal' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1600: |
Integer constant '0xFFFF3071' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
1603: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with a narrower essential type (4 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
1605: |
Operands of the '&=' operator have different essential types: 'unsigned int' and 'int' |
MISRAC2012-RULE_10_4-a-2 |
|
1605: |
The operand of the '~' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
1605: |
The right hand operand of the '&=' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
1610: |
Conditional statement 'if' in a function 'TEE_AEDecryptFinal' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1610: |
Operands of the '!=' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
1610: |
The operands of a logical '&&' in function 'TEE_AEDecryptFinal' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
1611: |
Integer constant '0xFFFF0010' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
1611: |
The operands of a logical '&&' in function 'TEE_AEDecryptFinal' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
1612: |
Integer constant '0xFFFF3071' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
1612: |
The operands of a logical '&&' in function 'TEE_AEDecryptFinal' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
1620: |
Declare parameter 'operation' as typedef to pointer to const object |
MISRAC2012-RULE_8_13-b-4 |
|
1627: |
The dimension of array 'ua' is not an integer constant expression |
MISRAC2012-RULE_18_8-a-2 |
|
1630: |
Conditional statement 'if' in a function 'TEE_AsymmetricEncrypt' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1630: |
Expression of pointer type is compared with '0' |
MISRAC2012-RULE_11_9-b-2 |
|
1630: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
1630: |
The operands of a logical '&&' in function 'TEE_AsymmetricEncrypt' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
1630: |
The operands of a logical '||' in function 'TEE_AsymmetricEncrypt' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
1630: |
The right hand operand of the logical operator '&&' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
1636: |
Conditional statement 'if' in a function 'TEE_AsymmetricEncrypt' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1636: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
1638: |
Conditional statement 'if' in a function 'TEE_AsymmetricEncrypt' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1638: |
Operands of the '!=' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
1640: |
Conditional statement 'if' in a function 'TEE_AsymmetricEncrypt' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1640: |
Operands of the '!=' operator have different essential types: 'unsigned int' and 'TEE_OperationMode' |
MISRAC2012-RULE_10_4-a-2 |
|
1647: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with a narrower essential type (4 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
1649: |
Conditional statement 'if' in a function 'TEE_AsymmetricEncrypt' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1649: |
Operands of the '!=' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
1649: |
The operands of a logical '&&' in function 'TEE_AsymmetricEncrypt' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
1650: |
Integer constant '0xFFFF0010' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
1650: |
The operands of a logical '&&' in function 'TEE_AsymmetricEncrypt' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
1651: |
Integer constant '0xFFFF0006' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
1651: |
The operands of a logical '&&' in function 'TEE_AsymmetricEncrypt' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
1657: |
Declare parameter 'operation' as typedef to pointer to const object |
MISRAC2012-RULE_8_13-b-4 |
|
1664: |
The dimension of array 'ua' is not an integer constant expression |
MISRAC2012-RULE_18_8-a-2 |
|
1667: |
Conditional statement 'if' in a function 'TEE_AsymmetricDecrypt' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1667: |
Expression of pointer type is compared with '0' |
MISRAC2012-RULE_11_9-b-2 |
|
1667: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
1667: |
The operands of a logical '&&' in function 'TEE_AsymmetricDecrypt' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
1667: |
The operands of a logical '||' in function 'TEE_AsymmetricDecrypt' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
1667: |
The right hand operand of the logical operator '&&' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
1673: |
Conditional statement 'if' in a function 'TEE_AsymmetricDecrypt' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1673: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
1675: |
Conditional statement 'if' in a function 'TEE_AsymmetricDecrypt' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1675: |
Operands of the '!=' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
1677: |
Conditional statement 'if' in a function 'TEE_AsymmetricDecrypt' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1677: |
Operands of the '!=' operator have different essential types: 'unsigned int' and 'TEE_OperationMode' |
MISRAC2012-RULE_10_4-a-2 |
|
1684: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with a narrower essential type (4 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
1686: |
Conditional statement 'if' in a function 'TEE_AsymmetricDecrypt' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1686: |
Operands of the '!=' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
1686: |
The operands of a logical '&&' in function 'TEE_AsymmetricDecrypt' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
1687: |
Integer constant '0xFFFF0010' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
1687: |
The operands of a logical '&&' in function 'TEE_AsymmetricDecrypt' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
1688: |
Integer constant '0xFFFF0006' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
1688: |
The operands of a logical '&&' in function 'TEE_AsymmetricDecrypt' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
1694: |
Declare parameter 'operation' as typedef to pointer to const object |
MISRAC2012-RULE_8_13-b-4 |
|
1701: |
The dimension of array 'ua' is not an integer constant expression |
MISRAC2012-RULE_18_8-a-2 |
|
1704: |
Conditional statement 'if' in a function 'TEE_AsymmetricSignDigest' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1704: |
Expression of pointer type is compared with '0' |
MISRAC2012-RULE_11_9-b-2 |
|
1704: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
1704: |
The operands of a logical '&&' in function 'TEE_AsymmetricSignDigest' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
1704: |
The operands of a logical '||' in function 'TEE_AsymmetricSignDigest' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
1704: |
The right hand operand of the logical operator '&&' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
1710: |
Conditional statement 'if' in a function 'TEE_AsymmetricSignDigest' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1710: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
1712: |
Conditional statement 'if' in a function 'TEE_AsymmetricSignDigest' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1712: |
Operands of the '!=' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
1715: |
Conditional statement 'if' in a function 'TEE_AsymmetricSignDigest' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1715: |
Operands of the '!=' operator have different essential types: 'unsigned int' and 'TEE_OperationMode' |
MISRAC2012-RULE_10_4-a-2 |
|
1722: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with a narrower essential type (4 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
1724: |
Conditional statement 'if' in a function 'TEE_AsymmetricSignDigest' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1724: |
Integer constant '0xFFFF0010' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
1724: |
Operands of the '!=' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
1724: |
The operands of a logical '&&' in function 'TEE_AsymmetricSignDigest' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
1724: |
The operands of a logical '&&' in function 'TEE_AsymmetricSignDigest' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
1730: |
Declare parameter 'operation' as typedef to pointer to const object |
MISRAC2012-RULE_8_13-b-4 |
|
1738: |
The dimension of array 'ua' is not an integer constant expression |
MISRAC2012-RULE_18_8-a-2 |
|
1740: |
Conditional statement 'if' in a function 'TEE_AsymmetricVerifyDigest' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1740: |
Expression of pointer type is compared with '0' |
MISRAC2012-RULE_11_9-b-2 |
|
1740: |
The operands of a logical '||' in function 'TEE_AsymmetricVerifyDigest' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
1741: |
Operands of the '!=' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
1741: |
The operands of a logical '&&' in function 'TEE_AsymmetricVerifyDigest' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
1741: |
The operands of a logical '&&' in function 'TEE_AsymmetricVerifyDigest' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
1742: |
Operands of the '!=' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
1742: |
The operands of a logical '&&' in function 'TEE_AsymmetricVerifyDigest' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
1742: |
The operands of a logical '&&' in function 'TEE_AsymmetricVerifyDigest' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
| +
|
1747: |
"operation" may possibly be null |
MISRAC2012-DIR_4_1-b-2 |
| |
|
tee_api_operations.c (1737): TEE_Result res;
tee_api_operations.c (1738): struct utee_attribute ua[paramCount];
Source of null value
tee_api_operations.c (1740): if (operation == TEE_HANDLE_NULL || *** Null value carrier: operation *** Condition evaluation: (operation == 0) (assuming true) *** Condition evaluation: operation == TEE_HANDLE_NULL || (digest == NULL && digestLen...&& signatureLen != 0 (true)
tee_api_operations.c (1743): TEE_Panic(0);
tee_api_panic.c (24): _utee_panic(panicCode);
tee_api_operations.c (1745): __utee_check_attr_in_annotation(params, paramCount);
tee_api_panic.c (82): check_res("[in] attr",
tee_api_panic.c (83): check_access(ACCESS_R, (void *)attr, sizeof(*attr) * count));
tee_api_panic.c (40): if (!len) *** Condition evaluation: !len (assuming true)
tee_api_panic.c (41): return TEE_SUCCESS;
tee_api_panic.c (82): check_res("[in] attr",
tee_api_panic.c (32): if (res) { *** Condition evaluation: (res != 0) (false)
Null pointer dereferencing point
tee_api_operations.c (1747): if (!operation->key1) *** Null value carrier: operation |
|
|
1747: |
Conditional statement 'if' in a function 'TEE_AsymmetricVerifyDigest' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1747: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
1749: |
Conditional statement 'if' in a function 'TEE_AsymmetricVerifyDigest' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1749: |
Operands of the '!=' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
1752: |
Conditional statement 'if' in a function 'TEE_AsymmetricVerifyDigest' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1752: |
Operands of the '!=' operator have different essential types: 'unsigned int' and 'TEE_OperationMode' |
MISRAC2012-RULE_10_4-a-2 |
|
1759: |
Conditional statement 'if' in a function 'TEE_AsymmetricVerifyDigest' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1759: |
Integer constant '0xFFFF3072' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
1759: |
Operands of the '!=' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
1759: |
The operands of a logical '&&' in function 'TEE_AsymmetricVerifyDigest' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
1759: |
The operands of a logical '&&' in function 'TEE_AsymmetricVerifyDigest' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
1767: |
Declare parameter 'operation' as typedef to pointer to const object |
MISRAC2012-RULE_8_13-b-4 |
|
1769: |
Declare parameter 'derivedKey' as typedef to pointer to const object |
MISRAC2012-RULE_8_13-b-4 |
|
1773: |
The dimension of array 'ua' is not an integer constant expression |
MISRAC2012-RULE_18_8-a-2 |
|
1775: |
Conditional statement 'if' in a function 'TEE_DeriveKey' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1775: |
Expression of pointer type is compared with '0' |
MISRAC2012-RULE_11_9-b-2 |
|
1775: |
Expression of pointer type is compared with '0' |
MISRAC2012-RULE_11_9-b-2 |
|
1775: |
The operands of a logical '||' in function 'TEE_DeriveKey' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
1775: |
The operands of a logical '||' in function 'TEE_DeriveKey' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
1780: |
Conditional statement 'if' in a function 'TEE_DeriveKey' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1780: |
Operands of the '!=' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
1784: |
Conditional statement 'if' in a function 'TEE_DeriveKey' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1784: |
Operands of the '!=' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
1786: |
Conditional statement 'if' in a function 'TEE_DeriveKey' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1786: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
1788: |
Conditional statement 'if' in a function 'TEE_DeriveKey' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1788: |
Operands of the '!=' operator have different essential types: 'unsigned int' and 'TEE_OperationMode' |
MISRAC2012-RULE_10_4-a-2 |
|
1790: |
Conditional statement 'if' in a function 'TEE_DeriveKey' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1790: |
Operands of the '&' operator have different essential types: 'unsigned int' and 'int' |
MISRAC2012-RULE_10_4-a-2 |
|
1790: |
Operands of the '==' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
1790: |
The right hand operand of the '&' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
1793: |
Pointer to incomplete type 'struct __TEE_ObjectHandle *' should not be cast to type 'unsigned long' |
MISRAC2012-RULE_11_2-a-2 |
|
1793: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
1794: |
Conditional statement 'if' in a function 'TEE_DeriveKey' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1794: |
Operands of the '!=' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
1797: |
Conditional statement 'if' in a function 'TEE_DeriveKey' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1797: |
Integer constant '0xA0000000' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
1799: |
Conditional statement 'if' in a function 'TEE_DeriveKey' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1799: |
Operands of the '!=' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
1799: |
Operands of the '&' operator have different essential types: 'unsigned int' and 'int' |
MISRAC2012-RULE_10_4-a-2 |
|
1799: |
The right hand operand of the '&' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
1804: |
Pointer to incomplete type 'struct __TEE_ObjectHandle *' should not be cast to type 'unsigned long' |
MISRAC2012-RULE_11_2-a-2 |
|
1804: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
1805: |
Conditional statement 'if' in a function 'TEE_DeriveKey' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1805: |
Operands of the '!=' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
1811: |
The function 'TEE_GenerateRandom' is referenced only in the translation unit where it is defined |
MISRAC2012-RULE_8_7-a-4 |
|
1816: |
Conditional statement 'if' in a function 'TEE_GenerateRandom' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1816: |
Operands of the '!=' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
1820: |
Reserved name 'rand' used |
MISRAC2012-RULE_21_2-b-2 |
|
1820: |
Reserved name 'rand' used |
MISRAC2012-RULE_21_2-c-2 |
|
1820: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
1822: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
1824: |
The argument number '2' (8 byte essential type) is passed to the function 'TEE_GenerateRandom' as a parameter with a narrower
essential type (4 byte)
|
MISRAC2012-RULE_10_3-a-2 |
|
1830: |
The left hand operand of the '&' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
1830: |
The right hand operand of the '&' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
1833: |
Identifiers given in declaration of 'TEE_IsAlgorithmSupported' function (file: 'tee_api.h', line: '229') are: 'algId' not:
'alg'
|
MISRAC2012-RULE_8_3-b-2 |
|
1833: |
Value 105 is out of acceptable range: 'lower than 30' |
METRIC.CC-3 |
|
1837: |
Conditional statement 'if' in a function 'TEE_IsAlgorithmSupported' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1837: |
Operands of the '==' operator have different essential types: 'unsigned int' and 'int' |
MISRAC2012-RULE_10_4-a-2 |
|
1838: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
1841: |
Conditional statement 'if' in a function 'TEE_IsAlgorithmSupported' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1841: |
Operands of the '==' operator have different essential types: 'unsigned int' and 'int' |
MISRAC2012-RULE_10_4-a-2 |
|
1842: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
1845: |
Conditional statement 'if' in a function 'TEE_IsAlgorithmSupported' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1845: |
Operands of the '==' operator have different essential types: 'unsigned int' and 'int' |
MISRAC2012-RULE_10_4-a-2 |
|
1846: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
1849: |
Conditional statement 'if' in a function 'TEE_IsAlgorithmSupported' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1849: |
Operands of the '==' operator have different essential types: 'unsigned int' and 'int' |
MISRAC2012-RULE_10_4-a-2 |
|
1850: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
1853: |
Conditional statement 'if' in a function 'TEE_IsAlgorithmSupported' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1853: |
Operands of the '==' operator have different essential types: 'unsigned int' and 'int' |
MISRAC2012-RULE_10_4-a-2 |
|
1854: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
1857: |
Conditional statement 'if' in a function 'TEE_IsAlgorithmSupported' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1857: |
Operands of the '==' operator have different essential types: 'unsigned int' and 'int' |
MISRAC2012-RULE_10_4-a-2 |
|
1857: |
The operands of a logical '||' in function 'TEE_IsAlgorithmSupported' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
1858: |
Operands of the '==' operator have different essential types: 'unsigned int' and 'int' |
MISRAC2012-RULE_10_4-a-2 |
|
1858: |
The operands of a logical '||' in function 'TEE_IsAlgorithmSupported' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
1859: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
1862: |
Conditional statement 'if' in a function 'TEE_IsAlgorithmSupported' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1862: |
Operands of the '==' operator have different essential types: 'unsigned int' and 'int' |
MISRAC2012-RULE_10_4-a-2 |
|
1863: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
1866: |
Conditional statement 'if' in a function 'TEE_IsAlgorithmSupported' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1866: |
Operands of the '==' operator have different essential types: 'unsigned int' and 'int' |
MISRAC2012-RULE_10_4-a-2 |
|
1867: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
1870: |
Conditional statement 'if' in a function 'TEE_IsAlgorithmSupported' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1870: |
Operands of the '==' operator have different essential types: 'unsigned int' and 'int' |
MISRAC2012-RULE_10_4-a-2 |
|
1871: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
1876: |
Conditional statement 'if' in a function 'TEE_IsAlgorithmSupported' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1876: |
Operands of the '==' operator have different essential types: 'unsigned int' and 'int' |
MISRAC2012-RULE_10_4-a-2 |
|
1876: |
The operands of a logical '||' in function 'TEE_IsAlgorithmSupported' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
1877: |
Operands of the '==' operator have different essential types: 'unsigned int' and 'int' |
MISRAC2012-RULE_10_4-a-2 |
|
1877: |
The operands of a logical '||' in function 'TEE_IsAlgorithmSupported' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
1878: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
1881: |
Conditional statement 'if' in a function 'TEE_IsAlgorithmSupported' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1881: |
Operands of the '==' operator have different essential types: 'unsigned int' and 'int' |
MISRAC2012-RULE_10_4-a-2 |
|
1881: |
The operands of a logical '||' in function 'TEE_IsAlgorithmSupported' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
1882: |
Operands of the '==' operator have different essential types: 'unsigned int' and 'int' |
MISRAC2012-RULE_10_4-a-2 |
|
1882: |
The operands of a logical '||' in function 'TEE_IsAlgorithmSupported' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
1883: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
1886: |
Conditional statement 'if' in a function 'TEE_IsAlgorithmSupported' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1886: |
Operands of the '==' operator have different essential types: 'unsigned int' and 'int' |
MISRAC2012-RULE_10_4-a-2 |
|
1886: |
The operands of a logical '||' in function 'TEE_IsAlgorithmSupported' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
1887: |
Operands of the '==' operator have different essential types: 'unsigned int' and 'int' |
MISRAC2012-RULE_10_4-a-2 |
|
1887: |
The operands of a logical '||' in function 'TEE_IsAlgorithmSupported' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
1888: |
Operands of the '==' operator have different essential types: 'unsigned int' and 'int' |
MISRAC2012-RULE_10_4-a-2 |
|
1888: |
The operands of a logical '||' in function 'TEE_IsAlgorithmSupported' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
1889: |
Operands of the '==' operator have different essential types: 'unsigned int' and 'int' |
MISRAC2012-RULE_10_4-a-2 |
|
1889: |
The operands of a logical '||' in function 'TEE_IsAlgorithmSupported' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
1890: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
1894: |
Conditional statement 'if' in a function 'TEE_IsAlgorithmSupported' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1894: |
Operands of the '==' operator have different essential types: 'unsigned int' and 'int' |
MISRAC2012-RULE_10_4-a-2 |
|
1895: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
1898: |
Conditional statement 'if' in a function 'TEE_IsAlgorithmSupported' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1898: |
Operands of the '==' operator have different essential types: 'unsigned int' and 'int' |
MISRAC2012-RULE_10_4-a-2 |
|
1899: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
1902: |
Conditional statement 'if' in a function 'TEE_IsAlgorithmSupported' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1902: |
Operands of the '==' operator have different essential types: 'unsigned int' and 'int' |
MISRAC2012-RULE_10_4-a-2 |
|
1903: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
1906: |
Conditional statement 'if' in a function 'TEE_IsAlgorithmSupported' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1906: |
Operands of the '==' operator have different essential types: 'unsigned int' and 'int' |
MISRAC2012-RULE_10_4-a-2 |
|
1907: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
1910: |
Conditional statement 'if' in a function 'TEE_IsAlgorithmSupported' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1910: |
Operands of the '==' operator have different essential types: 'unsigned int' and 'int' |
MISRAC2012-RULE_10_4-a-2 |
|
1911: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
1914: |
Conditional statement 'if' in a function 'TEE_IsAlgorithmSupported' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1914: |
Operands of the '==' operator have different essential types: 'unsigned int' and 'int' |
MISRAC2012-RULE_10_4-a-2 |
|
1915: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
1918: |
Conditional statement 'if' in a function 'TEE_IsAlgorithmSupported' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1918: |
Operands of the '==' operator have different essential types: 'unsigned int' and 'int' |
MISRAC2012-RULE_10_4-a-2 |
|
1919: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
1923: |
Conditional statement 'if' in a function 'TEE_IsAlgorithmSupported' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1923: |
Operands of the '==' operator have different essential types: 'unsigned int' and 'int' |
MISRAC2012-RULE_10_4-a-2 |
|
1924: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
1927: |
Conditional statement 'if' in a function 'TEE_IsAlgorithmSupported' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1927: |
Operands of the '==' operator have different essential types: 'unsigned int' and 'int' |
MISRAC2012-RULE_10_4-a-2 |
|
1928: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
1931: |
Conditional statement 'if' in a function 'TEE_IsAlgorithmSupported' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1931: |
Operands of the '==' operator have different essential types: 'unsigned int' and 'int' |
MISRAC2012-RULE_10_4-a-2 |
|
1932: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
1935: |
Conditional statement 'if' in a function 'TEE_IsAlgorithmSupported' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1935: |
Operands of the '==' operator have different essential types: 'unsigned int' and 'int' |
MISRAC2012-RULE_10_4-a-2 |
|
1936: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
1939: |
Conditional statement 'if' in a function 'TEE_IsAlgorithmSupported' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1939: |
Operands of the '==' operator have different essential types: 'unsigned int' and 'int' |
MISRAC2012-RULE_10_4-a-2 |
|
1940: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
1943: |
Conditional statement 'if' in a function 'TEE_IsAlgorithmSupported' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1943: |
Operands of the '==' operator have different essential types: 'unsigned int' and 'int' |
MISRAC2012-RULE_10_4-a-2 |
|
1944: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
1947: |
Conditional statement 'if' in a function 'TEE_IsAlgorithmSupported' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1947: |
Operands of the '==' operator have different essential types: 'unsigned int' and 'int' |
MISRAC2012-RULE_10_4-a-2 |
|
1948: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
1952: |
Conditional statement 'if' in a function 'TEE_IsAlgorithmSupported' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1952: |
Operands of the '==' operator have different essential types: 'unsigned int' and 'int' |
MISRAC2012-RULE_10_4-a-2 |
|
1953: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
1957: |
Conditional statement 'if' in a function 'TEE_IsAlgorithmSupported' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1957: |
Operands of the '==' operator have different essential types: 'unsigned int' and 'int' |
MISRAC2012-RULE_10_4-a-2 |
|
1958: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
1961: |
Conditional statement 'if' in a function 'TEE_IsAlgorithmSupported' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1961: |
Operands of the '==' operator have different essential types: 'unsigned int' and 'int' |
MISRAC2012-RULE_10_4-a-2 |
|
1962: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
1965: |
Conditional statement 'if' in a function 'TEE_IsAlgorithmSupported' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1965: |
Operands of the '==' operator have different essential types: 'unsigned int' and 'int' |
MISRAC2012-RULE_10_4-a-2 |
|
1966: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
1971: |
Conditional statement 'if' in a function 'TEE_IsAlgorithmSupported' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1971: |
Operands of the '==' operator have different essential types: 'unsigned int' and 'int' |
MISRAC2012-RULE_10_4-a-2 |
|
1972: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
1975: |
Conditional statement 'if' in a function 'TEE_IsAlgorithmSupported' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1975: |
Operands of the '==' operator have different essential types: 'unsigned int' and 'int' |
MISRAC2012-RULE_10_4-a-2 |
|
1975: |
The operands of a logical '||' in function 'TEE_IsAlgorithmSupported' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
1976: |
Operands of the '==' operator have different essential types: 'unsigned int' and 'int' |
MISRAC2012-RULE_10_4-a-2 |
|
1976: |
The operands of a logical '||' in function 'TEE_IsAlgorithmSupported' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
1977: |
Operands of the '==' operator have different essential types: 'unsigned int' and 'int' |
MISRAC2012-RULE_10_4-a-2 |
|
1977: |
The operands of a logical '||' in function 'TEE_IsAlgorithmSupported' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
1978: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
1981: |
Conditional statement 'if' in a function 'TEE_IsAlgorithmSupported' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1981: |
Operands of the '==' operator have different essential types: 'unsigned int' and 'int' |
MISRAC2012-RULE_10_4-a-2 |
|
1982: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
1985: |
Conditional statement 'if' in a function 'TEE_IsAlgorithmSupported' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1985: |
Operands of the '==' operator have different essential types: 'unsigned int' and 'int' |
MISRAC2012-RULE_10_4-a-2 |
|
1985: |
The operands of a logical '||' in function 'TEE_IsAlgorithmSupported' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
1986: |
Operands of the '==' operator have different essential types: 'unsigned int' and 'int' |
MISRAC2012-RULE_10_4-a-2 |
|
1986: |
The operands of a logical '||' in function 'TEE_IsAlgorithmSupported' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
1987: |
Operands of the '==' operator have different essential types: 'unsigned int' and 'int' |
MISRAC2012-RULE_10_4-a-2 |
|
1987: |
The operands of a logical '||' in function 'TEE_IsAlgorithmSupported' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
1988: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
1991: |
Conditional statement 'if' in a function 'TEE_IsAlgorithmSupported' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1991: |
Operands of the '==' operator have different essential types: 'unsigned int' and 'int' |
MISRAC2012-RULE_10_4-a-2 |
|
1991: |
The operands of a logical '||' in function 'TEE_IsAlgorithmSupported' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
1992: |
Operands of the '==' operator have different essential types: 'unsigned int' and 'int' |
MISRAC2012-RULE_10_4-a-2 |
|
1992: |
The operands of a logical '||' in function 'TEE_IsAlgorithmSupported' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
1993: |
Operands of the '==' operator have different essential types: 'unsigned int' and 'int' |
MISRAC2012-RULE_10_4-a-2 |
|
1993: |
The operands of a logical '||' in function 'TEE_IsAlgorithmSupported' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
1994: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
1997: |
Conditional statement 'if' in a function 'TEE_IsAlgorithmSupported' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1997: |
Operands of the '==' operator have different essential types: 'unsigned int' and 'int' |
MISRAC2012-RULE_10_4-a-2 |
|
1997: |
The operands of a logical '||' in function 'TEE_IsAlgorithmSupported' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
1998: |
Operands of the '==' operator have different essential types: 'unsigned int' and 'int' |
MISRAC2012-RULE_10_4-a-2 |
|
1998: |
The operands of a logical '||' in function 'TEE_IsAlgorithmSupported' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
1999: |
Operands of the '==' operator have different essential types: 'unsigned int' and 'int' |
MISRAC2012-RULE_10_4-a-2 |
|
1999: |
The operands of a logical '||' in function 'TEE_IsAlgorithmSupported' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
2000: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
2003: |
Conditional statement 'if' in a function 'TEE_IsAlgorithmSupported' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
2003: |
Operands of the '==' operator have different essential types: 'unsigned int' and 'int' |
MISRAC2012-RULE_10_4-a-2 |
|
2003: |
The operands of a logical '||' in function 'TEE_IsAlgorithmSupported' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
2004: |
Operands of the '==' operator have different essential types: 'unsigned int' and 'int' |
MISRAC2012-RULE_10_4-a-2 |
|
2004: |
The operands of a logical '||' in function 'TEE_IsAlgorithmSupported' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
2005: |
Operands of the '==' operator have different essential types: 'unsigned int' and 'int' |
MISRAC2012-RULE_10_4-a-2 |
|
2005: |
The operands of a logical '||' in function 'TEE_IsAlgorithmSupported' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
2006: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
2009: |
Conditional statement 'if' in a function 'TEE_IsAlgorithmSupported' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
2009: |
Integer constant '0xF0000830' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
2010: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
2012: |
Conditional statement 'if' in a function 'TEE_IsAlgorithmSupported' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
2012: |
Operands of the '==' operator have different essential types: 'unsigned int' and 'int' |
MISRAC2012-RULE_10_4-a-2 |
|
2013: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
2017: |
Conditional statement 'if' in a function 'TEE_IsAlgorithmSupported' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
2017: |
Operands of the '==' operator have different essential types: 'unsigned int' and 'int' |
MISRAC2012-RULE_10_4-a-2 |
|
2018: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
2021: |
Conditional statement 'if' in a function 'TEE_IsAlgorithmSupported' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
2021: |
Operands of the '==' operator have different essential types: 'unsigned int' and 'int' |
MISRAC2012-RULE_10_4-a-2 |
|
2022: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
2025: |
Conditional statement 'if' in a function 'TEE_IsAlgorithmSupported' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
2025: |
Operands of the '==' operator have different essential types: 'unsigned int' and 'int' |
MISRAC2012-RULE_10_4-a-2 |
|
2026: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
2030: |
Conditional statement 'if' in a function 'TEE_IsAlgorithmSupported' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
2030: |
Integer constant '0x80000032' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
2031: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
2034: |
Conditional statement 'if' in a function 'TEE_IsAlgorithmSupported' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
2034: |
Integer constant '0x80001042' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
2034: |
Operands of the '==' operator have different essential types: 'unsigned int' and 'int' |
MISRAC2012-RULE_10_4-a-2 |
|
2034: |
The operands of a logical '||' in function 'TEE_IsAlgorithmSupported' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
2034: |
The operands of a logical '||' in function 'TEE_IsAlgorithmSupported' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
2035: |
Operands of the '==' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
2035: |
The operands of a logical '&&' in function 'TEE_IsAlgorithmSupported' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
2036: |
Provide only one exit point in 'TEE_IsAlgorithmSupported' function |
MISRAC2012-RULE_15_5-a-4 |
|
2037: |
Conditional statement 'if' in a function 'TEE_IsAlgorithmSupported' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
2037: |
Integer constant '0x80002042' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
2037: |
Operands of the '==' operator have different essential types: 'unsigned int' and 'int' |
MISRAC2012-RULE_10_4-a-2 |
|
2037: |
The operands of a logical '||' in function 'TEE_IsAlgorithmSupported' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
2037: |
The operands of a logical '||' in function 'TEE_IsAlgorithmSupported' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
2038: |
Operands of the '==' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
2038: |
The operands of a logical '&&' in function 'TEE_IsAlgorithmSupported' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
2039: |
Provide only one exit point in 'TEE_IsAlgorithmSupported' function |
MISRAC2012-RULE_15_5-a-4 |
|
2040: |
Conditional statement 'if' in a function 'TEE_IsAlgorithmSupported' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
2040: |
Integer constant '0x80003042' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
2040: |
Operands of the '==' operator have different essential types: 'unsigned int' and 'int' |
MISRAC2012-RULE_10_4-a-2 |
|
2040: |
The operands of a logical '||' in function 'TEE_IsAlgorithmSupported' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
2040: |
The operands of a logical '||' in function 'TEE_IsAlgorithmSupported' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
2041: |
Operands of the '==' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
2041: |
The operands of a logical '&&' in function 'TEE_IsAlgorithmSupported' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
2042: |
Provide only one exit point in 'TEE_IsAlgorithmSupported' function |
MISRAC2012-RULE_15_5-a-4 |
|
2043: |
Conditional statement 'if' in a function 'TEE_IsAlgorithmSupported' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
2043: |
Integer constant '0x80004042' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
2043: |
Operands of the '==' operator have different essential types: 'unsigned int' and 'int' |
MISRAC2012-RULE_10_4-a-2 |
|
2043: |
The operands of a logical '||' in function 'TEE_IsAlgorithmSupported' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
2043: |
The operands of a logical '||' in function 'TEE_IsAlgorithmSupported' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
2044: |
Operands of the '==' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
2044: |
The operands of a logical '&&' in function 'TEE_IsAlgorithmSupported' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
2045: |
Provide only one exit point in 'TEE_IsAlgorithmSupported' function |
MISRAC2012-RULE_15_5-a-4 |
|
2046: |
Conditional statement 'if' in a function 'TEE_IsAlgorithmSupported' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
2046: |
Integer constant '0x80005042' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
2046: |
Operands of the '==' operator have different essential types: 'unsigned int' and 'int' |
MISRAC2012-RULE_10_4-a-2 |
|
2046: |
The operands of a logical '||' in function 'TEE_IsAlgorithmSupported' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
2046: |
The operands of a logical '||' in function 'TEE_IsAlgorithmSupported' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
2047: |
Operands of the '==' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
2047: |
The operands of a logical '&&' in function 'TEE_IsAlgorithmSupported' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
2048: |
Provide only one exit point in 'TEE_IsAlgorithmSupported' function |
MISRAC2012-RULE_15_5-a-4 |
|
2051: |
Conditional statement 'if' in a function 'TEE_IsAlgorithmSupported' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
2051: |
Operands of the '==' operator have different essential types: 'unsigned int' and 'int' |
MISRAC2012-RULE_10_4-a-2 |
|
2051: |
Operands of the '==' operator have different essential types: 'unsigned int' and 'short' |
MISRAC2012-RULE_10_4-a-2 |
|
2051: |
The operands of a logical '&&' in function 'TEE_IsAlgorithmSupported' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
2051: |
The operands of a logical '&&' in function 'TEE_IsAlgorithmSupported' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
2052: |
Provide only one exit point in 'TEE_IsAlgorithmSupported' function |
MISRAC2012-RULE_15_5-a-4 |
|
2055: |
Conditional statement 'if' in a function 'TEE_IsAlgorithmSupported' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
2055: |
Operands of the '==' operator have different essential types: 'unsigned int' and 'int' |
MISRAC2012-RULE_10_4-a-2 |
|
2055: |
Operands of the '==' operator have different essential types: 'unsigned int' and 'short' |
MISRAC2012-RULE_10_4-a-2 |
|
2055: |
The operands of a logical '&&' in function 'TEE_IsAlgorithmSupported' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
2055: |
The operands of a logical '&&' in function 'TEE_IsAlgorithmSupported' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
2056: |
Provide only one exit point in 'TEE_IsAlgorithmSupported' function |
MISRAC2012-RULE_15_5-a-4 |
|
2059: |
Conditional statement 'if' in a function 'TEE_IsAlgorithmSupported' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
2059: |
Integer constant '0x80000045' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
2059: |
Operands of the '==' operator have different essential types: 'unsigned int' and 'short' |
MISRAC2012-RULE_10_4-a-2 |
|
2059: |
The operands of a logical '&&' in function 'TEE_IsAlgorithmSupported' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
2059: |
The operands of a logical '&&' in function 'TEE_IsAlgorithmSupported' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
2060: |
Provide only one exit point in 'TEE_IsAlgorithmSupported' function |
MISRAC2012-RULE_15_5-a-4 |
|
2063: |
Integer constant '0xFFFF000A' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
2063: |
Provide only one exit point in 'TEE_IsAlgorithmSupported' function |
MISRAC2012-RULE_15_5-a-4 |
|
2065: |
Conditional statement 'if' in a function 'TEE_IsAlgorithmSupported' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
2065: |
Operands of the '==' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
2066: |
Provide only one exit point in 'TEE_IsAlgorithmSupported' function |
MISRAC2012-RULE_15_5-a-4 |
|
2067: |
Integer constant '0xFFFF000A' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
2067: |
Provide only one exit point in 'TEE_IsAlgorithmSupported' function |
MISRAC2012-RULE_15_5-a-4 |
| /optee_os_MISRA/libutee/tee_api_panic.c |
|
30: |
Parameter 'msg' is not used in function 'check_res' |
MISRAC2012-RULE_2_7-a-4 |
|
32: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
40: |
Conditional statement 'if' in a function 'check_access' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
40: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
41: |
Provide only one exit point in 'check_access' function |
MISRAC2012-RULE_15_5-a-4 |
|
43: |
Conditional statement 'if' in a function 'check_access' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
43: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
44: |
Integer constant '0xFFFF000F' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
44: |
Provide only one exit point in 'check_access' function |
MISRAC2012-RULE_15_5-a-4 |
|
46: |
Conditional statement 'if' in a function 'check_access' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
47: |
Provide only one exit point in 'check_access' function |
MISRAC2012-RULE_15_5-a-4 |
|
47: |
The argument number '3' (8 byte essential type) is passed to the function 'TEE_CheckMemoryAccessRights' as a parameter with
a narrower essential type (4 byte)
|
MISRAC2012-RULE_10_3-a-2 |
|
49: |
Provide only one exit point in 'check_access' function |
MISRAC2012-RULE_15_5-a-4 |
|
52: |
Reserved name '__utee_check_outbuf_annotation' used |
MISRAC2012-RULE_21_2-a-2 |
|
55: |
The argument number '1' ('essentially signed' type) is passed to the function 'check_access' as a parameter with the 'essentially
unsigned' type
|
MISRAC2012-RULE_10_3-b-2 |
|
55: |
The left hand operand of the '|' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
55: |
The right hand operand of the '|' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
| +
|
57: |
"len" may possibly be null |
MISRAC2012-DIR_4_1-b-2 |
| |
|
tee_api_panic.c (54): check_res("[outbuf] len",
tee_api_panic.c (55): check_access(ACCESS_RW, len, sizeof(*len)));
tee_api_panic.c (40): if (!len) *** Condition evaluation: !len (false)
Source of null value
tee_api_panic.c (43): if (!buf) *** Null value carrier: buf *** Condition evaluation: !buf (assuming true)
tee_api_panic.c (44): return TEE_ERROR_SECURITY;
tee_api_panic.c (54): check_res("[outbuf] len", *** Null value carrier: len
tee_api_panic.c (32): if (res) { *** Condition evaluation: (res != 0) (true)
tee_api_panic.c (34): TEE_Panic(0);
tee_api_panic.c (24): _utee_panic(panicCode);
tee_api_panic.c (56): check_res("[outbuf] buf",
Null pointer dereferencing point
tee_api_panic.c (57): check_access(ACCESS_W_ANY, buf, *len)); *** Null value carrier: len |
|
|
57: |
The argument number '1' ('essentially signed' type) is passed to the function 'check_access' as a parameter with the 'essentially
unsigned' type
|
MISRAC2012-RULE_10_3-b-2 |
|
57: |
The left hand operand of the '|' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
57: |
The right hand operand of the '|' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
60: |
Reserved name '__utee_check_instring_annotation' used |
MISRAC2012-RULE_21_2-a-2 |
|
63: |
Cast from 'const char *' removes 'const' qualifier |
MISRAC2012-RULE_11_8-a-2 |
|
63: |
Operands of the '+' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
66: |
Reserved name '__utee_check_outstring_annotation' used |
MISRAC2012-RULE_21_2-a-2 |
|
69: |
The argument number '1' ('essentially signed' type) is passed to the function 'check_access' as a parameter with the 'essentially
unsigned' type
|
MISRAC2012-RULE_10_3-b-2 |
|
69: |
The left hand operand of the '|' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
69: |
The right hand operand of the '|' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
| +
|
71: |
"len" may possibly be null |
MISRAC2012-DIR_4_1-b-2 |
| |
|
tee_api_panic.c (68): check_res("[outstring] len",
tee_api_panic.c (69): check_access(ACCESS_RW, len, sizeof(*len)));
tee_api_panic.c (40): if (!len) *** Condition evaluation: !len (false)
Source of null value
tee_api_panic.c (43): if (!buf) *** Null value carrier: buf *** Condition evaluation: !buf (assuming true)
tee_api_panic.c (44): return TEE_ERROR_SECURITY;
tee_api_panic.c (68): check_res("[outstring] len", *** Null value carrier: len
tee_api_panic.c (32): if (res) { *** Condition evaluation: (res != 0) (true)
tee_api_panic.c (34): TEE_Panic(0);
tee_api_panic.c (24): _utee_panic(panicCode);
tee_api_panic.c (70): check_res("[outstring] buf",
Null pointer dereferencing point
tee_api_panic.c (71): check_access(ACCESS_W_ANY, buf, *len)); *** Null value carrier: len |
|
|
71: |
The argument number '1' ('essentially signed' type) is passed to the function 'check_access' as a parameter with the 'essentially
unsigned' type
|
MISRAC2012-RULE_10_3-b-2 |
|
71: |
The left hand operand of the '|' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
71: |
The right hand operand of the '|' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
74: |
Reserved name '__utee_check_out_annotation' used |
MISRAC2012-RULE_21_2-a-2 |
|
80: |
Reserved name '__utee_check_attr_in_annotation' used |
MISRAC2012-RULE_21_2-a-2 |
|
83: |
Cast from 'const TEE_Attribute *' removes 'const' qualifier |
MISRAC2012-RULE_11_8-a-2 |
|
86: |
Reserved name '__utee_check_inout_annotation' used |
MISRAC2012-RULE_21_2-a-2 |
|
89: |
The argument number '1' ('essentially signed' type) is passed to the function 'check_access' as a parameter with the 'essentially
unsigned' type
|
MISRAC2012-RULE_10_3-b-2 |
|
89: |
The left hand operand of the '|' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
89: |
The right hand operand of the '|' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
| /optee_os_MISRA/libutee/tee_api_private.h |
|
12: |
Reserved name '__utee_from_attr' used |
MISRAC2012-RULE_21_2-a-2 |
|
15: |
Reserved name '__utee_entry' used |
MISRAC2012-RULE_21_2-a-2 |
|
15: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
15: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
16: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
23: |
Reserved name '__utee_gprof_init' used |
MISRAC2012-RULE_21_2-a-2 |
|
24: |
Reserved name '__utee_gprof_fini' used |
MISRAC2012-RULE_21_2-a-2 |
|
32: |
Reserved name '__utee_check_out_annotation' used |
MISRAC2012-RULE_21_2-a-2 |
|
33: |
Reserved name '__utee_check_inout_annotation' used |
MISRAC2012-RULE_21_2-a-2 |
|
34: |
Reserved name '__utee_check_attr_in_annotation' used |
MISRAC2012-RULE_21_2-a-2 |
|
35: |
Reserved name '__utee_check_outbuf_annotation' used |
MISRAC2012-RULE_21_2-a-2 |
|
36: |
Reserved name '__utee_check_instring_annotation' used |
MISRAC2012-RULE_21_2-a-2 |
|
37: |
Reserved name '__utee_check_outstring_annotation' used |
MISRAC2012-RULE_21_2-a-2 |
| /optee_os_MISRA/libutee/tee_api_property.c |
|
24: |
An unused macro declaration 'PROP_STR_MAX' has been found |
MISRAC2012-RULE_2_5-a-4 |
|
33: |
Declaration of object 'tee_props' does not precede its definition |
MISRAC2012-RULE_8_4-a-2 |
|
33: |
The object 'tee_props' is referenced only in the translation unit where it is defined |
MISRAC2012-RULE_8_7-a-4 |
|
51: |
Declare parameter 'h' as typedef to pointer to const object |
MISRAC2012-RULE_8_13-b-4 |
|
55: |
Integer constant '0xFFFFFFFF' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
55: |
The expression of type 'unsigned int' should not be cast to pointer to incomplete type 'struct __TEE_PropSetHandle *' |
MISRAC2012-RULE_11_2-a-2 |
|
58: |
Integer constant '0xFFFFFFFE' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
58: |
The expression of type 'unsigned int' should not be cast to pointer to incomplete type 'struct __TEE_PropSetHandle *' |
MISRAC2012-RULE_11_2-a-2 |
|
61: |
Integer constant '0xFFFFFFFD' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
61: |
The expression of type 'unsigned int' should not be cast to pointer to incomplete type 'struct __TEE_PropSetHandle *' |
MISRAC2012-RULE_11_2-a-2 |
|
65: |
Integer constant '0xFFFF0008' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
65: |
Provide only one exit point in 'propset_get' function |
MISRAC2012-RULE_15_5-a-4 |
|
68: |
Provide only one exit point in 'propset_get' function |
MISRAC2012-RULE_15_5-a-4 |
|
93: |
Operands of the '+' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
93: |
Pointer to void type should not be converted to pointer to object type 'const char *' in function's argument |
MISRAC2012-RULE_11_5-a-4 |
|
103: |
Conditional statement 'if' in a function 'propget_get_ext_prop' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
103: |
Pointer to void type should not be converted to pointer to object type 'const char *' in function's argument |
MISRAC2012-RULE_11_5-a-4 |
|
103: |
Pointer to void type should not be converted to pointer to object type 'const char *' in function's argument |
MISRAC2012-RULE_11_5-a-4 |
|
103: |
The operands of a logical '&&' in function 'propget_get_ext_prop' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
104: |
The operands of a logical '&&' in function 'propget_get_ext_prop' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
105: |
Integer constant '0xFFFF0000' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
105: |
Provide only one exit point in 'propget_get_ext_prop' function |
MISRAC2012-RULE_15_5-a-4 |
|
107: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with a narrower essential type (4 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
108: |
Integer constant '0xFFFF0010' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
108: |
Provide only one exit point in 'propget_get_ext_prop' function |
MISRAC2012-RULE_15_5-a-4 |
|
111: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with a narrower essential type (4 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
112: |
Provide only one exit point in 'propget_get_ext_prop' function |
MISRAC2012-RULE_15_5-a-4 |
|
114: |
Integer constant '0xFFFF0000' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
114: |
Provide only one exit point in 'propget_get_ext_prop' function |
MISRAC2012-RULE_15_5-a-4 |
|
118: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with a narrower essential type (4 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
119: |
Integer constant '0xFFFF0010' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
119: |
Provide only one exit point in 'propget_get_ext_prop' function |
MISRAC2012-RULE_15_5-a-4 |
|
122: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with a narrower essential type (4 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
123: |
Unused function's "memcpy" return value |
MISRAC2012-RULE_17_7-a-2 |
|
124: |
Provide only one exit point in 'propget_get_ext_prop' function |
MISRAC2012-RULE_15_5-a-4 |
|
127: |
Declare parameter 'h' as typedef to pointer to const object |
MISRAC2012-RULE_8_13-b-4 |
|
129: |
Integer constant '0xFFFFFFFF' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
129: |
The expression of type 'unsigned int' should not be cast to pointer to incomplete type 'struct __TEE_PropSetHandle *' |
MISRAC2012-RULE_11_2-a-2 |
|
129: |
The operands of a logical '||' in function 'is_propset_pseudo_handle' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
130: |
Integer constant '0xFFFFFFFE' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
130: |
The expression of type 'unsigned int' should not be cast to pointer to incomplete type 'struct __TEE_PropSetHandle *' |
MISRAC2012-RULE_11_2-a-2 |
|
130: |
The operands of a logical '||' in function 'is_propset_pseudo_handle' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
131: |
Integer constant '0xFFFFFFFD' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
131: |
The expression of type 'unsigned int' should not be cast to pointer to incomplete type 'struct __TEE_PropSetHandle *' |
MISRAC2012-RULE_11_2-a-2 |
|
131: |
The operands of a logical '||' in function 'is_propset_pseudo_handle' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
145: |
The names of the identifiers 'n' and 'h' (line: 134 in the 'tee_api_property.c' file) differ only in the interchange of the
similar characters
|
MISRAC2012-DIR_4_5-a-4 |
|
148: |
Conditional statement 'if' in a function 'propget_get_property' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
148: |
Operands of the '!=' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
149: |
Provide only one exit point in 'propget_get_property' function |
MISRAC2012-RULE_15_5-a-4 |
|
152: |
Conditional statement 'if' in a function 'propget_get_property' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
152: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
153: |
Provide only one exit point in 'propget_get_property' function |
MISRAC2012-RULE_15_5-a-4 |
|
153: |
The variable 'eps' used as the left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
158: |
Pointer to incomplete type 'struct __TEE_PropSetHandle *' should not be cast to type 'unsigned long' |
MISRAC2012-RULE_11_2-a-2 |
|
158: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
159: |
Operands of the '+' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
161: |
Conditional statement 'if' in a function 'propget_get_property' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
161: |
Operands of the '!=' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
162: |
Provide only one exit point in 'propget_get_property' function |
MISRAC2012-RULE_15_5-a-4 |
|
163: |
Pointer to incomplete type 'struct __TEE_PropSetHandle *' should not be cast to type 'unsigned long' |
MISRAC2012-RULE_11_2-a-2 |
|
163: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
166: |
Pointer to incomplete type 'struct __TEE_PropSetHandle *' should not be cast to type 'struct prop_enumerator *' |
MISRAC2012-RULE_11_2-a-2 |
|
169: |
Conditional statement 'if' in a function 'propget_get_property' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
169: |
Integer constant '0xffffffff' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
170: |
Integer constant '0xFFFF0008' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
170: |
Provide only one exit point in 'propget_get_property' function |
MISRAC2012-RULE_15_5-a-4 |
|
173: |
Conditional statement 'if' in a function 'propget_get_property' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
173: |
Operands of the '!=' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
174: |
Provide only one exit point in 'propget_get_property' function |
MISRAC2012-RULE_15_5-a-4 |
|
176: |
Conditional statement 'if' in a function 'propget_get_property' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
177: |
Provide only one exit point in 'propget_get_property' function |
MISRAC2012-RULE_15_5-a-4 |
|
177: |
The variable 'eps' used as the left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
178: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with a narrower essential type (4 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
180: |
Pointer to incomplete type 'struct __TEE_PropSetHandle *' should not be cast to type 'unsigned long' |
MISRAC2012-RULE_11_2-a-2 |
|
180: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
182: |
Conditional statement 'if' in a function 'propget_get_property' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
182: |
Integer constant '0xFFFF0008' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
183: |
Integer constant '0xFFFF0006' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
186: |
The expression of the 'essentially unsigned' type is assigned to an object with the 'essentially Enum' type |
MISRAC2012-RULE_10_3-b-2 |
|
187: |
Provide only one exit point in 'propget_get_property' function |
MISRAC2012-RULE_15_5-a-4 |
|
190: |
Identifiers given in declaration of 'TEE_GetPropertyAsString' function (file: 'tee_api.h', line: '18') are: 'valueBuffer,
valueBufferLen' not: 'value, value_len'
|
MISRAC2012-RULE_8_3-b-2 |
|
197: |
Variable 'tmp_buf' of pointer type is initialized with '0' |
MISRAC2012-RULE_11_9-a-2 |
|
197: |
Variable 'tmp_buf' of pointer type is initialized with '0' |
MISRAC2012-RULE_11_9-b-2 |
|
203: |
Conditional statement 'if' in a function 'TEE_GetPropertyAsString' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
208: |
Conditional statement 'if' in a function 'TEE_GetPropertyAsString' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
209: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with a narrower essential type (4 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
210: |
Integer constant '0x80000000' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
211: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
212: |
Integer constant '0xFFFF000C' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
213: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
218: |
Operands of the '!=' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
219: |
Integer constant '0xFFFF0010' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
226: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with a narrower essential type (4 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
230: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
235: |
Pointer to void type should not be converted to pointer to object type '_Bool *' |
MISRAC2012-RULE_11_5-a-4 |
|
240: |
Pointer to void type should not be converted to pointer to object type 'uint32_t *' |
MISRAC2012-RULE_11_5-a-4 |
|
241: |
The expression of the 'essentially signed' type is assigned to an object with the 'essentially unsigned' type |
MISRAC2012-RULE_10_3-b-2 |
|
241: |
Usage of 'snprintf' function is not allowed |
MISRAC2012-RULE_21_6-a-2 |
|
245: |
The expression of the 'essentially signed' type is assigned to an object with the 'essentially unsigned' type |
MISRAC2012-RULE_10_3-b-2 |
|
249: |
Pointer to void type should not be converted to pointer to object type 'TEE_Identity *' |
MISRAC2012-RULE_11_5-a-4 |
|
250: |
The expression of the 'essentially signed' type is assigned to an object with the 'essentially unsigned' type |
MISRAC2012-RULE_10_3-b-2 |
|
256: |
Pointer to void type should not be converted to pointer to object type 'const char *' in function's argument |
MISRAC2012-RULE_11_5-a-4 |
|
261: |
The operands of a logical '&&' in function 'TEE_GetPropertyAsString' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
262: |
The operands of a logical '&&' in function 'TEE_GetPropertyAsString' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
263: |
Integer constant '0xFFFF0000' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
264: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
269: |
Every non empty default clause in a switch statement shall be terminated with a break statement |
MISRAC2012-RULE_16_1-d-2 |
|
269: |
Every non empty default clause in a switch statement shall be terminated with a break statement |
MISRAC2012-RULE_16_3-b-2 |
|
270: |
Integer constant '0xFFFF0005' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
271: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
276: |
Conditional statement 'if' in a function 'TEE_GetPropertyAsString' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
277: |
Integer constant '0xFFFF0010' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
278: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with a narrower essential type (4 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
281: |
Conditional statement 'if' in a function 'TEE_GetPropertyAsString' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
281: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
283: |
Conditional statement 'if' in a function 'TEE_GetPropertyAsString' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
283: |
Operands of the '!=' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
283: |
The operands of a logical '&&' in function 'TEE_GetPropertyAsString' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
284: |
Integer constant '0xFFFF0008' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
284: |
The operands of a logical '&&' in function 'TEE_GetPropertyAsString' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
285: |
Integer constant '0xFFFF0010' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
285: |
The operands of a logical '&&' in function 'TEE_GetPropertyAsString' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
296: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with a narrower essential type (4 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
298: |
Conditional statement 'if' in a function 'TEE_GetPropertyAsBool' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
305: |
Conditional statement 'if' in a function 'TEE_GetPropertyAsBool' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
306: |
Integer constant '0xFFFF0005' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
307: |
Conditional statement 'if' in a function 'TEE_GetPropertyAsBool' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
307: |
Operands of the '!=' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
308: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
311: |
Conditional statement 'if' in a function 'TEE_GetPropertyAsBool' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
311: |
Operands of the '!=' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
311: |
The operands of a logical '&&' in function 'TEE_GetPropertyAsBool' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
312: |
Integer constant '0xFFFF0008' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
312: |
The operands of a logical '&&' in function 'TEE_GetPropertyAsBool' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
313: |
Integer constant '0xFFFF0005' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
313: |
The operands of a logical '&&' in function 'TEE_GetPropertyAsBool' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
324: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with a narrower essential type (4 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
326: |
Conditional statement 'if' in a function 'TEE_GetPropertyAsU32' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
333: |
Conditional statement 'if' in a function 'TEE_GetPropertyAsU32' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
334: |
Integer constant '0xFFFF0005' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
336: |
Conditional statement 'if' in a function 'TEE_GetPropertyAsU32' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
336: |
Operands of the '!=' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
336: |
The operands of a logical '&&' in function 'TEE_GetPropertyAsU32' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
337: |
Integer constant '0xFFFF0008' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
337: |
The operands of a logical '&&' in function 'TEE_GetPropertyAsU32' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
338: |
Integer constant '0xFFFF0005' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
338: |
The operands of a logical '&&' in function 'TEE_GetPropertyAsU32' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
344: |
Identifiers given in declaration of 'TEE_GetPropertyAsBinaryBlock' function (file: 'tee_api.h', line: '28') are: 'valueBuffer,
valueBufferLen' not: 'value, value_len'
|
MISRAC2012-RULE_8_3-b-2 |
|
351: |
Conditional statement 'if' in a function 'TEE_GetPropertyAsBinaryBlock' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
358: |
Conditional statement 'if' in a function 'TEE_GetPropertyAsBinaryBlock' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
359: |
Integer constant '0xFFFF0005' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
361: |
Conditional statement 'if' in a function 'TEE_GetPropertyAsBinaryBlock' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
361: |
Operands of the '!=' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
361: |
The operands of a logical '&&' in function 'TEE_GetPropertyAsBinaryBlock' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
362: |
Integer constant '0xFFFF0008' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
362: |
The operands of a logical '&&' in function 'TEE_GetPropertyAsBinaryBlock' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
363: |
Integer constant '0xFFFF0005' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
363: |
The operands of a logical '&&' in function 'TEE_GetPropertyAsBinaryBlock' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
364: |
Integer constant '0xFFFF0010' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
364: |
The operands of a logical '&&' in function 'TEE_GetPropertyAsBinaryBlock' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
375: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with a narrower essential type (4 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
377: |
Conditional statement 'if' in a function 'TEE_GetPropertyAsUUID' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
384: |
Conditional statement 'if' in a function 'TEE_GetPropertyAsUUID' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
385: |
Integer constant '0xFFFF0005' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
387: |
Conditional statement 'if' in a function 'TEE_GetPropertyAsUUID' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
387: |
Operands of the '!=' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
387: |
The operands of a logical '&&' in function 'TEE_GetPropertyAsUUID' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
388: |
Integer constant '0xFFFF0008' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
388: |
The operands of a logical '&&' in function 'TEE_GetPropertyAsUUID' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
389: |
Integer constant '0xFFFF0005' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
389: |
The operands of a logical '&&' in function 'TEE_GetPropertyAsUUID' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
400: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with a narrower essential type (4 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
402: |
Conditional statement 'if' in a function 'TEE_GetPropertyAsIdentity' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
409: |
Conditional statement 'if' in a function 'TEE_GetPropertyAsIdentity' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
410: |
Integer constant '0xFFFF0005' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
412: |
Conditional statement 'if' in a function 'TEE_GetPropertyAsIdentity' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
412: |
Operands of the '!=' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
412: |
The operands of a logical '&&' in function 'TEE_GetPropertyAsIdentity' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
413: |
Integer constant '0xFFFF0008' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
413: |
The operands of a logical '&&' in function 'TEE_GetPropertyAsIdentity' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
414: |
Integer constant '0xFFFF0005' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
414: |
The operands of a logical '&&' in function 'TEE_GetPropertyAsIdentity' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
427: |
Pointer to void type should not be converted to pointer to object type 'struct prop_enumerator *' |
MISRAC2012-RULE_11_5-a-4 |
|
427: |
The argument number '1' (8 byte essential type) is passed to the function 'TEE_Malloc' as a parameter with a narrower essential
type (4 byte)
|
MISRAC2012-RULE_10_3-a-2 |
|
428: |
Integer constant '0x80000000' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
430: |
Integer constant '0xFFFF000C' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
431: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
434: |
The expression of type 'struct prop_enumerator *' should not be cast to pointer to incomplete type 'struct __TEE_PropSetHandle
*'
|
MISRAC2012-RULE_11_2-a-2 |
|
437: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
440: |
Conditional statement 'if' in a function 'TEE_AllocatePropertyEnumerator' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
440: |
Integer constant '0xFFFF000C' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
441: |
Provide only one exit point in 'TEE_AllocatePropertyEnumerator' function |
MISRAC2012-RULE_15_5-a-4 |
|
444: |
Provide only one exit point in 'TEE_AllocatePropertyEnumerator' function |
MISRAC2012-RULE_15_5-a-4 |
|
447: |
The function 'TEE_ResetPropertyEnumerator' is referenced only in the translation unit where it is defined |
MISRAC2012-RULE_8_7-a-4 |
|
449: |
Pointer to incomplete type 'struct __TEE_PropSetHandle *' should not be cast to type 'struct prop_enumerator *' |
MISRAC2012-RULE_11_2-a-2 |
|
451: |
Integer constant '0xffffffff' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
456: |
Pointer to incomplete type 'struct __TEE_PropSetHandle *' should not be cast to type 'struct prop_enumerator *' |
MISRAC2012-RULE_11_2-a-2 |
|
464: |
Pointer to incomplete type 'struct __TEE_PropSetHandle *' should not be cast to type 'struct prop_enumerator *' |
MISRAC2012-RULE_11_2-a-2 |
|
466: |
Conditional statement 'if' in a function 'TEE_StartPropertyEnumerator' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
466: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
467: |
'return' statement should be at the end of the 'TEE_StartPropertyEnumerator' function |
MISRAC2012-RULE_15_5-a-4 |
|
473: |
Identifiers given in declaration of 'TEE_GetPropertyName' function (file: 'tee_api.h', line: '47') are: 'nameBuffer, nameBufferLen'
not: 'name, name_len'
|
MISRAC2012-RULE_8_3-b-2 |
|
477: |
Pointer to incomplete type 'struct __TEE_PropSetHandle *' should not be cast to type 'struct prop_enumerator *' |
MISRAC2012-RULE_11_2-a-2 |
|
483: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
484: |
Integer constant '0xFFFF0006' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
485: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
487: |
Pointer to void type should not be converted to pointer to object type 'char *' in function's argument |
MISRAC2012-RULE_11_5-a-4 |
| +
|
489: |
Value of "bufferlen" is never used |
MISRAC2012-RULE_2_2-b-2 |
| |
|
Point where value is declared
Point where value is declared
tee_api_property.c (489): bufferlen = *name_len;
Point(s) where value is overwritten
Point(s) where value is overwritten
tee_api_property.c (496): bufferlen = strlcpy(name, str, *name_len) + 1; |
|
|
491: |
Conditional statement 'if' in a function 'TEE_GetPropertyName' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
491: |
Operands of the '!=' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
492: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
496: |
Operands of the '+' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
496: |
Pointer to void type should not be converted to pointer to object type 'char *' in function's argument |
MISRAC2012-RULE_11_5-a-4 |
|
497: |
Conditional statement 'if' in a function 'TEE_GetPropertyName' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
498: |
Integer constant '0xFFFF0010' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
499: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with a narrower essential type (4 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
501: |
Pointer to incomplete type 'struct __TEE_PropSetHandle *' should not be cast to type 'unsigned long' |
MISRAC2012-RULE_11_2-a-2 |
|
501: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
504: |
Conditional statement 'if' in a function 'TEE_GetPropertyName' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
504: |
Operands of the '!=' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
505: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
509: |
Conditional statement 'if' in a function 'TEE_GetPropertyName' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
509: |
Operands of the '!=' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
509: |
The operands of a logical '&&' in function 'TEE_GetPropertyName' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
510: |
Integer constant '0xFFFF0008' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
510: |
The operands of a logical '&&' in function 'TEE_GetPropertyName' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
511: |
Integer constant '0xFFFF0010' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
511: |
The operands of a logical '&&' in function 'TEE_GetPropertyName' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
519: |
Pointer to incomplete type 'struct __TEE_PropSetHandle *' should not be cast to type 'struct prop_enumerator *' |
MISRAC2012-RULE_11_2-a-2 |
|
524: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
525: |
Integer constant '0xFFFF0006' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
526: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
529: |
Integer constant '0xffffffff' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
530: |
Integer constant '0xFFFF0008' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
531: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
535: |
Conditional statement 'if' in a function 'TEE_GetNextProperty' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
535: |
Operands of the '!=' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
536: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
538: |
Operands of the '+' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
540: |
Conditional statement 'if' in a function 'TEE_GetNextProperty' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
543: |
An 'else' statement in a function 'TEE_GetNextProperty' shall be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
543: |
Pointer to incomplete type 'struct __TEE_PropSetHandle *' should not be cast to type 'unsigned long' |
MISRAC2012-RULE_11_2-a-2 |
|
543: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
548: |
Conditional statement 'if' in a function 'TEE_GetNextProperty' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
548: |
Operands of the '!=' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
548: |
The operands of a logical '&&' in function 'TEE_GetNextProperty' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
549: |
Integer constant '0xFFFF0008' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
549: |
The operands of a logical '&&' in function 'TEE_GetNextProperty' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
| /optee_os_MISRA/libutee/tee_socket_private.h |
|
7: |
Do not use reserved identifiers : __TEE_SOCKET_PRIVATE_H |
MISRAC2012-RULE_21_1-a-2 |
|
12: |
Reserved name '__tee_socket_ioctl_cmd_to_proto' used |
MISRAC2012-RULE_21_2-a-2 |
|
14: |
The expression of the 'unsigned int' essential type (4 byte) is returned from the function '__tee_socket_ioctl_cmd_to_proto'
with a narrower essential return type (1 byte)
|
MISRAC2012-RULE_10_3-a-2 |
|
17: |
Reserved name '__tee_socket_pta_open' used |
MISRAC2012-RULE_21_2-a-2 |
|
21: |
Reserved name '__tee_socket_pta_close' used |
MISRAC2012-RULE_21_2-a-2 |
|
23: |
Reserved name '__tee_socket_pta_send' used |
MISRAC2012-RULE_21_2-a-2 |
|
26: |
Reserved name '__tee_socket_pta_recv' used |
MISRAC2012-RULE_21_2-a-2 |
|
29: |
Reserved name '__tee_socket_pta_ioctl' used |
MISRAC2012-RULE_21_2-a-2 |
| /optee_os_MISRA/libutee/tee_socket_pta.c |
|
17: |
Variable 'sess' of pointer type is initialized with '0' |
MISRAC2012-RULE_11_9-b-2 |
|
20: |
Expression of pointer type is compared with '0' |
MISRAC2012-RULE_11_9-b-2 |
|
22: |
Integer constant '0xFFFFFFFF' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
25: |
Conditional statement 'if' in a function 'invoke_socket_pta' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
25: |
Operands of the '!=' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
26: |
Provide only one exit point in 'invoke_socket_pta' function |
MISRAC2012-RULE_15_5-a-4 |
|
29: |
Integer constant '0xFFFFFFFF' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
29: |
Provide only one exit point in 'invoke_socket_pta' function |
MISRAC2012-RULE_15_5-a-4 |
|
33: |
Reserved name '__tee_socket_pta_open' used |
MISRAC2012-RULE_21_2-a-2 |
|
41: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
41: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
41: |
The expression of the 'essentially signed' type is assigned to an object with the 'essentially unsigned' type |
MISRAC2012-RULE_10_3-b-2 |
|
41: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
41: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
41: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
41: |
The left hand operand of the '|' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
41: |
The left hand operand of the '|' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
41: |
The right hand operand of the '|' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
45: |
Unused function's "memset" return value |
MISRAC2012-RULE_17_7-a-2 |
|
51: |
The expression of the 'essentially Enum' type is assigned to an object with the 'essentially unsigned' type |
MISRAC2012-RULE_10_3-b-2 |
|
54: |
Integer constant '0xFFFF0006' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
54: |
Provide only one exit point in '__tee_socket_pta_open' function |
MISRAC2012-RULE_15_5-a-4 |
|
59: |
Conditional statement 'if' in a function '__tee_socket_pta_open' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
59: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
60: |
Integer constant '0xFFFF0006' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
60: |
Provide only one exit point in '__tee_socket_pta_open' function |
MISRAC2012-RULE_15_5-a-4 |
|
61: |
Cast from 'const char *' removes 'const' qualifier |
MISRAC2012-RULE_11_8-a-2 |
|
62: |
Operands of the '+' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
62: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with a narrower essential type (4 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
70: |
Integer constant '0xFFFF0006' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
70: |
Provide only one exit point in '__tee_socket_pta_open' function |
MISRAC2012-RULE_15_5-a-4 |
|
74: |
Conditional statement 'if' in a function '__tee_socket_pta_open' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
74: |
Operands of the '==' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
76: |
Provide only one exit point in '__tee_socket_pta_open' function |
MISRAC2012-RULE_15_5-a-4 |
|
79: |
Reserved name '__tee_socket_pta_close' used |
MISRAC2012-RULE_21_2-a-2 |
|
84: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
84: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
84: |
The expression of the 'essentially signed' type is assigned to an object with the 'essentially unsigned' type |
MISRAC2012-RULE_10_3-b-2 |
|
84: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
84: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
84: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
84: |
The left hand operand of the '|' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
84: |
The left hand operand of the '|' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
84: |
The right hand operand of the '|' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
87: |
Unused function's "memset" return value |
MISRAC2012-RULE_17_7-a-2 |
|
93: |
Reserved name '__tee_socket_pta_send' used |
MISRAC2012-RULE_21_2-a-2 |
|
100: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
100: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
100: |
The expression of the 'essentially signed' type is assigned to an object with the 'essentially unsigned' type |
MISRAC2012-RULE_10_3-b-2 |
|
100: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
100: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
100: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
100: |
The left hand operand of the '|' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
100: |
The left hand operand of the '|' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
100: |
The right hand operand of the '|' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
104: |
Unused function's "memset" return value |
MISRAC2012-RULE_17_7-a-2 |
|
109: |
Cast from 'const void *' removes 'const' qualifier |
MISRAC2012-RULE_11_8-a-2 |
|
117: |
Reserved name '__tee_socket_pta_recv' used |
MISRAC2012-RULE_21_2-a-2 |
|
125: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
125: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
125: |
The expression of the 'essentially signed' type is assigned to an object with the 'essentially unsigned' type |
MISRAC2012-RULE_10_3-b-2 |
|
125: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
125: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
125: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
125: |
The left hand operand of the '|' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
125: |
The left hand operand of the '|' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
125: |
The right hand operand of the '|' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
128: |
Unused function's "memset" return value |
MISRAC2012-RULE_17_7-a-2 |
|
141: |
Reserved name '__tee_socket_pta_ioctl' used |
MISRAC2012-RULE_21_2-a-2 |
|
148: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
148: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
148: |
The expression of the 'essentially signed' type is assigned to an object with the 'essentially unsigned' type |
MISRAC2012-RULE_10_3-b-2 |
|
148: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
148: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
148: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
148: |
The left hand operand of the '|' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
148: |
The left hand operand of the '|' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
148: |
The right hand operand of the '|' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
151: |
Unused function's "memset" return value |
MISRAC2012-RULE_17_7-a-2 |
| /optee_os_MISRA/libutee/tee_system_pta.c |
|
17: |
Variable 'sess' of pointer type is initialized with '0' |
MISRAC2012-RULE_11_9-b-2 |
|
20: |
Expression of pointer type is compared with '0' |
MISRAC2012-RULE_11_9-b-2 |
|
21: |
Integer constant '0xFFFFFFFF' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
24: |
Conditional statement 'if' in a function 'invoke_system_pta' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
24: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
25: |
Provide only one exit point in 'invoke_system_pta' function |
MISRAC2012-RULE_15_5-a-4 |
|
28: |
Integer constant '0xFFFFFFFF' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
28: |
Provide only one exit point in 'invoke_system_pta' function |
MISRAC2012-RULE_15_5-a-4 |
|
34: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
34: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
34: |
The expression of the 'essentially signed' type is assigned to an object with the 'essentially unsigned' type |
MISRAC2012-RULE_10_3-b-2 |
|
34: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
34: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
34: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
34: |
The left hand operand of the '|' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
34: |
The left hand operand of the '|' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
34: |
The right hand operand of the '|' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
41: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with a narrower essential type (4 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
42: |
Conditional statement 'if' in a function 'tee_map_zi' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
43: |
Provide only one exit point in 'tee_map_zi' function |
MISRAC2012-RULE_15_5-a-4 |
|
51: |
Provide only one exit point in 'tee_map_zi' function |
MISRAC2012-RULE_15_5-a-4 |
|
55: |
Conditional statement 'if' in a function 'tee_map_zi' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
55: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
56: |
Provide only one exit point in 'tee_map_zi' function |
MISRAC2012-RULE_15_5-a-4 |
|
58: |
Arithmetic type 'unsigned long' should not be converted to pointer to void type |
MISRAC2012-RULE_11_6-a-2 |
|
58: |
Provide only one exit point in 'tee_map_zi' function |
MISRAC2012-RULE_15_5-a-4 |
|
62: |
Pass parameter "buf" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
65: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
65: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
65: |
The expression of the 'essentially signed' type is assigned to an object with the 'essentially unsigned' type |
MISRAC2012-RULE_10_3-b-2 |
|
65: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
65: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
65: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
65: |
The left hand operand of the '|' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
65: |
The left hand operand of the '|' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
65: |
The right hand operand of the '|' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
71: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with a narrower essential type (4 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
72: |
Pointer to void type should not be converted to arithmetic type 'unsigned long' |
MISRAC2012-RULE_11_6-a-2 |
|
75: |
Conditional statement 'if' in a function 'tee_unmap' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
75: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
81: |
Identifier 'uuid' is already used as static object or function identifier |
MISRAC2012-RULE_5_9-a-4 |
|
86: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
86: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
86: |
The expression of the 'essentially signed' type is assigned to an object with the 'essentially unsigned' type |
MISRAC2012-RULE_10_3-b-2 |
|
86: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
86: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
86: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
86: |
The left hand operand of the '|' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
86: |
The left hand operand of the '|' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
86: |
The right hand operand of the '|' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
92: |
Conditional statement 'if' in a function 'tee_invoke_supp_plugin' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
92: |
The left hand operand of the logical operator '&&' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
92: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
92: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
92: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
92: |
The operands of a logical '&&' in function 'tee_invoke_supp_plugin' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
92: |
The operands of a logical '&&' in function 'tee_invoke_supp_plugin' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
92: |
The operands of a logical '||' in function 'tee_invoke_supp_plugin' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
92: |
The right hand operand of the logical operator '&&' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
93: |
Integer constant '0xFFFF0006' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
93: |
Provide only one exit point in 'tee_invoke_supp_plugin' function |
MISRAC2012-RULE_15_5-a-4 |
|
95: |
Cast from 'const TEE_UUID *' removes 'const' qualifier |
MISRAC2012-RULE_11_8-a-2 |
|
96: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with a narrower essential type (4 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
100: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with a narrower essential type (4 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
104: |
Conditional statement 'if' in a function 'tee_invoke_supp_plugin' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
104: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
107: |
Conditional statement 'if' in a function 'tee_invoke_supp_plugin' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
107: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
110: |
Provide only one exit point in 'tee_invoke_supp_plugin' function |
MISRAC2012-RULE_15_5-a-4 |
| /optee_os_MISRA/libutee/tee_tcpudp_socket.c |
|
25: |
Pointer to void type should not be converted to pointer to object type 'TEE_tcpSocket_Setup *' |
MISRAC2012-RULE_11_5-a-4 |
|
27: |
Conditional statement 'if' in a function 'tcp_open' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
27: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
27: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
27: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
27: |
The operands of a logical '||' in function 'tcp_open' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
27: |
The operands of a logical '||' in function 'tcp_open' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
27: |
The operands of a logical '||' in function 'tcp_open' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
| +
|
30: |
"proto_error" may possibly be null |
MISRAC2012-DIR_4_1-b-2 |
| |
|
tee_tcpudp_socket.c (23): TEE_Result res;
tee_tcpudp_socket.c (24): struct socket_ctx *sock_ctx;
tee_tcpudp_socket.c (25): TEE_tcpSocket_Setup *tcp_setup = setup;
Source of null value
tee_tcpudp_socket.c (27): if (!ctx || !setup || !proto_error) *** Null value carrier: proto_error *** Condition evaluation: !ctx (assuming false) *** Condition evaluation: !setup (assuming false) *** Condition evaluation: !proto_error (assuming true) *** Condition evaluation: !ctx || !setup || !proto_error (true)
tee_tcpudp_socket.c (28): TEE_Panic(0);
tee_api_panic.c (24): _utee_panic(panicCode);
Null pointer dereferencing point
tee_tcpudp_socket.c (30): *proto_error = TEE_SUCCESS; *** Null value carrier: proto_error |
|
|
32: |
Pointer to void type should not be converted to pointer to object type 'struct socket_ctx *' |
MISRAC2012-RULE_11_5-a-4 |
|
32: |
The argument number '1' (8 byte essential type) is passed to the function 'TEE_Malloc' as a parameter with a narrower essential
type (4 byte)
|
MISRAC2012-RULE_10_3-a-2 |
|
33: |
Conditional statement 'if' in a function 'tcp_open' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
33: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
34: |
Integer constant '0xFFFF000C' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
34: |
Provide only one exit point in 'tcp_open' function |
MISRAC2012-RULE_15_5-a-4 |
|
41: |
Operands of the '!=' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
48: |
Integer constant '0xF1007007' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
50: |
Integer constant '0xF1007001' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
50: |
Provide only one exit point in 'tcp_open' function |
MISRAC2012-RULE_15_5-a-4 |
|
51: |
Integer constant '0xF1010002' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
53: |
Integer constant '0xF1007006' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
53: |
Provide only one exit point in 'tcp_open' function |
MISRAC2012-RULE_15_5-a-4 |
|
55: |
Provide only one exit point in 'tcp_open' function |
MISRAC2012-RULE_15_5-a-4 |
|
64: |
Pointer to void type should not be converted to pointer to object type 'TEE_udpSocket_Setup *' |
MISRAC2012-RULE_11_5-a-4 |
|
66: |
Conditional statement 'if' in a function 'udp_open' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
66: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
66: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
66: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
66: |
The operands of a logical '||' in function 'udp_open' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
66: |
The operands of a logical '||' in function 'udp_open' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
66: |
The operands of a logical '||' in function 'udp_open' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
| +
|
69: |
"proto_error" may possibly be null |
MISRAC2012-DIR_4_1-b-2 |
| |
|
tee_tcpudp_socket.c (62): TEE_Result res;
tee_tcpudp_socket.c (63): struct socket_ctx *sock_ctx;
tee_tcpudp_socket.c (64): TEE_udpSocket_Setup *udp_setup = setup;
Source of null value
tee_tcpudp_socket.c (66): if (!ctx || !setup || !proto_error) *** Null value carrier: proto_error *** Condition evaluation: !ctx (assuming false) *** Condition evaluation: !setup (assuming false) *** Condition evaluation: !proto_error (assuming true) *** Condition evaluation: !ctx || !setup || !proto_error (true)
tee_tcpudp_socket.c (67): TEE_Panic(0);
tee_api_panic.c (24): _utee_panic(panicCode);
Null pointer dereferencing point
tee_tcpudp_socket.c (69): *proto_error = TEE_SUCCESS; *** Null value carrier: proto_error |
|
|
71: |
Pointer to void type should not be converted to pointer to object type 'struct socket_ctx *' |
MISRAC2012-RULE_11_5-a-4 |
|
71: |
The argument number '1' (8 byte essential type) is passed to the function 'TEE_Malloc' as a parameter with a narrower essential
type (4 byte)
|
MISRAC2012-RULE_10_3-a-2 |
|
72: |
Conditional statement 'if' in a function 'udp_open' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
72: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
73: |
Integer constant '0xFFFF000C' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
73: |
Provide only one exit point in 'udp_open' function |
MISRAC2012-RULE_15_5-a-4 |
|
80: |
Operands of the '!=' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
87: |
Integer constant '0xF1007007' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
89: |
Integer constant '0xF1007001' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
89: |
Provide only one exit point in 'udp_open' function |
MISRAC2012-RULE_15_5-a-4 |
|
90: |
Integer constant '0xF1020002' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
92: |
Integer constant '0xF1007006' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
92: |
Provide only one exit point in 'udp_open' function |
MISRAC2012-RULE_15_5-a-4 |
|
94: |
Provide only one exit point in 'udp_open' function |
MISRAC2012-RULE_15_5-a-4 |
|
101: |
Pointer to void type should not be converted to pointer to object type 'struct socket_ctx *' |
MISRAC2012-RULE_11_5-a-4 |
|
103: |
Conditional statement 'if' in a function 'sock_close' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
103: |
Expression of pointer type is compared with '0' |
MISRAC2012-RULE_11_9-b-2 |
|
104: |
Provide only one exit point in 'sock_close' function |
MISRAC2012-RULE_15_5-a-4 |
|
109: |
Provide only one exit point in 'sock_close' function |
MISRAC2012-RULE_15_5-a-4 |
|
116: |
Pointer to void type should not be converted to pointer to object type 'struct socket_ctx *' |
MISRAC2012-RULE_11_5-a-4 |
|
118: |
Conditional statement 'if' in a function 'sock_send' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
118: |
Expression of pointer type is compared with '0' |
MISRAC2012-RULE_11_9-b-2 |
|
118: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
118: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
118: |
The operands of a logical '||' in function 'sock_send' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
118: |
The operands of a logical '||' in function 'sock_send' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
118: |
The operands of a logical '||' in function 'sock_send' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
| +
|
121: |
"sock_ctx" may possibly be null |
MISRAC2012-DIR_4_1-b-2 |
| |
|
tee_tcpudp_socket.c (115): TEE_Result res;
tee_tcpudp_socket.c (116): struct socket_ctx *sock_ctx = (struct socket_ctx *)ctx;
Source of null value
tee_tcpudp_socket.c (118): if (ctx == TEE_HANDLE_NULL || !buf || !length) *** Null value carrier: sock_ctx *** Condition evaluation: (ctx == 0) (assuming true) *** Condition evaluation: ctx == TEE_HANDLE_NULL || ! (true)
tee_tcpudp_socket.c (119): TEE_Panic(0);
tee_api_panic.c (24): _utee_panic(panicCode);
Null pointer dereferencing point
tee_tcpudp_socket.c (121): res = __tee_socket_pta_send(sock_ctx->handle, buf, length, timeout); *** Null value carrier: sock_ctx |
|
|
131: |
Pointer to void type should not be converted to pointer to object type 'struct socket_ctx *' |
MISRAC2012-RULE_11_5-a-4 |
|
133: |
Conditional statement 'if' in a function 'sock_recv' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
133: |
Expression of pointer type is compared with '0' |
MISRAC2012-RULE_11_9-b-2 |
|
133: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
133: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
133: |
The operands of a logical '&&' in function 'sock_recv' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
133: |
The operands of a logical '&&' in function 'sock_recv' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
133: |
The operands of a logical '||' in function 'sock_recv' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
133: |
The operands of a logical '||' in function 'sock_recv' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
133: |
The right hand operand of the logical operator '&&' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
| +
|
136: |
"sock_ctx" may possibly be null |
MISRAC2012-DIR_4_1-b-2 |
| |
|
tee_tcpudp_socket.c (130): TEE_Result res;
tee_tcpudp_socket.c (131): struct socket_ctx *sock_ctx = (struct socket_ctx *)ctx;
Source of null value
tee_tcpudp_socket.c (133): if (ctx == TEE_HANDLE_NULL || !length || (!buf && *length)) *** Null value carrier: sock_ctx *** Condition evaluation: (ctx == 0) (assuming true) *** Condition evaluation: ctx == TEE_HANDLE_NULL || !length || (!b (true)
tee_tcpudp_socket.c (134): TEE_Panic(0);
tee_api_panic.c (24): _utee_panic(panicCode);
Null pointer dereferencing point
tee_tcpudp_socket.c (136): res = __tee_socket_pta_recv(sock_ctx->handle, buf, length, timeout); *** Null value carrier: sock_ctx |
|
|
144: |
Pointer to void type should not be converted to pointer to object type 'struct socket_ctx *' |
MISRAC2012-RULE_11_5-a-4 |
|
146: |
Conditional statement 'if' in a function 'sock_error' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
146: |
Expression of pointer type is compared with '0' |
MISRAC2012-RULE_11_9-b-2 |
| +
|
149: |
"sock_ctx" may possibly be null |
MISRAC2012-DIR_4_1-b-2 |
| |
|
tee_tcpudp_socket.c (144): struct socket_ctx *sock_ctx = (struct socket_ctx *)ctx;
Source of null value
tee_tcpudp_socket.c (146): if (ctx == TEE_HANDLE_NULL) *** Null value carrier: sock_ctx *** Condition evaluation: (ctx == 0) (assuming true)
tee_tcpudp_socket.c (147): TEE_Panic(0);
tee_api_panic.c (24): _utee_panic(panicCode);
Null pointer dereferencing point
tee_tcpudp_socket.c (149): return sock_ctx->proto_error; *** Null value carrier: sock_ctx |
|
|
155: |
Integer constant '0xFFFF0000' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
156: |
Pointer to void type should not be converted to pointer to object type 'struct socket_ctx *' |
MISRAC2012-RULE_11_5-a-4 |
|
158: |
Conditional statement 'if' in a function 'tcp_ioctl' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
158: |
Expression of pointer type is compared with '0' |
MISRAC2012-RULE_11_9-b-2 |
|
158: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
158: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
158: |
The operands of a logical '&&' in function 'tcp_ioctl' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
158: |
The operands of a logical '&&' in function 'tcp_ioctl' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
158: |
The operands of a logical '||' in function 'tcp_ioctl' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
158: |
The operands of a logical '||' in function 'tcp_ioctl' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
158: |
The right hand operand of the logical operator '&&' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
161: |
Conditional statement 'if' in a function 'tcp_ioctl' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
161: |
Operands of the '==' operator have different essential types: 'unsigned char' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
162: |
Provide only one exit point in 'tcp_ioctl' function |
MISRAC2012-RULE_15_5-a-4 |
| +
|
167: |
"sock_ctx" may possibly be null |
MISRAC2012-DIR_4_1-b-2 |
| |
|
tee_tcpudp_socket.c (155): TEE_Result res = TEE_ERROR_GENERIC;
tee_tcpudp_socket.c (156): struct socket_ctx *sock_ctx = (struct socket_ctx *)ctx;
Source of null value
tee_tcpudp_socket.c (158): if (ctx == TEE_HANDLE_NULL || !length || (!buf && *length)) *** Null value carrier: sock_ctx *** Condition evaluation: (ctx == 0) (assuming true) *** Condition evaluation: ctx == TEE_HANDLE_NULL || !length || (!b (true)
tee_tcpudp_socket.c (159): TEE_Panic(0);
tee_api_panic.c (24): _utee_panic(panicCode);
tee_tcpudp_socket.c (161): __tee_socket_ioctl_cmd_to_proto(...)
tee_socket_private.h (14): return cmd_code >> 24;
tee_tcpudp_socket.c (161): if (__tee_socket_ioctl_cmd_to_proto(commandCode) == 0) *** Condition evaluation: (__tee_socket_ioctl_cmd_to_proto(...) == 0) (assuming false)
tee_tcpudp_socket.c (164): switch (commandCode) { *** Switch evaluation: commandCode (assuming "case 1,710,227,456")
Null pointer dereferencing point
tee_tcpudp_socket.c (167): res = __tee_socket_pta_ioctl(sock_ctx->handle, commandCode, *** Null value carrier: sock_ctx |
|
|
170: |
Every non empty default clause in a switch statement shall be terminated with a break statement |
MISRAC2012-RULE_16_1-d-2 |
|
170: |
Every non empty default clause in a switch statement shall be terminated with a break statement |
MISRAC2012-RULE_16_3-b-2 |
| +
|
174: |
"sock_ctx" may possibly be null |
MISRAC2012-DIR_4_1-b-2 |
| |
|
tee_tcpudp_socket.c (155): TEE_Result res = TEE_ERROR_GENERIC;
tee_tcpudp_socket.c (156): struct socket_ctx *sock_ctx = (struct socket_ctx *)ctx;
Source of null value
tee_tcpudp_socket.c (158): if (ctx == TEE_HANDLE_NULL || !length || (!buf && *length)) *** Null value carrier: sock_ctx *** Condition evaluation: (ctx == 0) (assuming true) *** Condition evaluation: ctx == TEE_HANDLE_NULL || !length || (!b (true)
tee_tcpudp_socket.c (159): TEE_Panic(0);
tee_api_panic.c (24): _utee_panic(panicCode);
tee_tcpudp_socket.c (161): __tee_socket_ioctl_cmd_to_proto(...)
tee_socket_private.h (14): return cmd_code >> 24;
tee_tcpudp_socket.c (161): if (__tee_socket_ioctl_cmd_to_proto(commandCode) == 0) *** Condition evaluation: (__tee_socket_ioctl_cmd_to_proto(...) == 0) (assuming false)
tee_tcpudp_socket.c (164): switch (commandCode) { *** Switch evaluation: commandCode (assuming "case default")
tee_tcpudp_socket.c (171): TEE_Panic(0);
tee_api_panic.c (24): _utee_panic(panicCode);
Null pointer dereferencing point
tee_tcpudp_socket.c (174): sock_ctx->proto_error = res; *** Null value carrier: sock_ctx |
|
|
176: |
Provide only one exit point in 'tcp_ioctl' function |
MISRAC2012-RULE_15_5-a-4 |
|
182: |
Integer constant '0xFFFF0000' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
183: |
Pointer to void type should not be converted to pointer to object type 'struct socket_ctx *' |
MISRAC2012-RULE_11_5-a-4 |
|
185: |
Conditional statement 'if' in a function 'udp_ioctl' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
185: |
Expression of pointer type is compared with '0' |
MISRAC2012-RULE_11_9-b-2 |
|
185: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
185: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
185: |
The operands of a logical '&&' in function 'udp_ioctl' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
185: |
The operands of a logical '&&' in function 'udp_ioctl' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
185: |
The operands of a logical '||' in function 'udp_ioctl' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
185: |
The operands of a logical '||' in function 'udp_ioctl' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
185: |
The right hand operand of the logical operator '&&' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
188: |
Conditional statement 'if' in a function 'udp_ioctl' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
188: |
Operands of the '==' operator have different essential types: 'unsigned char' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
189: |
Provide only one exit point in 'udp_ioctl' function |
MISRAC2012-RULE_15_5-a-4 |
| +
|
194: |
"sock_ctx" may possibly be null |
MISRAC2012-DIR_4_1-b-2 |
| |
|
tee_tcpudp_socket.c (182): TEE_Result res = TEE_ERROR_GENERIC;
tee_tcpudp_socket.c (183): struct socket_ctx *sock_ctx = (struct socket_ctx *)ctx;
Source of null value
tee_tcpudp_socket.c (185): if (ctx == TEE_HANDLE_NULL || !length || (!buf && *length)) *** Null value carrier: sock_ctx *** Condition evaluation: (ctx == 0) (assuming true) *** Condition evaluation: ctx == TEE_HANDLE_NULL || !length || (!b (true)
tee_tcpudp_socket.c (186): TEE_Panic(0);
tee_api_panic.c (24): _utee_panic(panicCode);
tee_tcpudp_socket.c (188): __tee_socket_ioctl_cmd_to_proto(...)
tee_socket_private.h (14): return cmd_code >> 24;
tee_tcpudp_socket.c (188): if (__tee_socket_ioctl_cmd_to_proto(commandCode) == 0) *** Condition evaluation: (__tee_socket_ioctl_cmd_to_proto(...) == 0) (assuming false)
tee_tcpudp_socket.c (191): switch (commandCode) { *** Switch evaluation: commandCode (assuming "case 1,711,276,033")
Null pointer dereferencing point
tee_tcpudp_socket.c (194): res = __tee_socket_pta_ioctl(sock_ctx->handle, commandCode, *** Null value carrier: sock_ctx |
|
|
197: |
Every non empty default clause in a switch statement shall be terminated with a break statement |
MISRAC2012-RULE_16_1-d-2 |
|
197: |
Every non empty default clause in a switch statement shall be terminated with a break statement |
MISRAC2012-RULE_16_3-b-2 |
| +
|
201: |
"sock_ctx" may possibly be null |
MISRAC2012-DIR_4_1-b-2 |
| |
|
tee_tcpudp_socket.c (182): TEE_Result res = TEE_ERROR_GENERIC;
tee_tcpudp_socket.c (183): struct socket_ctx *sock_ctx = (struct socket_ctx *)ctx;
Source of null value
tee_tcpudp_socket.c (185): if (ctx == TEE_HANDLE_NULL || !length || (!buf && *length)) *** Null value carrier: sock_ctx *** Condition evaluation: (ctx == 0) (assuming true) *** Condition evaluation: ctx == TEE_HANDLE_NULL || !length || (!b (true)
tee_tcpudp_socket.c (186): TEE_Panic(0);
tee_api_panic.c (24): _utee_panic(panicCode);
tee_tcpudp_socket.c (188): __tee_socket_ioctl_cmd_to_proto(...)
tee_socket_private.h (14): return cmd_code >> 24;
tee_tcpudp_socket.c (188): if (__tee_socket_ioctl_cmd_to_proto(commandCode) == 0) *** Condition evaluation: (__tee_socket_ioctl_cmd_to_proto(...) == 0) (assuming false)
tee_tcpudp_socket.c (191): switch (commandCode) { *** Switch evaluation: commandCode (assuming "case default")
tee_tcpudp_socket.c (198): TEE_Panic(0);
tee_api_panic.c (24): _utee_panic(panicCode);
Null pointer dereferencing point
tee_tcpudp_socket.c (201): sock_ctx->proto_error = res; *** Null value carrier: sock_ctx |
|
|
203: |
Provide only one exit point in 'udp_ioctl' function |
MISRAC2012-RULE_15_5-a-4 |
| /optee_os_MISRA/libutee/tee_uuid_from_str.c |
|
12: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
14: |
The argument number '1' ('essentially character' type) is passed to the function 'tolower' as a parameter with the 'essentially
signed' type
|
MISRAC2012-RULE_10_3-b-2 |
|
14: |
The expression of the 'essentially signed' type is assigned to an object with the 'essentially character' type |
MISRAC2012-RULE_10_3-b-2 |
|
16: |
Conditional statement 'if' in a function 'hex' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
16: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
16: |
The argument number '1' ('essentially character' type) is passed to the function 'isdigit' as a parameter with the 'essentially
signed' type
|
MISRAC2012-RULE_10_3-b-2 |
|
17: |
Provide only one exit point in 'hex' function |
MISRAC2012-RULE_15_5-a-4 |
|
18: |
Conditional statement 'if' in a function 'hex' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
18: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
18: |
The argument number '1' ('essentially character' type) is passed to the function 'isxdigit' as a parameter with the 'essentially
signed' type
|
MISRAC2012-RULE_10_3-b-2 |
|
19: |
Provide only one exit point in 'hex' function |
MISRAC2012-RULE_15_5-a-4 |
|
19: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
20: |
Provide only one exit point in 'hex' function |
MISRAC2012-RULE_15_5-a-4 |
|
27: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
32: |
Integer constant '0xFFFF0005' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
33: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
35: |
Operands of the '+' operator have different essential types: 'unsigned int' and 'int' |
MISRAC2012-RULE_10_4-a-2 |
|
49: |
Conditional statement 'if' in a function 'tee_uuid_from_str' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
49: |
Operands of the '!=' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
49: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
49: |
The operands of a logical '||' in function 'tee_uuid_from_str' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
49: |
The operands of a logical '||' in function 'tee_uuid_from_str' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
50: |
Integer constant '0xFFFF0005' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
50: |
Provide only one exit point in 'tee_uuid_from_str' function |
MISRAC2012-RULE_15_5-a-4 |
|
51: |
Conditional statement 'if' in a function 'tee_uuid_from_str' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
51: |
The operands of a logical '||' in function 'tee_uuid_from_str' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
51: |
The operands of a logical '||' in function 'tee_uuid_from_str' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
51: |
The operands of a logical '||' in function 'tee_uuid_from_str' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
51: |
The operands of a logical '||' in function 'tee_uuid_from_str' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
52: |
Integer constant '0xFFFF0005' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
52: |
Provide only one exit point in 'tee_uuid_from_str' function |
MISRAC2012-RULE_15_5-a-4 |
|
55: |
Conditional statement 'if' in a function 'tee_uuid_from_str' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
55: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
56: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
57: |
The variable 'p' used as the left hand side operand of the '+=' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
58: |
The expression of the 'unsigned int' essential type (4 byte) is assigned to an object with a narrower essential type (2 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
59: |
Conditional statement 'if' in a function 'tee_uuid_from_str' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
59: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
60: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
61: |
The variable 'p' used as the left hand side operand of the '+=' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
62: |
The expression of the 'unsigned int' essential type (4 byte) is assigned to an object with a narrower essential type (2 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
63: |
Conditional statement 'if' in a function 'tee_uuid_from_str' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
63: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
64: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
65: |
The variable 'p' used as the left hand side operand of the '+=' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
66: |
Operands of the '<' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
67: |
The expression of the 'unsigned int' essential type (4 byte) is assigned to an object with a narrower essential type (1 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
68: |
Conditional statement 'if' in a function 'tee_uuid_from_str' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
68: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
69: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
70: |
Conditional statement 'if' in a function 'tee_uuid_from_str' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
70: |
Operands of the '==' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
71: |
The variable 'p' used as the left hand side operand of the '+=' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
73: |
An 'else' statement in a function 'tee_uuid_from_str' shall be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
73: |
The variable 'p' used as the left hand side operand of the '+=' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
77: |
Provide only one exit point in 'tee_uuid_from_str' function |
MISRAC2012-RULE_15_5-a-4 |
| /optee_os_MISRA/libutee/trace_ext.c |
|
21: |
The 'trace_ext_puts' function is also defined in other translation units |
MISRAC2012-RULE_8_6-a-2 |
|
30: |
The 'trace_ext_get_thread_id' function is also defined in other translation units |
MISRAC2012-RULE_8_6-a-2 |
|
30: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
40: |
Reserved name 'printf' used |
MISRAC2012-RULE_21_2-b-2 |
|
40: |
Reserved name 'printf' used |
MISRAC2012-RULE_21_2-c-2 |
|
40: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
43: |
The identifier 'va_list' shall not be used |
MISRAC2012-RULE_17_1-a-2 |
|
43: |
The identifier 'va_list' shall not be used |
MISRAC2012-RULE_17_1-b-2 |
|
44: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
46: |
Conditional statement 'if' in a function 'printf' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
47: |
Provide only one exit point in 'printf' function |
MISRAC2012-RULE_15_5-a-4 |
|
49: |
The identifier 'va_start' shall not be used |
MISRAC2012-RULE_17_1-a-2 |
|
49: |
The identifier 'va_start' shall not be used |
MISRAC2012-RULE_17_1-b-2 |
|
50: |
Usage of 'vsnprintf' function is not allowed |
MISRAC2012-RULE_21_6-a-2 |
|
51: |
The identifier 'va_end' shall not be used |
MISRAC2012-RULE_17_1-a-2 |
|
51: |
The identifier 'va_end' shall not be used |
MISRAC2012-RULE_17_1-b-2 |
|
53: |
Conditional statement 'if' in a function 'printf' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
54: |
Provide only one exit point in 'printf' function |
MISRAC2012-RULE_15_5-a-4 |
|
58: |
Provide only one exit point in 'printf' function |
MISRAC2012-RULE_15_5-a-4 |
|
61: |
Reserved name 'puts' used |
MISRAC2012-RULE_21_2-b-2 |
|
61: |
Reserved name 'puts' used |
MISRAC2012-RULE_21_2-c-2 |
|
61: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
70: |
Reserved name 'putchar' used |
MISRAC2012-RULE_21_2-b-2 |
|
70: |
Reserved name 'putchar' used |
MISRAC2012-RULE_21_2-c-2 |
|
70: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
70: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
74: |
Conditional statement 'if' in a function 'putchar' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
81: |
The basic numerical type 'char' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
81: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
90: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
95: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
100: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
100: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
102: |
The basic numerical type 'char' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
102: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
| /optee_os_MISRA/optee_os_ruchi393_core/arch/arm/include/arm64.h |
|
80: |
Do not define function-like macro: SPSR_64 |
MISRAC2012-DIR_4_9-a-4 |
|
86: |
Do not define function-like macro: SPSR_32 |
MISRAC2012-DIR_4_9-a-4 |
|
187: |
Do not define function-like macro: CPACR_EL1_FPEN |
MISRAC2012-DIR_4_9-a-4 |
|
202: |
Assembly language code is not commented |
MISRAC2012-DIR_4_2-a-4 |
|
207: |
Assembly language code is not commented |
MISRAC2012-DIR_4_2-a-4 |
|
212: |
Assembly language code is not commented |
MISRAC2012-DIR_4_2-a-4 |
|
217: |
Assembly language code is not commented |
MISRAC2012-DIR_4_2-a-4 |
|
222: |
Assembly language code is not commented |
MISRAC2012-DIR_4_2-a-4 |
|
227: |
Assembly language code is not commented |
MISRAC2012-DIR_4_2-a-4 |
|
232: |
Assembly language code is not commented |
MISRAC2012-DIR_4_2-a-4 |
|
239: |
Assembly language code is not commented |
MISRAC2012-DIR_4_2-a-4 |
|
247: |
Assembly language code is not commented |
MISRAC2012-DIR_4_2-a-4 |
|
255: |
Assembly language code is not commented |
MISRAC2012-DIR_4_2-a-4 |
|
261: |
Assembly language code is not commented |
MISRAC2012-DIR_4_2-a-4 |
|
266: |
Assembly language code is not commented |
MISRAC2012-DIR_4_2-a-4 |
|
273: |
Do not define function-like macro: DEFINE_REG_READ_FUNC_ |
MISRAC2012-DIR_4_9-a-4 |
|
274: |
Preprocessor operator ## should not be used |
MISRAC2012-RULE_20_10-a-4 |
|
278: |
Preprocessor operator # should not be used |
MISRAC2012-RULE_20_10-a-4 |
|
282: |
Do not define function-like macro: DEFINE_REG_WRITE_FUNC_ |
MISRAC2012-DIR_4_9-a-4 |
|
283: |
Preprocessor operator ## should not be used |
MISRAC2012-RULE_20_10-a-4 |
|
287: |
Preprocessor operator # should not be used |
MISRAC2012-RULE_20_10-a-4 |
|
290: |
Do not define function-like macro: DEFINE_U32_REG_READ_FUNC |
MISRAC2012-DIR_4_9-a-4 |
|
291: |
Each instance of parameter: 'reg' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
291: |
Each instance of parameter: 'reg' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
293: |
Do not define function-like macro: DEFINE_U32_REG_WRITE_FUNC |
MISRAC2012-DIR_4_9-a-4 |
|
294: |
Each instance of parameter: 'reg' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
294: |
Each instance of parameter: 'reg' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
296: |
Do not define function-like macro: DEFINE_U32_REG_READWRITE_FUNCS |
MISRAC2012-DIR_4_9-a-4 |
|
300: |
Do not define function-like macro: DEFINE_U64_REG_READ_FUNC |
MISRAC2012-DIR_4_9-a-4 |
|
301: |
Each instance of parameter: 'reg' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
301: |
Each instance of parameter: 'reg' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
303: |
Do not define function-like macro: DEFINE_U64_REG_WRITE_FUNC |
MISRAC2012-DIR_4_9-a-4 |
|
304: |
Each instance of parameter: 'reg' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
304: |
Each instance of parameter: 'reg' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
306: |
Do not define function-like macro: DEFINE_U64_REG_READWRITE_FUNCS |
MISRAC2012-DIR_4_9-a-4 |
|
314: |
Assembly language code is not commented |
MISRAC2012-DIR_4_2-a-4 |
|
314: |
The expression of the 'unsigned long' essential type (8 byte) is returned from the function 'read_cpacr_el1' with a narrower
essential return type (4 byte)
|
MISRAC2012-RULE_10_3-a-2 |
|
315: |
Assembly language code is not commented |
MISRAC2012-DIR_4_2-a-4 |
|
315: |
The expression of the 'unsigned long' essential type (8 byte) is returned from the function 'read_daif' with a narrower essential
return type (4 byte)
|
MISRAC2012-RULE_10_3-a-2 |
|
316: |
Assembly language code is not commented |
MISRAC2012-DIR_4_2-a-4 |
|
316: |
The expression of the 'unsigned long' essential type (8 byte) is returned from the function 'read_fpcr' with a narrower essential
return type (4 byte)
|
MISRAC2012-RULE_10_3-a-2 |
|
317: |
Assembly language code is not commented |
MISRAC2012-DIR_4_2-a-4 |
|
317: |
The expression of the 'unsigned long' essential type (8 byte) is returned from the function 'read_fpsr' with a narrower essential
return type (4 byte)
|
MISRAC2012-RULE_10_3-a-2 |
|
319: |
Assembly language code is not commented |
MISRAC2012-DIR_4_2-a-4 |
|
319: |
The expression of the 'unsigned long' essential type (8 byte) is returned from the function 'read_ctr_el0' with a narrower
essential return type (4 byte)
|
MISRAC2012-RULE_10_3-a-2 |
|
320: |
Do not define function-like macro: read_ctr |
MISRAC2012-DIR_4_9-a-4 |
|
321: |
Assembly language code is not commented |
MISRAC2012-DIR_4_2-a-4 |
|
321: |
The expression of the 'unsigned long' essential type (8 byte) is returned from the function 'read_contextidr_el1' with a narrower
essential return type (4 byte)
|
MISRAC2012-RULE_10_3-a-2 |
|
322: |
Assembly language code is not commented |
MISRAC2012-DIR_4_2-a-4 |
|
322: |
The expression of the 'unsigned long' essential type (8 byte) is returned from the function 'read_sctlr_el1' with a narrower
essential return type (4 byte)
|
MISRAC2012-RULE_10_3-a-2 |
|
325: |
The expression of the 'unsigned long' essential type (8 byte) is returned from the function 'read_cntfrq' with a narrower
essential return type (4 byte)
|
MISRAC2012-RULE_10_3-a-2 |
|
326: |
Assembly language code is not commented |
MISRAC2012-DIR_4_2-a-4 |
|
327: |
Assembly language code is not commented |
MISRAC2012-DIR_4_2-a-4 |
|
327: |
The expression of the 'unsigned long' essential type (8 byte) is returned from the function 'read_cntkctl' with a narrower
essential return type (4 byte)
|
MISRAC2012-RULE_10_3-a-2 |
|
328: |
Assembly language code is not commented |
MISRAC2012-DIR_4_2-a-4 |
|
329: |
Assembly language code is not commented |
MISRAC2012-DIR_4_2-a-4 |
|
329: |
The expression of the 'unsigned long' essential type (8 byte) is returned from the function 'read_cntps_ctl' with a narrower
essential return type (4 byte)
|
MISRAC2012-RULE_10_3-a-2 |
|
330: |
Assembly language code is not commented |
MISRAC2012-DIR_4_2-a-4 |
|
331: |
Assembly language code is not commented |
MISRAC2012-DIR_4_2-a-4 |
|
331: |
The expression of the 'unsigned long' essential type (8 byte) is returned from the function 'read_cntps_tval' with a narrower
essential return type (4 byte)
|
MISRAC2012-RULE_10_3-a-2 |
|
332: |
Assembly language code is not commented |
MISRAC2012-DIR_4_2-a-4 |
|
334: |
Assembly language code is not commented |
MISRAC2012-DIR_4_2-a-4 |
|
336: |
Assembly language code is not commented |
MISRAC2012-DIR_4_2-a-4 |
|
337: |
Assembly language code is not commented |
MISRAC2012-DIR_4_2-a-4 |
|
338: |
Assembly language code is not commented |
MISRAC2012-DIR_4_2-a-4 |
|
340: |
Assembly language code is not commented |
MISRAC2012-DIR_4_2-a-4 |
|
341: |
Assembly language code is not commented |
MISRAC2012-DIR_4_2-a-4 |
|
342: |
Assembly language code is not commented |
MISRAC2012-DIR_4_2-a-4 |
|
344: |
Do not define function-like macro: read_mpidr |
MISRAC2012-DIR_4_9-a-4 |
|
345: |
Assembly language code is not commented |
MISRAC2012-DIR_4_2-a-4 |
|
347: |
Do not define function-like macro: read_midr |
MISRAC2012-DIR_4_9-a-4 |
|
348: |
Assembly language code is not commented |
MISRAC2012-DIR_4_2-a-4 |
|
350: |
Assembly language code is not commented |
MISRAC2012-DIR_4_2-a-4 |
|
353: |
The expression of the 'unsigned long' essential type (8 byte) is returned from the function 'read_icc_ctlr' with a narrower
essential return type (4 byte)
|
MISRAC2012-RULE_10_3-a-2 |
|
354: |
Assembly language code is not commented |
MISRAC2012-DIR_4_2-a-4 |
|
355: |
Assembly language code is not commented |
MISRAC2012-DIR_4_2-a-4 |
|
356: |
Assembly language code is not commented |
MISRAC2012-DIR_4_2-a-4 |
|
356: |
The expression of the 'unsigned long' essential type (8 byte) is returned from the function 'read_icc_iar0' with a narrower
essential return type (4 byte)
|
MISRAC2012-RULE_10_3-a-2 |
|
357: |
Assembly language code is not commented |
MISRAC2012-DIR_4_2-a-4 |
|
357: |
The expression of the 'unsigned long' essential type (8 byte) is returned from the function 'read_icc_iar1' with a narrower
essential return type (4 byte)
|
MISRAC2012-RULE_10_3-a-2 |
|
358: |
Assembly language code is not commented |
MISRAC2012-DIR_4_2-a-4 |
|
359: |
Assembly language code is not commented |
MISRAC2012-DIR_4_2-a-4 |
|
360: |
Assembly language code is not commented |
MISRAC2012-DIR_4_2-a-4 |
|
361: |
Assembly language code is not commented |
MISRAC2012-DIR_4_2-a-4 |
| /optee_os_MISRA/optee_os_ruchi393_core/arch/arm/include/kernel/abort.h |
|
20: |
Consider hiding the implementation of the structure 'abort_info' in a translation unit 'arch_svc.c' |
MISRAC2012-DIR_4_8-a-4 |
|
20: |
Consider hiding the implementation of the structure 'abort_info' in a translation unit 'boot.c' |
MISRAC2012-DIR_4_8-a-4 |
|
20: |
Consider hiding the implementation of the structure 'abort_info' in a translation unit 'core_mmu.c' |
MISRAC2012-DIR_4_8-a-4 |
|
20: |
Consider hiding the implementation of the structure 'abort_info' in a translation unit 'entry_std.c' |
MISRAC2012-DIR_4_8-a-4 |
|
20: |
Consider hiding the implementation of the structure 'abort_info' in a translation unit 'ldelf_loader.c' |
MISRAC2012-DIR_4_8-a-4 |
|
20: |
Consider hiding the implementation of the structure 'abort_info' in a translation unit 'ldelf_syscalls.c' |
MISRAC2012-DIR_4_8-a-4 |
|
20: |
Consider hiding the implementation of the structure 'abort_info' in a translation unit 'mobj.c' |
MISRAC2012-DIR_4_8-a-4 |
|
20: |
Consider hiding the implementation of the structure 'abort_info' in a translation unit 'mobj_dyn_shm.c' |
MISRAC2012-DIR_4_8-a-4 |
|
20: |
Consider hiding the implementation of the structure 'abort_info' in a translation unit 'msg_param.c' |
MISRAC2012-DIR_4_8-a-4 |
|
20: |
Consider hiding the implementation of the structure 'abort_info' in a translation unit 'pgt_cache.c' |
MISRAC2012-DIR_4_8-a-4 |
|
20: |
Consider hiding the implementation of the structure 'abort_info' in a translation unit 'pseudo_ta.c' |
MISRAC2012-DIR_4_8-a-4 |
|
20: |
Consider hiding the implementation of the structure 'abort_info' in a translation unit 'ree_fs_ta.c' |
MISRAC2012-DIR_4_8-a-4 |
|
20: |
Consider hiding the implementation of the structure 'abort_info' in a translation unit 'rpc_io_i2c.c' |
MISRAC2012-DIR_4_8-a-4 |
|
20: |
Consider hiding the implementation of the structure 'abort_info' in a translation unit 'tee_mm.c' |
MISRAC2012-DIR_4_8-a-4 |
|
20: |
Consider hiding the implementation of the structure 'abort_info' in a translation unit 'thread.c' |
MISRAC2012-DIR_4_8-a-4 |
|
20: |
Consider hiding the implementation of the structure 'abort_info' in a translation unit 'thread_optee_smc.c' |
MISRAC2012-DIR_4_8-a-4 |
| /optee_os_MISRA/optee_os_ruchi393_core/arch/arm/include/kernel/boot.h |
|
6: |
Do not use reserved identifiers : __KERNEL_BOOT_H |
MISRAC2012-RULE_21_1-a-2 |
|
42: |
'embedded_secure_dtb ' array size should be stated explicitly or defined implicitly by initialisation |
MISRAC2012-RULE_8_11-a-4 |
|
42: |
The 'embedded_secure_dtb' object has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
43: |
The 'boot_mmu_config' object has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
46: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
47: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
48: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
51: |
The 'cpu_on_handler' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
51: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
51: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
51: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
52: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
52: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
52: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
54: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
60: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
64: |
The 'plat_cpu_reset_early' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
66: |
The 'arm_cl2_config' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
67: |
The 'arm_cl2_enable' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
73: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
86: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
88: |
The 'ffa_secondary_cpu_boot_req' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
| /optee_os_MISRA/optee_os_ruchi393_core/arch/arm/include/kernel/cache_helpers.h |
|
7: |
Do not use reserved identifiers : __KERNEL_CACHE_HELPERS_H |
MISRAC2012-RULE_21_1-a-2 |
|
20: |
The 'dcache_cleaninv_range' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
21: |
The 'dcache_clean_range' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
22: |
The 'dcache_inv_range' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
23: |
The 'dcache_clean_range_pou' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
25: |
The 'icache_inv_all' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
26: |
The 'icache_inv_range' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
27: |
The 'icache_inv_user_range' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
29: |
The 'dcache_op_louis' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
29: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
30: |
The 'dcache_op_all' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
30: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
32: |
The 'dcache_op_level1' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
32: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
33: |
The 'dcache_op_level2' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
33: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
34: |
The 'dcache_op_level3' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
34: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
39: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
43: |
Shifting operation should be enclosed with if checking that RHS operand does not exceed the upper limit (one less than the
width in bits of the underlying type of the LHS operand)
|
MISRAC2012-RULE_12_2-a-2 |
|
43: |
The expression of the 'essentially signed' type is returned from function 'dcache_get_line_size' with the 'essentially unsigned'
type
|
MISRAC2012-RULE_10_3-b-2 |
|
43: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
44: |
Operands of the '&' operator have different essential types: 'unsigned int' and 'int' |
MISRAC2012-RULE_10_4-a-2 |
|
44: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
44: |
The right hand operand of the '&' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
| /optee_os_MISRA/optee_os_ruchi393_core/arch/arm/include/kernel/delay.h |
|
31: |
Do not use reserved identifiers : __KERNEL_DELAY_H |
MISRAC2012-RULE_21_1-a-2 |
| /optee_os_MISRA/optee_os_ruchi393_core/arch/arm/include/kernel/embedded_ts.h |
|
15: |
Consider hiding the implementation of the structure 'embedded_ts' in a translation unit 'abort.c' |
MISRAC2012-DIR_4_8-a-4 |
|
15: |
Consider hiding the implementation of the structure 'embedded_ts' in a translation unit 'core_mmu.c' |
MISRAC2012-DIR_4_8-a-4 |
|
15: |
Consider hiding the implementation of the structure 'embedded_ts' in a translation unit 'ldelf_loader.c' |
MISRAC2012-DIR_4_8-a-4 |
|
15: |
Consider hiding the implementation of the structure 'embedded_ts' in a translation unit 'ldelf_syscalls.c' |
MISRAC2012-DIR_4_8-a-4 |
|
15: |
Consider hiding the implementation of the structure 'embedded_ts' in a translation unit 'thread.c' |
MISRAC2012-DIR_4_8-a-4 |
|
25: |
The 'emb_ts_read' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
26: |
The 'emb_ts_close' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
28: |
The 'emb_ts_open' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
32: |
The 'emb_ts_get_size' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
33: |
The 'emb_ts_get_tag' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
34: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
| /optee_os_MISRA/optee_os_ruchi393_core/arch/arm/include/kernel/misc.h |
|
14: |
Reserved name '__get_core_pos' used |
MISRAC2012-RULE_21_2-a-2 |
|
14: |
The '__get_core_pos' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
16: |
The names of the identifiers 'get_core_pos' and '__get_core_pos' (line: 14 in the 'misc.h' file) differ only in the presence/absence
of the underscore character
|
MISRAC2012-DIR_4_5-a-4 |
|
22: |
Operands of the '&' operator have different essential types: 'unsigned int' and 'int' |
MISRAC2012-RULE_10_4-a-2 |
|
22: |
Potential macro 'THREAD_EXCP_FOREIGN_INTR' used as '1' parameter of potential macro 'assert' |
MISRAC2012-RULE_20_12-a-2 |
|
22: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
22: |
The left hand operand of the '>>' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
22: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
22: |
The right hand operand of the '&' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
26: |
The 'get_core_pos_mpidr' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
28: |
The 'read_mode_sp' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
28: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
29: |
The 'read_mode_lr' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
29: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
| /optee_os_MISRA/optee_os_ruchi393_core/arch/arm/include/kernel/secure_partition.h |
|
6: |
Do not use reserved identifiers : __KERNEL_SECURE_PARTITION_H |
MISRAC2012-RULE_21_1-a-2 |
|
25: |
Consider hiding the implementation of the structure 'sp_ffa_init_info' in a translation unit 'abort.c' |
MISRAC2012-DIR_4_8-a-4 |
|
25: |
Consider hiding the implementation of the structure 'sp_ffa_init_info' in a translation unit 'core_mmu.c' |
MISRAC2012-DIR_4_8-a-4 |
|
25: |
Consider hiding the implementation of the structure 'sp_ffa_init_info' in a translation unit 'ldelf_loader.c' |
MISRAC2012-DIR_4_8-a-4 |
|
25: |
Consider hiding the implementation of the structure 'sp_ffa_init_info' in a translation unit 'ldelf_syscalls.c' |
MISRAC2012-DIR_4_8-a-4 |
|
25: |
Consider hiding the implementation of the structure 'sp_ffa_init_info' in a translation unit 'thread.c' |
MISRAC2012-DIR_4_8-a-4 |
|
28: |
Flexible array member 'nvp' is declared |
MISRAC2012-RULE_18_7-a-2 |
|
33: |
Consider hiding the implementation of the structure 'sp_session' in a translation unit 'abort.c' |
MISRAC2012-DIR_4_8-a-4 |
|
33: |
Consider hiding the implementation of the structure 'sp_session' in a translation unit 'core_mmu.c' |
MISRAC2012-DIR_4_8-a-4 |
|
33: |
Consider hiding the implementation of the structure 'sp_session' in a translation unit 'ldelf_loader.c' |
MISRAC2012-DIR_4_8-a-4 |
|
33: |
Consider hiding the implementation of the structure 'sp_session' in a translation unit 'ldelf_syscalls.c' |
MISRAC2012-DIR_4_8-a-4 |
|
33: |
Consider hiding the implementation of the structure 'sp_session' in a translation unit 'thread.c' |
MISRAC2012-DIR_4_8-a-4 |
|
39: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
43: |
Consider hiding the implementation of the structure 'sp_ctx' in a translation unit 'thread.c' |
MISRAC2012-DIR_4_8-a-4 |
|
47: |
A tag name 'ts_ctx' is reused |
MISRAC2012-RULE_5_7-a-2 |
|
53: |
Parameter 'ctx' is not used in function 'is_sp_ctx' |
MISRAC2012-RULE_2_7-a-4 |
|
53: |
Pass parameter "ctx" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
63: |
Integral type 'unsigned long' should not be converted to pointer to object type 'struct sp_session *' |
MISRAC2012-RULE_11_4-a-4 |
|
63: |
Pointer to object type 'const struct ts_session *' should not be converted to integral type 'unsigned long' |
MISRAC2012-RULE_11_4-a-4 |
|
63: |
Reserved name '__ptr' used |
MISRAC2012-RULE_21_2-a-2 |
|
69: |
Integral type 'unsigned long' should not be converted to pointer to object type 'struct sp_ctx *' |
MISRAC2012-RULE_11_4-a-4 |
|
69: |
Pointer to object type 'const struct ts_ctx *' should not be converted to integral type 'unsigned long' |
MISRAC2012-RULE_11_4-a-4 |
|
69: |
Reserved name '__ptr' used |
MISRAC2012-RULE_21_2-a-2 |
|
72: |
The 'sp_get_session' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
73: |
The 'sp_enter' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
75: |
Do not define function-like macro: for_each_secure_partition |
MISRAC2012-DIR_4_9-a-4 |
|
76: |
Each instance of parameter: '_sp' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
| /optee_os_MISRA/optee_os_ruchi393_core/arch/arm/include/kernel/spinlock.h |
|
33: |
Reserved name '__cpu_spin_lock' used |
MISRAC2012-RULE_21_2-a-2 |
|
33: |
The '__cpu_spin_lock' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
33: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
34: |
Reserved name '__cpu_spin_unlock' used |
MISRAC2012-RULE_21_2-a-2 |
|
34: |
The '__cpu_spin_unlock' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
34: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
36: |
Reserved name '__cpu_spin_trylock' used |
MISRAC2012-RULE_21_2-a-2 |
|
36: |
The '__cpu_spin_trylock' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
36: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
36: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
38: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
46: |
Do not define function-like macro: cpu_spin_lock |
MISRAC2012-DIR_4_9-a-4 |
|
47: |
Each instance of parameter: 'lock' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
49: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
50: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
52: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
53: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
57: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
59: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
64: |
Conditional statement 'if' in a function 'cpu_spin_lock_dldetect' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
64: |
Operands of the '*' operator have different essential types: 'int' and 'unsigned char' |
MISRAC2012-RULE_10_4-a-2 |
|
64: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
72: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
79: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
79: |
The names of the identifiers 'cpu_spin_trylock' and '__cpu_spin_trylock' (line: 36 in the 'spinlock.h' file) differ only in
the presence/absence of the underscore character
|
MISRAC2012-DIR_4_5-a-4 |
|
81: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
85: |
Conditional statement 'if' in a function 'cpu_spin_trylock' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
85: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
87: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
90: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
90: |
The names of the identifiers 'cpu_spin_unlock' and '__cpu_spin_unlock' (line: 34 in the 'spinlock.h' file) differ only in
the presence/absence of the underscore character
|
MISRAC2012-DIR_4_5-a-4 |
|
97: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
99: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
99: |
The argument number '1' ('essentially signed' type) is passed to the function 'thread_mask_exceptions' as a parameter with
the 'essentially unsigned' type
|
MISRAC2012-RULE_10_3-b-2 |
|
99: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
99: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
99: |
The left hand operand of the '>>' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
99: |
The left hand operand of the '>>' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
99: |
The left hand operand of the '|' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
99: |
The right hand operand of the '|' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
107: |
Do not define function-like macro: cpu_spin_lock_xsave |
MISRAC2012-DIR_4_9-a-4 |
|
108: |
Each instance of parameter: 'lock' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
111: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
112: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
114: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
114: |
The argument number '1' ('essentially signed' type) is passed to the function 'thread_mask_exceptions' as a parameter with
the 'essentially unsigned' type
|
MISRAC2012-RULE_10_3-b-2 |
|
114: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
114: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
114: |
The left hand operand of the '>>' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
114: |
The left hand operand of the '>>' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
114: |
The left hand operand of the '|' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
114: |
The right hand operand of the '|' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
120: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
126: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
| /optee_os_MISRA/optee_os_ruchi393_core/arch/arm/include/kernel/spmc_sp_handler.h |
|
6: |
Do not use reserved identifiers : __KERNEL_SPMC_SP_HANDLER_H |
MISRAC2012-RULE_21_1-a-2 |
|
14: |
Do not define function-like macro: FFA_DST |
MISRAC2012-DIR_4_9-a-4 |
|
15: |
Do not define function-like macro: FFA_SRC |
MISRAC2012-DIR_4_9-a-4 |
|
17: |
The 'spmc_sp_thread_entry' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
18: |
The 'spmc_sp_msg_handler' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
24: |
Parameter 'args' is not used in function 'spmc_sp_start_thread' |
MISRAC2012-RULE_2_7-a-4 |
|
24: |
Pass parameter "args" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
| /optee_os_MISRA/optee_os_ruchi393_core/arch/arm/include/kernel/stmm_sp.h |
|
8: |
Do not use reserved identifiers : __KERNEL_STMM_SP_H |
MISRAC2012-RULE_21_1-a-2 |
|
109: |
Consider hiding the implementation of the structure 'stmm_mp_info' in a translation unit 'abort.c' |
MISRAC2012-DIR_4_8-a-4 |
|
109: |
Consider hiding the implementation of the structure 'stmm_mp_info' in a translation unit 'core_mmu.c' |
MISRAC2012-DIR_4_8-a-4 |
|
109: |
Consider hiding the implementation of the structure 'stmm_mp_info' in a translation unit 'ldelf_loader.c' |
MISRAC2012-DIR_4_8-a-4 |
|
109: |
Consider hiding the implementation of the structure 'stmm_mp_info' in a translation unit 'ldelf_syscalls.c' |
MISRAC2012-DIR_4_8-a-4 |
|
139: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
143: |
The 'stmm_sp_ops' object has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
145: |
Pass parameter "ctx" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
147: |
The right hand operand of the logical operator '&&' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
148: |
The operands of a logical '&&' in function 'is_stmm_ctx' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
154: |
Integral type 'unsigned long' should not be converted to pointer to object type 'struct stmm_ctx *' |
MISRAC2012-RULE_11_4-a-4 |
|
154: |
Pointer to object type 'const struct ts_ctx *' should not be converted to integral type 'unsigned long' |
MISRAC2012-RULE_11_4-a-4 |
|
154: |
Reserved name '__ptr' used |
MISRAC2012-RULE_21_2-a-2 |
|
162: |
Parameter 'uuid' is not used in function 'stmm_init_session' |
MISRAC2012-RULE_2_7-a-4 |
|
163: |
Parameter 's' is not used in function 'stmm_init_session' |
MISRAC2012-RULE_2_7-a-4 |
|
163: |
Pass parameter "s" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
165: |
Integer constant '0xFFFF0008' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
| /optee_os_MISRA/optee_os_ruchi393_core/arch/arm/include/kernel/tee_l2cc_mutex.h |
|
29: |
A tag name 'mutex' is reused |
MISRAC2012-RULE_5_7-a-2 |
|
29: |
Identifier 'mutex' is hiding an identifier from global or namespace scope |
MISRAC2012-RULE_5_3-a-2 |
|
30: |
A tag name 'mutex' is reused |
MISRAC2012-RULE_5_7-a-2 |
|
30: |
Identifier 'mutex' is hiding an identifier from global or namespace scope |
MISRAC2012-RULE_5_3-a-2 |
|
34: |
Integer constant '0xFFFF000A' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
38: |
Integer constant '0xFFFF000A' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
40: |
A tag name 'mutex' is reused |
MISRAC2012-RULE_5_7-a-2 |
|
40: |
Identifier 'mutex' is hiding an identifier from global or namespace scope |
MISRAC2012-RULE_5_3-a-2 |
|
40: |
Parameter 'mutex' is not used in function 'tee_get_l2cc_mutex' |
MISRAC2012-RULE_2_7-a-4 |
|
40: |
Pass parameter "mutex" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
42: |
Integer constant '0xFFFF000A' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
44: |
A tag name 'mutex' is reused |
MISRAC2012-RULE_5_7-a-2 |
|
44: |
Identifier 'mutex' is hiding an identifier from global or namespace scope |
MISRAC2012-RULE_5_3-a-2 |
|
44: |
Parameter 'mutex' is not used in function 'tee_set_l2cc_mutex' |
MISRAC2012-RULE_2_7-a-4 |
|
44: |
Pass parameter "mutex" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
46: |
Integer constant '0xFFFF000A' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
| /optee_os_MISRA/optee_os_ruchi393_core/arch/arm/include/kernel/thread.h |
|
37: |
An external identifier with the same name 'thread_core_local' was declared in the 'thread.c' file in line 42 |
MISRAC2012-RULE_5_8-a-2 |
|
37: |
Consider hiding the implementation of the structure 'thread_core_local' in a translation unit 'abort.c' |
MISRAC2012-DIR_4_8-a-4 |
|
37: |
Consider hiding the implementation of the structure 'thread_core_local' in a translation unit 'arch_svc.c' |
MISRAC2012-DIR_4_8-a-4 |
|
37: |
Consider hiding the implementation of the structure 'thread_core_local' in a translation unit 'asm-defines.c' |
MISRAC2012-DIR_4_8-a-4 |
|
37: |
Consider hiding the implementation of the structure 'thread_core_local' in a translation unit 'cache.c' |
MISRAC2012-DIR_4_8-a-4 |
|
37: |
Consider hiding the implementation of the structure 'thread_core_local' in a translation unit 'console.c' |
MISRAC2012-DIR_4_8-a-4 |
|
37: |
Consider hiding the implementation of the structure 'thread_core_local' in a translation unit 'core_mmu.c' |
MISRAC2012-DIR_4_8-a-4 |
|
37: |
Consider hiding the implementation of the structure 'thread_core_local' in a translation unit 'core_mmu_lpae.c' |
MISRAC2012-DIR_4_8-a-4 |
|
37: |
Consider hiding the implementation of the structure 'thread_core_local' in a translation unit 'dt.c' |
MISRAC2012-DIR_4_8-a-4 |
|
37: |
Consider hiding the implementation of the structure 'thread_core_local' in a translation unit 'entry_fast.c' |
MISRAC2012-DIR_4_8-a-4 |
|
37: |
Consider hiding the implementation of the structure 'thread_core_local' in a translation unit 'entry_std.c' |
MISRAC2012-DIR_4_8-a-4 |
|
37: |
Consider hiding the implementation of the structure 'thread_core_local' in a translation unit 'ldelf_loader.c' |
MISRAC2012-DIR_4_8-a-4 |
|
37: |
Consider hiding the implementation of the structure 'thread_core_local' in a translation unit 'ldelf_syscalls.c' |
MISRAC2012-DIR_4_8-a-4 |
|
37: |
Consider hiding the implementation of the structure 'thread_core_local' in a translation unit 'link_dummies_init.c' |
MISRAC2012-DIR_4_8-a-4 |
|
37: |
Consider hiding the implementation of the structure 'thread_core_local' in a translation unit 'link_dummies_paged.c' |
MISRAC2012-DIR_4_8-a-4 |
|
37: |
Consider hiding the implementation of the structure 'thread_core_local' in a translation unit 'main.c' |
MISRAC2012-DIR_4_8-a-4 |
|
37: |
Consider hiding the implementation of the structure 'thread_core_local' in a translation unit 'mobj.c' |
MISRAC2012-DIR_4_8-a-4 |
|
37: |
Consider hiding the implementation of the structure 'thread_core_local' in a translation unit 'mobj_dyn_shm.c' |
MISRAC2012-DIR_4_8-a-4 |
|
37: |
Consider hiding the implementation of the structure 'thread_core_local' in a translation unit 'msg_param.c' |
MISRAC2012-DIR_4_8-a-4 |
|
37: |
Consider hiding the implementation of the structure 'thread_core_local' in a translation unit 'mutex.c' |
MISRAC2012-DIR_4_8-a-4 |
|
37: |
Consider hiding the implementation of the structure 'thread_core_local' in a translation unit 'panic.c' |
MISRAC2012-DIR_4_8-a-4 |
|
37: |
Consider hiding the implementation of the structure 'thread_core_local' in a translation unit 'pgt_cache.c' |
MISRAC2012-DIR_4_8-a-4 |
|
37: |
Consider hiding the implementation of the structure 'thread_core_local' in a translation unit 'pm.c' |
MISRAC2012-DIR_4_8-a-4 |
|
37: |
Consider hiding the implementation of the structure 'thread_core_local' in a translation unit 'pseudo_ta.c' |
MISRAC2012-DIR_4_8-a-4 |
|
37: |
Consider hiding the implementation of the structure 'thread_core_local' in a translation unit 'ree_fs_ta.c' |
MISRAC2012-DIR_4_8-a-4 |
|
37: |
Consider hiding the implementation of the structure 'thread_core_local' in a translation unit 'rng_fortuna.c' |
MISRAC2012-DIR_4_8-a-4 |
|
37: |
Consider hiding the implementation of the structure 'thread_core_local' in a translation unit 'rpc_io_i2c.c' |
MISRAC2012-DIR_4_8-a-4 |
|
37: |
Consider hiding the implementation of the structure 'thread_core_local' in a translation unit 'tee_mm.c' |
MISRAC2012-DIR_4_8-a-4 |
|
37: |
Consider hiding the implementation of the structure 'thread_core_local' in a translation unit 'tee_time.c' |
MISRAC2012-DIR_4_8-a-4 |
|
37: |
Consider hiding the implementation of the structure 'thread_core_local' in a translation unit 'tee_time_arm_cntpct.c' |
MISRAC2012-DIR_4_8-a-4 |
|
37: |
Consider hiding the implementation of the structure 'thread_core_local' in a translation unit 'thread_optee_smc.c' |
MISRAC2012-DIR_4_8-a-4 |
|
37: |
Consider hiding the implementation of the structure 'thread_core_local' in a translation unit 'timer_a64.c' |
MISRAC2012-DIR_4_8-a-4 |
|
37: |
Consider hiding the implementation of the structure 'thread_core_local' in a translation unit 'trace_ext.c' |
MISRAC2012-DIR_4_8-a-4 |
|
37: |
Consider hiding the implementation of the structure 'thread_core_local' in a translation unit 'unwind_arm64.c' |
MISRAC2012-DIR_4_8-a-4 |
|
46: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
50: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
57: |
An external identifier with the same name 'thread_vector_table' was declared in the 'thread.h' file in line 68 |
MISRAC2012-RULE_5_8-a-2 |
|
68: |
A tag name 'thread_vector_table' is reused |
MISRAC2012-RULE_5_7-a-2 |
|
68: |
The 'thread_vector_table' object has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
70: |
Consider hiding the implementation of the structure 'thread_user_vfp_state' in a translation unit 'mutex.c' |
MISRAC2012-DIR_4_8-a-4 |
|
70: |
Consider hiding the implementation of the structure 'thread_user_vfp_state' in a translation unit 'panic.c' |
MISRAC2012-DIR_4_8-a-4 |
|
70: |
Consider hiding the implementation of the structure 'thread_user_vfp_state' in a translation unit 'rng_fortuna.c' |
MISRAC2012-DIR_4_8-a-4 |
|
70: |
Consider hiding the implementation of the structure 'thread_user_vfp_state' in a translation unit 'timer_a64.c' |
MISRAC2012-DIR_4_8-a-4 |
|
70: |
Consider hiding the implementation of the structure 'thread_user_vfp_state' in a translation unit 'unwind_arm64.c' |
MISRAC2012-DIR_4_8-a-4 |
|
89: |
Consider hiding the implementation of the structure 'thread_smc_args' in a translation unit 'abort.c' |
MISRAC2012-DIR_4_8-a-4 |
|
89: |
Consider hiding the implementation of the structure 'thread_smc_args' in a translation unit 'asm-defines.c' |
MISRAC2012-DIR_4_8-a-4 |
|
89: |
Consider hiding the implementation of the structure 'thread_smc_args' in a translation unit 'boot.c' |
MISRAC2012-DIR_4_8-a-4 |
|
89: |
Consider hiding the implementation of the structure 'thread_smc_args' in a translation unit 'core_mmu.c' |
MISRAC2012-DIR_4_8-a-4 |
|
89: |
Consider hiding the implementation of the structure 'thread_smc_args' in a translation unit 'ldelf_loader.c' |
MISRAC2012-DIR_4_8-a-4 |
|
89: |
Consider hiding the implementation of the structure 'thread_smc_args' in a translation unit 'ldelf_syscalls.c' |
MISRAC2012-DIR_4_8-a-4 |
|
89: |
Consider hiding the implementation of the structure 'thread_smc_args' in a translation unit 'link_dummies_paged.c' |
MISRAC2012-DIR_4_8-a-4 |
|
89: |
Consider hiding the implementation of the structure 'thread_smc_args' in a translation unit 'main.c' |
MISRAC2012-DIR_4_8-a-4 |
|
89: |
Consider hiding the implementation of the structure 'thread_smc_args' in a translation unit 'spin_lock_debug.c' |
MISRAC2012-DIR_4_8-a-4 |
|
89: |
Consider hiding the implementation of the structure 'thread_smc_args' in a translation unit 'thread.c' |
MISRAC2012-DIR_4_8-a-4 |
|
89: |
Consider hiding the implementation of the structure 'thread_smc_args' in a translation unit 'thread_optee_smc.c' |
MISRAC2012-DIR_4_8-a-4 |
|
177: |
Consider hiding the implementation of the structure 'thread_svc_regs' in a translation unit 'abort.c' |
MISRAC2012-DIR_4_8-a-4 |
|
177: |
Consider hiding the implementation of the structure 'thread_svc_regs' in a translation unit 'asm-defines.c' |
MISRAC2012-DIR_4_8-a-4 |
|
177: |
Consider hiding the implementation of the structure 'thread_svc_regs' in a translation unit 'boot.c' |
MISRAC2012-DIR_4_8-a-4 |
|
177: |
Consider hiding the implementation of the structure 'thread_svc_regs' in a translation unit 'cache.c' |
MISRAC2012-DIR_4_8-a-4 |
|
177: |
Consider hiding the implementation of the structure 'thread_svc_regs' in a translation unit 'console.c' |
MISRAC2012-DIR_4_8-a-4 |
|
177: |
Consider hiding the implementation of the structure 'thread_svc_regs' in a translation unit 'core_mmu.c' |
MISRAC2012-DIR_4_8-a-4 |
|
177: |
Consider hiding the implementation of the structure 'thread_svc_regs' in a translation unit 'core_mmu_lpae.c' |
MISRAC2012-DIR_4_8-a-4 |
|
177: |
Consider hiding the implementation of the structure 'thread_svc_regs' in a translation unit 'dt.c' |
MISRAC2012-DIR_4_8-a-4 |
|
177: |
Consider hiding the implementation of the structure 'thread_svc_regs' in a translation unit 'entry_fast.c' |
MISRAC2012-DIR_4_8-a-4 |
|
177: |
Consider hiding the implementation of the structure 'thread_svc_regs' in a translation unit 'entry_std.c' |
MISRAC2012-DIR_4_8-a-4 |
|
177: |
Consider hiding the implementation of the structure 'thread_svc_regs' in a translation unit 'ldelf_loader.c' |
MISRAC2012-DIR_4_8-a-4 |
|
177: |
Consider hiding the implementation of the structure 'thread_svc_regs' in a translation unit 'ldelf_syscalls.c' |
MISRAC2012-DIR_4_8-a-4 |
|
177: |
Consider hiding the implementation of the structure 'thread_svc_regs' in a translation unit 'link_dummies_init.c' |
MISRAC2012-DIR_4_8-a-4 |
|
177: |
Consider hiding the implementation of the structure 'thread_svc_regs' in a translation unit 'link_dummies_paged.c' |
MISRAC2012-DIR_4_8-a-4 |
|
177: |
Consider hiding the implementation of the structure 'thread_svc_regs' in a translation unit 'main.c' |
MISRAC2012-DIR_4_8-a-4 |
|
177: |
Consider hiding the implementation of the structure 'thread_svc_regs' in a translation unit 'mobj.c' |
MISRAC2012-DIR_4_8-a-4 |
|
177: |
Consider hiding the implementation of the structure 'thread_svc_regs' in a translation unit 'mobj_dyn_shm.c' |
MISRAC2012-DIR_4_8-a-4 |
|
177: |
Consider hiding the implementation of the structure 'thread_svc_regs' in a translation unit 'msg_param.c' |
MISRAC2012-DIR_4_8-a-4 |
|
177: |
Consider hiding the implementation of the structure 'thread_svc_regs' in a translation unit 'mutex.c' |
MISRAC2012-DIR_4_8-a-4 |
|
177: |
Consider hiding the implementation of the structure 'thread_svc_regs' in a translation unit 'panic.c' |
MISRAC2012-DIR_4_8-a-4 |
|
177: |
Consider hiding the implementation of the structure 'thread_svc_regs' in a translation unit 'pgt_cache.c' |
MISRAC2012-DIR_4_8-a-4 |
|
177: |
Consider hiding the implementation of the structure 'thread_svc_regs' in a translation unit 'pm.c' |
MISRAC2012-DIR_4_8-a-4 |
|
177: |
Consider hiding the implementation of the structure 'thread_svc_regs' in a translation unit 'pseudo_ta.c' |
MISRAC2012-DIR_4_8-a-4 |
|
177: |
Consider hiding the implementation of the structure 'thread_svc_regs' in a translation unit 'ree_fs_ta.c' |
MISRAC2012-DIR_4_8-a-4 |
|
177: |
Consider hiding the implementation of the structure 'thread_svc_regs' in a translation unit 'rng_fortuna.c' |
MISRAC2012-DIR_4_8-a-4 |
|
177: |
Consider hiding the implementation of the structure 'thread_svc_regs' in a translation unit 'rpc_io_i2c.c' |
MISRAC2012-DIR_4_8-a-4 |
|
177: |
Consider hiding the implementation of the structure 'thread_svc_regs' in a translation unit 'spin_lock_debug.c' |
MISRAC2012-DIR_4_8-a-4 |
|
177: |
Consider hiding the implementation of the structure 'thread_svc_regs' in a translation unit 'tee_mm.c' |
MISRAC2012-DIR_4_8-a-4 |
|
177: |
Consider hiding the implementation of the structure 'thread_svc_regs' in a translation unit 'tee_time.c' |
MISRAC2012-DIR_4_8-a-4 |
|
177: |
Consider hiding the implementation of the structure 'thread_svc_regs' in a translation unit 'tee_time_arm_cntpct.c' |
MISRAC2012-DIR_4_8-a-4 |
|
177: |
Consider hiding the implementation of the structure 'thread_svc_regs' in a translation unit 'thread_optee_smc.c' |
MISRAC2012-DIR_4_8-a-4 |
|
177: |
Consider hiding the implementation of the structure 'thread_svc_regs' in a translation unit 'timer_a64.c' |
MISRAC2012-DIR_4_8-a-4 |
|
177: |
Consider hiding the implementation of the structure 'thread_svc_regs' in a translation unit 'trace_ext.c' |
MISRAC2012-DIR_4_8-a-4 |
|
177: |
Consider hiding the implementation of the structure 'thread_svc_regs' in a translation unit 'unwind_arm64.c' |
MISRAC2012-DIR_4_8-a-4 |
|
253: |
Consider hiding the implementation of the structure 'thread_specific_data' in a translation unit 'boot.c' |
MISRAC2012-DIR_4_8-a-4 |
|
253: |
Consider hiding the implementation of the structure 'thread_specific_data' in a translation unit 'cache.c' |
MISRAC2012-DIR_4_8-a-4 |
|
253: |
Consider hiding the implementation of the structure 'thread_specific_data' in a translation unit 'console.c' |
MISRAC2012-DIR_4_8-a-4 |
|
253: |
Consider hiding the implementation of the structure 'thread_specific_data' in a translation unit 'core_mmu_lpae.c' |
MISRAC2012-DIR_4_8-a-4 |
|
253: |
Consider hiding the implementation of the structure 'thread_specific_data' in a translation unit 'dt.c' |
MISRAC2012-DIR_4_8-a-4 |
|
253: |
Consider hiding the implementation of the structure 'thread_specific_data' in a translation unit 'entry_fast.c' |
MISRAC2012-DIR_4_8-a-4 |
|
253: |
Consider hiding the implementation of the structure 'thread_specific_data' in a translation unit 'entry_std.c' |
MISRAC2012-DIR_4_8-a-4 |
|
253: |
Consider hiding the implementation of the structure 'thread_specific_data' in a translation unit 'ldelf_syscalls.c' |
MISRAC2012-DIR_4_8-a-4 |
|
253: |
Consider hiding the implementation of the structure 'thread_specific_data' in a translation unit 'link_dummies_init.c' |
MISRAC2012-DIR_4_8-a-4 |
|
253: |
Consider hiding the implementation of the structure 'thread_specific_data' in a translation unit 'main.c' |
MISRAC2012-DIR_4_8-a-4 |
|
253: |
Consider hiding the implementation of the structure 'thread_specific_data' in a translation unit 'mobj.c' |
MISRAC2012-DIR_4_8-a-4 |
|
253: |
Consider hiding the implementation of the structure 'thread_specific_data' in a translation unit 'mobj_dyn_shm.c' |
MISRAC2012-DIR_4_8-a-4 |
|
253: |
Consider hiding the implementation of the structure 'thread_specific_data' in a translation unit 'msg_param.c' |
MISRAC2012-DIR_4_8-a-4 |
|
253: |
Consider hiding the implementation of the structure 'thread_specific_data' in a translation unit 'mutex.c' |
MISRAC2012-DIR_4_8-a-4 |
|
253: |
Consider hiding the implementation of the structure 'thread_specific_data' in a translation unit 'panic.c' |
MISRAC2012-DIR_4_8-a-4 |
|
253: |
Consider hiding the implementation of the structure 'thread_specific_data' in a translation unit 'pgt_cache.c' |
MISRAC2012-DIR_4_8-a-4 |
|
253: |
Consider hiding the implementation of the structure 'thread_specific_data' in a translation unit 'pm.c' |
MISRAC2012-DIR_4_8-a-4 |
|
253: |
Consider hiding the implementation of the structure 'thread_specific_data' in a translation unit 'pseudo_ta.c' |
MISRAC2012-DIR_4_8-a-4 |
|
253: |
Consider hiding the implementation of the structure 'thread_specific_data' in a translation unit 'ree_fs_ta.c' |
MISRAC2012-DIR_4_8-a-4 |
|
253: |
Consider hiding the implementation of the structure 'thread_specific_data' in a translation unit 'rng_fortuna.c' |
MISRAC2012-DIR_4_8-a-4 |
|
253: |
Consider hiding the implementation of the structure 'thread_specific_data' in a translation unit 'rpc_io_i2c.c' |
MISRAC2012-DIR_4_8-a-4 |
|
253: |
Consider hiding the implementation of the structure 'thread_specific_data' in a translation unit 'tee_mm.c' |
MISRAC2012-DIR_4_8-a-4 |
|
253: |
Consider hiding the implementation of the structure 'thread_specific_data' in a translation unit 'tee_time.c' |
MISRAC2012-DIR_4_8-a-4 |
|
253: |
Consider hiding the implementation of the structure 'thread_specific_data' in a translation unit 'tee_time_arm_cntpct.c' |
MISRAC2012-DIR_4_8-a-4 |
|
253: |
Consider hiding the implementation of the structure 'thread_specific_data' in a translation unit 'timer_a64.c' |
MISRAC2012-DIR_4_8-a-4 |
|
253: |
Consider hiding the implementation of the structure 'thread_specific_data' in a translation unit 'trace_ext.c' |
MISRAC2012-DIR_4_8-a-4 |
|
253: |
Consider hiding the implementation of the structure 'thread_specific_data' in a translation unit 'unwind_arm64.c' |
MISRAC2012-DIR_4_8-a-4 |
|
256: |
A tag name 'pgt_cache' is reused |
MISRAC2012-RULE_5_7-a-2 |
|
263: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
268: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
278: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
278: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
278: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
279: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
279: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
279: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
280: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
280: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
280: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
281: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
281: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
281: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
282: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
282: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
282: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
326: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
331: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
398: |
Operands of the '&' operator have different essential types: 'unsigned int' and 'int' |
MISRAC2012-RULE_10_4-a-2 |
|
398: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
398: |
The left hand operand of the '>>' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
398: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
398: |
The right hand operand of the '&' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
499: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
499: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
500: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
500: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
500: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
501: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
522: |
The 'thread_unwind_user_mode' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
543: |
A tag name 'mobj' is reused |
MISRAC2012-RULE_5_7-a-2 |
|
562: |
A tag name 'mobj' is reused |
MISRAC2012-RULE_5_7-a-2 |
|
596: |
The names of the identifiers 'end' and '__end' (line: 80 in the 'linker.h' file) differ only in the presence/absence of the
underscore character
|
MISRAC2012-DIR_4_5-a-4 |
|
602: |
The names of the identifiers 'end' and '__end' (line: 80 in the 'linker.h' file) differ only in the presence/absence of the
underscore character
|
MISRAC2012-DIR_4_5-a-4 |
|
647: |
A tag name 'mobj' is reused |
MISRAC2012-RULE_5_7-a-2 |
|
664: |
A tag name 'mobj' is reused |
MISRAC2012-RULE_5_7-a-2 |
|
669: |
A tag name 'mobj' is reused |
MISRAC2012-RULE_5_7-a-2 |
|
692: |
Consider hiding the implementation of the structure 'thread_param' in a translation unit 'abort.c' |
MISRAC2012-DIR_4_8-a-4 |
|
692: |
Consider hiding the implementation of the structure 'thread_param' in a translation unit 'arch_svc.c' |
MISRAC2012-DIR_4_8-a-4 |
|
692: |
Consider hiding the implementation of the structure 'thread_param' in a translation unit 'asm-defines.c' |
MISRAC2012-DIR_4_8-a-4 |
|
692: |
Consider hiding the implementation of the structure 'thread_param' in a translation unit 'boot.c' |
MISRAC2012-DIR_4_8-a-4 |
|
692: |
Consider hiding the implementation of the structure 'thread_param' in a translation unit 'cache.c' |
MISRAC2012-DIR_4_8-a-4 |
|
692: |
Consider hiding the implementation of the structure 'thread_param' in a translation unit 'console.c' |
MISRAC2012-DIR_4_8-a-4 |
|
692: |
Consider hiding the implementation of the structure 'thread_param' in a translation unit 'core_mmu.c' |
MISRAC2012-DIR_4_8-a-4 |
|
692: |
Consider hiding the implementation of the structure 'thread_param' in a translation unit 'core_mmu_lpae.c' |
MISRAC2012-DIR_4_8-a-4 |
|
692: |
Consider hiding the implementation of the structure 'thread_param' in a translation unit 'dt.c' |
MISRAC2012-DIR_4_8-a-4 |
|
692: |
Consider hiding the implementation of the structure 'thread_param' in a translation unit 'entry_fast.c' |
MISRAC2012-DIR_4_8-a-4 |
|
692: |
Consider hiding the implementation of the structure 'thread_param' in a translation unit 'entry_std.c' |
MISRAC2012-DIR_4_8-a-4 |
|
692: |
Consider hiding the implementation of the structure 'thread_param' in a translation unit 'ldelf_loader.c' |
MISRAC2012-DIR_4_8-a-4 |
|
692: |
Consider hiding the implementation of the structure 'thread_param' in a translation unit 'ldelf_syscalls.c' |
MISRAC2012-DIR_4_8-a-4 |
|
692: |
Consider hiding the implementation of the structure 'thread_param' in a translation unit 'link_dummies_init.c' |
MISRAC2012-DIR_4_8-a-4 |
|
692: |
Consider hiding the implementation of the structure 'thread_param' in a translation unit 'link_dummies_paged.c' |
MISRAC2012-DIR_4_8-a-4 |
|
692: |
Consider hiding the implementation of the structure 'thread_param' in a translation unit 'main.c' |
MISRAC2012-DIR_4_8-a-4 |
|
692: |
Consider hiding the implementation of the structure 'thread_param' in a translation unit 'mobj.c' |
MISRAC2012-DIR_4_8-a-4 |
|
692: |
Consider hiding the implementation of the structure 'thread_param' in a translation unit 'mobj_dyn_shm.c' |
MISRAC2012-DIR_4_8-a-4 |
|
692: |
Consider hiding the implementation of the structure 'thread_param' in a translation unit 'msg_param.c' |
MISRAC2012-DIR_4_8-a-4 |
|
692: |
Consider hiding the implementation of the structure 'thread_param' in a translation unit 'mutex.c' |
MISRAC2012-DIR_4_8-a-4 |
|
692: |
Consider hiding the implementation of the structure 'thread_param' in a translation unit 'panic.c' |
MISRAC2012-DIR_4_8-a-4 |
|
692: |
Consider hiding the implementation of the structure 'thread_param' in a translation unit 'pgt_cache.c' |
MISRAC2012-DIR_4_8-a-4 |
|
692: |
Consider hiding the implementation of the structure 'thread_param' in a translation unit 'pm.c' |
MISRAC2012-DIR_4_8-a-4 |
|
692: |
Consider hiding the implementation of the structure 'thread_param' in a translation unit 'pseudo_ta.c' |
MISRAC2012-DIR_4_8-a-4 |
|
692: |
Consider hiding the implementation of the structure 'thread_param' in a translation unit 'rng_fortuna.c' |
MISRAC2012-DIR_4_8-a-4 |
|
692: |
Consider hiding the implementation of the structure 'thread_param' in a translation unit 'spin_lock_debug.c' |
MISRAC2012-DIR_4_8-a-4 |
|
692: |
Consider hiding the implementation of the structure 'thread_param' in a translation unit 'tee_mm.c' |
MISRAC2012-DIR_4_8-a-4 |
|
692: |
Consider hiding the implementation of the structure 'thread_param' in a translation unit 'tee_time_arm_cntpct.c' |
MISRAC2012-DIR_4_8-a-4 |
|
692: |
Consider hiding the implementation of the structure 'thread_param' in a translation unit 'thread.c' |
MISRAC2012-DIR_4_8-a-4 |
|
692: |
Consider hiding the implementation of the structure 'thread_param' in a translation unit 'timer_a64.c' |
MISRAC2012-DIR_4_8-a-4 |
|
692: |
Consider hiding the implementation of the structure 'thread_param' in a translation unit 'trace_ext.c' |
MISRAC2012-DIR_4_8-a-4 |
|
692: |
Consider hiding the implementation of the structure 'thread_param' in a translation unit 'unwind_arm64.c' |
MISRAC2012-DIR_4_8-a-4 |
|
694: |
The 'union' keyword shall not be used |
MISRAC2012-RULE_19_2-a-4 |
|
700: |
Do not define function-like macro: THREAD_PARAM_MEMREF |
MISRAC2012-DIR_4_9-a-4 |
|
702: |
Preprocessor operator ## should not be used |
MISRAC2012-RULE_20_10-a-4 |
|
706: |
Do not define function-like macro: THREAD_PARAM_VALUE |
MISRAC2012-DIR_4_9-a-4 |
|
708: |
Preprocessor operator ## should not be used |
MISRAC2012-RULE_20_10-a-4 |
|
722: |
The 'thread_smc' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
722: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
722: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
722: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
723: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
723: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
741: |
A tag name 'mobj' is reused |
MISRAC2012-RULE_5_7-a-2 |
|
777: |
A tag name 'mobj' is reused |
MISRAC2012-RULE_5_7-a-2 |
| /optee_os_MISRA/optee_os_ruchi393_core/arch/arm/include/kernel/tlb_helpers.h |
|
15: |
The 'tlbi_all' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
16: |
The 'tlbi_asid' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
16: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
17: |
The 'tlbi_mva_allasid' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
17: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
30: |
Operands of the '&' operator have different essential types: 'unsigned int' and 'short' |
MISRAC2012-RULE_10_4-a-2 |
|
30: |
The right hand operand of the '&' operator has essentially signed type: short |
MISRAC2012-RULE_10_1-e-2 |
|
35: |
Composite expression with 'unsigned' essential type category and size of '32' bits shall not be cast to wider essential type
of '64' bits
|
MISRAC2012-RULE_10_8-a-2 |
|
35: |
Operands of the '|' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
35: |
The right hand operand of the '|' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
| /optee_os_MISRA/optee_os_ruchi393_core/arch/arm/include/kernel/tz_ssvce_pl310.h |
|
13: |
The 'pl310_base' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
17: |
An external identifier with the same name 'pl310_base' was declared in the 'tz_ssvce_pl310.h' file in line 13 |
MISRAC2012-RULE_5_8-a-2 |
|
17: |
Identifier 'pl310_base' is hiding an identifier from global or namespace scope |
MISRAC2012-RULE_5_3-a-2 |
|
17: |
The 'arm_cl2_cleaninvbyway' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
18: |
An external identifier with the same name 'pl310_base' was declared in the 'tz_ssvce_pl310.h' file in line 13 |
MISRAC2012-RULE_5_8-a-2 |
|
18: |
Identifier 'pl310_base' is hiding an identifier from global or namespace scope |
MISRAC2012-RULE_5_3-a-2 |
|
18: |
The 'arm_cl2_invbyway' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
19: |
An external identifier with the same name 'pl310_base' was declared in the 'tz_ssvce_pl310.h' file in line 13 |
MISRAC2012-RULE_5_8-a-2 |
|
19: |
Identifier 'pl310_base' is hiding an identifier from global or namespace scope |
MISRAC2012-RULE_5_3-a-2 |
|
19: |
The 'arm_cl2_cleanbyway' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
20: |
An external identifier with the same name 'pl310_base' was declared in the 'tz_ssvce_pl310.h' file in line 13 |
MISRAC2012-RULE_5_8-a-2 |
|
20: |
Identifier 'pl310_base' is hiding an identifier from global or namespace scope |
MISRAC2012-RULE_5_3-a-2 |
|
20: |
The 'arm_cl2_cleanbypa' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
21: |
An external identifier with the same name 'pl310_base' was declared in the 'tz_ssvce_pl310.h' file in line 13 |
MISRAC2012-RULE_5_8-a-2 |
|
21: |
Identifier 'pl310_base' is hiding an identifier from global or namespace scope |
MISRAC2012-RULE_5_3-a-2 |
|
21: |
The 'arm_cl2_invbypa' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
22: |
An external identifier with the same name 'pl310_base' was declared in the 'tz_ssvce_pl310.h' file in line 13 |
MISRAC2012-RULE_5_8-a-2 |
|
22: |
Identifier 'pl310_base' is hiding an identifier from global or namespace scope |
MISRAC2012-RULE_5_3-a-2 |
|
22: |
The 'arm_cl2_cleaninvbypa' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
| /optee_os_MISRA/optee_os_ruchi393_core/arch/arm/include/mm/core_mmu.h |
|
139: |
The size of the array 'names' should be specified explicitly |
MISRAC2012-RULE_9_5-a-2 |
|
165: |
Missing statement or comment before terminating 'break' |
MISRAC2012-RULE_16_4-b-2 |
|
165: |
Missing statement or comment before terminating 'break' |
MISRAC2012-RULE_16_1-f-2 |
|
165: |
Operands of the '==' operator have different essential types: 'unsigned long' and 'teecore_memtypes' |
MISRAC2012-RULE_10_4-a-2 |
|
165: |
The 'switch' statement contains less than two switch-clauses |
MISRAC2012-RULE_16_6-a-2 |
|
165: |
The 'switch' statement contains less than two switch-clauses |
MISRAC2012-RULE_16_1-h-2 |
|
175: |
Consider hiding the implementation of the structure 'core_mmu_phys_mem' in a translation unit 'abort.c' |
MISRAC2012-DIR_4_8-a-4 |
|
175: |
Consider hiding the implementation of the structure 'core_mmu_phys_mem' in a translation unit 'asm-defines.c' |
MISRAC2012-DIR_4_8-a-4 |
|
175: |
Consider hiding the implementation of the structure 'core_mmu_phys_mem' in a translation unit 'cache.c' |
MISRAC2012-DIR_4_8-a-4 |
|
175: |
Consider hiding the implementation of the structure 'core_mmu_phys_mem' in a translation unit 'console.c' |
MISRAC2012-DIR_4_8-a-4 |
|
175: |
Consider hiding the implementation of the structure 'core_mmu_phys_mem' in a translation unit 'core_mmu_lpae.c' |
MISRAC2012-DIR_4_8-a-4 |
|
175: |
Consider hiding the implementation of the structure 'core_mmu_phys_mem' in a translation unit 'dt.c' |
MISRAC2012-DIR_4_8-a-4 |
|
175: |
Consider hiding the implementation of the structure 'core_mmu_phys_mem' in a translation unit 'entry_fast.c' |
MISRAC2012-DIR_4_8-a-4 |
|
175: |
Consider hiding the implementation of the structure 'core_mmu_phys_mem' in a translation unit 'entry_std.c' |
MISRAC2012-DIR_4_8-a-4 |
|
175: |
Consider hiding the implementation of the structure 'core_mmu_phys_mem' in a translation unit 'ldelf_loader.c' |
MISRAC2012-DIR_4_8-a-4 |
|
175: |
Consider hiding the implementation of the structure 'core_mmu_phys_mem' in a translation unit 'ldelf_syscalls.c' |
MISRAC2012-DIR_4_8-a-4 |
|
175: |
Consider hiding the implementation of the structure 'core_mmu_phys_mem' in a translation unit 'link_dummies_init.c' |
MISRAC2012-DIR_4_8-a-4 |
|
175: |
Consider hiding the implementation of the structure 'core_mmu_phys_mem' in a translation unit 'link_dummies_paged.c' |
MISRAC2012-DIR_4_8-a-4 |
|
175: |
Consider hiding the implementation of the structure 'core_mmu_phys_mem' in a translation unit 'mobj.c' |
MISRAC2012-DIR_4_8-a-4 |
|
175: |
Consider hiding the implementation of the structure 'core_mmu_phys_mem' in a translation unit 'mobj_dyn_shm.c' |
MISRAC2012-DIR_4_8-a-4 |
|
175: |
Consider hiding the implementation of the structure 'core_mmu_phys_mem' in a translation unit 'msg_param.c' |
MISRAC2012-DIR_4_8-a-4 |
|
175: |
Consider hiding the implementation of the structure 'core_mmu_phys_mem' in a translation unit 'pgt_cache.c' |
MISRAC2012-DIR_4_8-a-4 |
|
175: |
Consider hiding the implementation of the structure 'core_mmu_phys_mem' in a translation unit 'pm.c' |
MISRAC2012-DIR_4_8-a-4 |
|
175: |
Consider hiding the implementation of the structure 'core_mmu_phys_mem' in a translation unit 'pseudo_ta.c' |
MISRAC2012-DIR_4_8-a-4 |
|
175: |
Consider hiding the implementation of the structure 'core_mmu_phys_mem' in a translation unit 'ree_fs_ta.c' |
MISRAC2012-DIR_4_8-a-4 |
|
175: |
Consider hiding the implementation of the structure 'core_mmu_phys_mem' in a translation unit 'rpc_io_i2c.c' |
MISRAC2012-DIR_4_8-a-4 |
|
175: |
Consider hiding the implementation of the structure 'core_mmu_phys_mem' in a translation unit 'spin_lock_debug.c' |
MISRAC2012-DIR_4_8-a-4 |
|
175: |
Consider hiding the implementation of the structure 'core_mmu_phys_mem' in a translation unit 'tee_mm.c' |
MISRAC2012-DIR_4_8-a-4 |
|
175: |
Consider hiding the implementation of the structure 'core_mmu_phys_mem' in a translation unit 'tee_time.c' |
MISRAC2012-DIR_4_8-a-4 |
|
175: |
Consider hiding the implementation of the structure 'core_mmu_phys_mem' in a translation unit 'tee_time_arm_cntpct.c' |
MISRAC2012-DIR_4_8-a-4 |
|
175: |
Consider hiding the implementation of the structure 'core_mmu_phys_mem' in a translation unit 'thread.c' |
MISRAC2012-DIR_4_8-a-4 |
|
175: |
Consider hiding the implementation of the structure 'core_mmu_phys_mem' in a translation unit 'thread_optee_smc.c' |
MISRAC2012-DIR_4_8-a-4 |
|
175: |
Consider hiding the implementation of the structure 'core_mmu_phys_mem' in a translation unit 'trace_ext.c' |
MISRAC2012-DIR_4_8-a-4 |
|
178: |
The 'union' keyword shall not be used |
MISRAC2012-RULE_19_2-a-4 |
|
187: |
The 'union' keyword shall not be used |
MISRAC2012-RULE_19_2-a-4 |
|
198: |
Do not define function-like macro: __register_memory |
MISRAC2012-DIR_4_9-a-4 |
|
198: |
Do not use reserved identifiers : __register_memory |
MISRAC2012-RULE_21_1-a-2 |
|
199: |
Each instance of parameter: '_section' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
204: |
Do not define function-like macro: __register_memory_ul |
MISRAC2012-DIR_4_9-a-4 |
|
204: |
Do not use reserved identifiers : __register_memory_ul |
MISRAC2012-RULE_21_1-a-2 |
|
205: |
Each instance of parameter: '_section' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
209: |
Do not define function-like macro: __register_memory_ul |
MISRAC2012-DIR_4_9-a-4 |
|
209: |
Do not use reserved identifiers : __register_memory_ul |
MISRAC2012-RULE_21_1-a-2 |
|
210: |
Each instance of parameter: '_addr' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
210: |
Each instance of parameter: '_name' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
210: |
Each instance of parameter: '_section' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
210: |
Each instance of parameter: '_size' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
210: |
Each instance of parameter: '_type' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
213: |
Do not define function-like macro: register_phys_mem |
MISRAC2012-DIR_4_9-a-4 |
|
214: |
Preprocessor operator # should not be used |
MISRAC2012-RULE_20_10-a-4 |
|
217: |
Do not define function-like macro: register_phys_mem_ul |
MISRAC2012-DIR_4_9-a-4 |
|
218: |
Preprocessor operator # should not be used |
MISRAC2012-RULE_20_10-a-4 |
|
222: |
Do not define function-like macro: register_phys_mem_pgdir |
MISRAC2012-DIR_4_9-a-4 |
|
223: |
Each instance of parameter: 'addr' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
223: |
Each instance of parameter: 'type' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
224: |
Each instance of parameter: 'addr' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
224: |
Each instance of parameter: 'addr' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
224: |
Each instance of parameter: 'size' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
228: |
Do not define function-like macro: register_sdp_mem |
MISRAC2012-DIR_4_9-a-4 |
|
229: |
Preprocessor operator # should not be used |
MISRAC2012-RULE_20_10-a-4 |
|
232: |
Do not define function-like macro: register_sdp_mem |
MISRAC2012-DIR_4_9-a-4 |
|
238: |
Do not define function-like macro: register_dynamic_shm |
MISRAC2012-DIR_4_9-a-4 |
|
239: |
Preprocessor operator # should not be used |
MISRAC2012-RULE_20_10-a-4 |
|
257: |
Do not define function-like macro: register_ddr |
MISRAC2012-DIR_4_9-a-4 |
|
258: |
Preprocessor operator # should not be used |
MISRAC2012-RULE_20_10-a-4 |
|
294: |
Consider hiding the implementation of the structure 'core_mmu_config' in a translation unit 'abort.c' |
MISRAC2012-DIR_4_8-a-4 |
|
294: |
Consider hiding the implementation of the structure 'core_mmu_config' in a translation unit 'cache.c' |
MISRAC2012-DIR_4_8-a-4 |
|
294: |
Consider hiding the implementation of the structure 'core_mmu_config' in a translation unit 'dt.c' |
MISRAC2012-DIR_4_8-a-4 |
|
294: |
Consider hiding the implementation of the structure 'core_mmu_config' in a translation unit 'entry_std.c' |
MISRAC2012-DIR_4_8-a-4 |
|
294: |
Consider hiding the implementation of the structure 'core_mmu_config' in a translation unit 'ldelf_loader.c' |
MISRAC2012-DIR_4_8-a-4 |
|
294: |
Consider hiding the implementation of the structure 'core_mmu_config' in a translation unit 'ldelf_syscalls.c' |
MISRAC2012-DIR_4_8-a-4 |
|
294: |
Consider hiding the implementation of the structure 'core_mmu_config' in a translation unit 'mobj.c' |
MISRAC2012-DIR_4_8-a-4 |
|
294: |
Consider hiding the implementation of the structure 'core_mmu_config' in a translation unit 'mobj_dyn_shm.c' |
MISRAC2012-DIR_4_8-a-4 |
|
294: |
Consider hiding the implementation of the structure 'core_mmu_config' in a translation unit 'msg_param.c' |
MISRAC2012-DIR_4_8-a-4 |
|
294: |
Consider hiding the implementation of the structure 'core_mmu_config' in a translation unit 'pgt_cache.c' |
MISRAC2012-DIR_4_8-a-4 |
|
294: |
Consider hiding the implementation of the structure 'core_mmu_config' in a translation unit 'pm.c' |
MISRAC2012-DIR_4_8-a-4 |
|
294: |
Consider hiding the implementation of the structure 'core_mmu_config' in a translation unit 'pseudo_ta.c' |
MISRAC2012-DIR_4_8-a-4 |
|
294: |
Consider hiding the implementation of the structure 'core_mmu_config' in a translation unit 'ree_fs_ta.c' |
MISRAC2012-DIR_4_8-a-4 |
|
294: |
Consider hiding the implementation of the structure 'core_mmu_config' in a translation unit 'rpc_io_i2c.c' |
MISRAC2012-DIR_4_8-a-4 |
|
294: |
Consider hiding the implementation of the structure 'core_mmu_config' in a translation unit 'spin_lock_debug.c' |
MISRAC2012-DIR_4_8-a-4 |
|
294: |
Consider hiding the implementation of the structure 'core_mmu_config' in a translation unit 'tee_mm.c' |
MISRAC2012-DIR_4_8-a-4 |
|
294: |
Consider hiding the implementation of the structure 'core_mmu_config' in a translation unit 'tee_time.c' |
MISRAC2012-DIR_4_8-a-4 |
|
294: |
Consider hiding the implementation of the structure 'core_mmu_config' in a translation unit 'tee_time_arm_cntpct.c' |
MISRAC2012-DIR_4_8-a-4 |
|
294: |
Consider hiding the implementation of the structure 'core_mmu_config' in a translation unit 'thread_optee_smc.c' |
MISRAC2012-DIR_4_8-a-4 |
|
294: |
Consider hiding the implementation of the structure 'core_mmu_config' in a translation unit 'trace_ext.c' |
MISRAC2012-DIR_4_8-a-4 |
|
317: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
331: |
Consider hiding the implementation of the structure 'core_mmu_user_map' in a translation unit 'boot.c' |
MISRAC2012-DIR_4_8-a-4 |
|
331: |
Consider hiding the implementation of the structure 'core_mmu_user_map' in a translation unit 'cache.c' |
MISRAC2012-DIR_4_8-a-4 |
|
331: |
Consider hiding the implementation of the structure 'core_mmu_user_map' in a translation unit 'console.c' |
MISRAC2012-DIR_4_8-a-4 |
|
331: |
Consider hiding the implementation of the structure 'core_mmu_user_map' in a translation unit 'core_mmu.c' |
MISRAC2012-DIR_4_8-a-4 |
|
331: |
Consider hiding the implementation of the structure 'core_mmu_user_map' in a translation unit 'dt.c' |
MISRAC2012-DIR_4_8-a-4 |
|
331: |
Consider hiding the implementation of the structure 'core_mmu_user_map' in a translation unit 'entry_fast.c' |
MISRAC2012-DIR_4_8-a-4 |
|
331: |
Consider hiding the implementation of the structure 'core_mmu_user_map' in a translation unit 'entry_std.c' |
MISRAC2012-DIR_4_8-a-4 |
|
331: |
Consider hiding the implementation of the structure 'core_mmu_user_map' in a translation unit 'ldelf_loader.c' |
MISRAC2012-DIR_4_8-a-4 |
|
331: |
Consider hiding the implementation of the structure 'core_mmu_user_map' in a translation unit 'ldelf_syscalls.c' |
MISRAC2012-DIR_4_8-a-4 |
|
331: |
Consider hiding the implementation of the structure 'core_mmu_user_map' in a translation unit 'link_dummies_init.c' |
MISRAC2012-DIR_4_8-a-4 |
|
331: |
Consider hiding the implementation of the structure 'core_mmu_user_map' in a translation unit 'main.c' |
MISRAC2012-DIR_4_8-a-4 |
|
331: |
Consider hiding the implementation of the structure 'core_mmu_user_map' in a translation unit 'mobj.c' |
MISRAC2012-DIR_4_8-a-4 |
|
331: |
Consider hiding the implementation of the structure 'core_mmu_user_map' in a translation unit 'mobj_dyn_shm.c' |
MISRAC2012-DIR_4_8-a-4 |
|
331: |
Consider hiding the implementation of the structure 'core_mmu_user_map' in a translation unit 'msg_param.c' |
MISRAC2012-DIR_4_8-a-4 |
|
331: |
Consider hiding the implementation of the structure 'core_mmu_user_map' in a translation unit 'pgt_cache.c' |
MISRAC2012-DIR_4_8-a-4 |
|
331: |
Consider hiding the implementation of the structure 'core_mmu_user_map' in a translation unit 'pm.c' |
MISRAC2012-DIR_4_8-a-4 |
|
331: |
Consider hiding the implementation of the structure 'core_mmu_user_map' in a translation unit 'pseudo_ta.c' |
MISRAC2012-DIR_4_8-a-4 |
|
331: |
Consider hiding the implementation of the structure 'core_mmu_user_map' in a translation unit 'ree_fs_ta.c' |
MISRAC2012-DIR_4_8-a-4 |
|
331: |
Consider hiding the implementation of the structure 'core_mmu_user_map' in a translation unit 'rpc_io_i2c.c' |
MISRAC2012-DIR_4_8-a-4 |
|
331: |
Consider hiding the implementation of the structure 'core_mmu_user_map' in a translation unit 'tee_mm.c' |
MISRAC2012-DIR_4_8-a-4 |
|
331: |
Consider hiding the implementation of the structure 'core_mmu_user_map' in a translation unit 'tee_time.c' |
MISRAC2012-DIR_4_8-a-4 |
|
331: |
Consider hiding the implementation of the structure 'core_mmu_user_map' in a translation unit 'tee_time_arm_cntpct.c' |
MISRAC2012-DIR_4_8-a-4 |
|
331: |
Consider hiding the implementation of the structure 'core_mmu_user_map' in a translation unit 'trace_ext.c' |
MISRAC2012-DIR_4_8-a-4 |
|
449: |
The basic numerical type 'unsigned' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
450: |
The basic numerical type 'unsigned' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
451: |
The basic numerical type 'unsigned' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
466: |
The basic numerical type 'unsigned' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
478: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
492: |
The basic numerical type 'unsigned' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
505: |
The basic numerical type 'unsigned' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
514: |
Pass parameter "tbl_info" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
514: |
The basic numerical type 'unsigned' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
517: |
Shifting operation should be enclosed with if checking that RHS operand does not exceed the upper limit (one less than the
width in bits of the underlying type of the LHS operand)
|
MISRAC2012-RULE_12_2-a-2 |
|
517: |
The expression of the 'unsigned long' essential type (8 byte) is returned from the function 'core_mmu_va2idx' with a narrower
essential return type (4 byte)
|
MISRAC2012-RULE_10_3-a-2 |
|
526: |
Pass parameter "tbl_info" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
527: |
The basic numerical type 'unsigned' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
529: |
Essential type of RHS operand (64 bit) is wider than essential type of composite expression in LHS operand (32 bit) |
MISRAC2012-RULE_10_7-a-2 |
|
529: |
Shifting operation should be enclosed with if checking that RHS operand does not exceed the upper limit (one less than the
width in bits of the underlying type of the LHS operand)
|
MISRAC2012-RULE_12_2-a-2 |
|
539: |
Pass parameter "tbl_info" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
541: |
Operands of the '&' operator have different essential types: 'unsigned long' and 'int' |
MISRAC2012-RULE_10_4-a-2 |
|
541: |
Shifting operation should be enclosed with if checking that RHS operand does not exceed the upper limit (one less than the
width in bits of the underlying type of the LHS operand)
|
MISRAC2012-RULE_12_2-a-2 |
|
541: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
541: |
The right hand operand of the '&' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
550: |
Pass parameter "mm" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
552: |
Operands of the '==' operator have different essential types: 'unsigned int' and 'teecore_memtypes' |
MISRAC2012-RULE_10_4-a-2 |
|
552: |
The operands of a logical '||' in function 'core_mmu_is_dynamic_vaspace' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
553: |
Operands of the '==' operator have different essential types: 'unsigned int' and 'teecore_memtypes' |
MISRAC2012-RULE_10_4-a-2 |
|
553: |
The operands of a logical '||' in function 'core_mmu_is_dynamic_vaspace' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
607: |
Parameter number '1' type in function 'core_mmu_get_mem_by_type' is non compatible with corresponding parameter type in other
declaration
|
MISRAC2012-RULE_8_3-a-2 |
|
607: |
Parameter number '1' type in function 'core_mmu_get_mem_by_type' is non compatible with corresponding parameter type in other
declaration
|
MISRAC2012-RULE_8_4-b-2 |
|
615: |
Operands of the '&' operator have different essential types: 'unsigned int' and 'int' |
MISRAC2012-RULE_10_4-a-2 |
|
615: |
The expression of the 'essentially unsigned' type is returned from function 'core_mmu_is_shm_cached' with the 'essentially
Boolean' type
|
MISRAC2012-RULE_10_3-b-2 |
|
615: |
The right hand operand of the '&' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
616: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
616: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
662: |
Parameter 'op' is not used in function 'cache_op_outer' |
MISRAC2012-RULE_2_7-a-4 |
|
663: |
Parameter 'pa' is not used in function 'cache_op_outer' |
MISRAC2012-RULE_2_7-a-4 |
|
664: |
Parameter 'len' is not used in function 'cache_op_outer' |
MISRAC2012-RULE_2_7-a-4 |
|
675: |
The 'map_memarea_sections' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
692: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
693: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
| /optee_os_MISRA/optee_os_ruchi393_core/arch/arm/include/mm/generic_ram_layout.h |
|
7: |
Do not use reserved identifiers : __MM_GENERIC_RAM_LAYOUT_H |
MISRAC2012-RULE_21_1-a-2 |
| /optee_os_MISRA/optee_os_ruchi393_core/arch/arm/include/mm/mobj.h |
|
7: |
Do not use reserved identifiers : __MM_MOBJ_H |
MISRAC2012-RULE_21_1-a-2 |
|
32: |
An external identifier with the same name 'free' was declared in the 'malloc.h' file in line 11 |
MISRAC2012-RULE_5_8-a-2 |
|
43: |
A tag name 'mobj' is reused |
MISRAC2012-RULE_5_7-a-2 |
|
43: |
Identifier 'mobj' is hiding an identifier from global or namespace scope |
MISRAC2012-RULE_5_3-a-2 |
|
45: |
Conditional statement 'if' in a function 'mobj_get_va' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
45: |
The left hand operand of the logical operator '&&' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
45: |
The right hand operand of the logical operator '&&' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
46: |
Provide only one exit point in 'mobj_get_va' function |
MISRAC2012-RULE_15_5-a-4 |
|
47: |
Provide only one exit point in 'mobj_get_va' function |
MISRAC2012-RULE_15_5-a-4 |
|
50: |
A tag name 'mobj' is reused |
MISRAC2012-RULE_5_7-a-2 |
|
50: |
Identifier 'mobj' is hiding an identifier from global or namespace scope |
MISRAC2012-RULE_5_3-a-2 |
|
53: |
Conditional statement 'if' in a function 'mobj_get_pa' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
53: |
The left hand operand of the logical operator '&&' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
53: |
The right hand operand of the logical operator '&&' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
54: |
Provide only one exit point in 'mobj_get_pa' function |
MISRAC2012-RULE_15_5-a-4 |
|
55: |
Integer constant '0xFFFF0000' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
55: |
Provide only one exit point in 'mobj_get_pa' function |
MISRAC2012-RULE_15_5-a-4 |
|
58: |
A tag name 'mobj' is reused |
MISRAC2012-RULE_5_7-a-2 |
|
58: |
Identifier 'mobj' is hiding an identifier from global or namespace scope |
MISRAC2012-RULE_5_3-a-2 |
|
60: |
Conditional statement 'if' in a function 'mobj_get_phys_offs' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
60: |
The left hand operand of the logical operator '&&' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
60: |
The right hand operand of the logical operator '&&' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
61: |
Provide only one exit point in 'mobj_get_phys_offs' function |
MISRAC2012-RULE_15_5-a-4 |
|
62: |
Provide only one exit point in 'mobj_get_phys_offs' function |
MISRAC2012-RULE_15_5-a-4 |
|
65: |
A tag name 'mobj' is reused |
MISRAC2012-RULE_5_7-a-2 |
|
65: |
Identifier 'mobj' is hiding an identifier from global or namespace scope |
MISRAC2012-RULE_5_3-a-2 |
|
67: |
Conditional statement 'if' in a function 'mobj_get_cattr' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
67: |
The left hand operand of the logical operator '&&' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
67: |
The right hand operand of the logical operator '&&' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
68: |
Provide only one exit point in 'mobj_get_cattr' function |
MISRAC2012-RULE_15_5-a-4 |
|
69: |
Integer constant '0xFFFF0000' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
69: |
Provide only one exit point in 'mobj_get_cattr' function |
MISRAC2012-RULE_15_5-a-4 |
|
72: |
A tag name 'mobj' is reused |
MISRAC2012-RULE_5_7-a-2 |
|
72: |
Identifier 'mobj' is hiding an identifier from global or namespace scope |
MISRAC2012-RULE_5_3-a-2 |
|
74: |
Conditional statement 'if' in a function 'mobj_matches' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
74: |
The left hand operand of the logical operator '&&' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
74: |
The right hand operand of the logical operator '&&' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
75: |
Provide only one exit point in 'mobj_matches' function |
MISRAC2012-RULE_15_5-a-4 |
|
76: |
Provide only one exit point in 'mobj_matches' function |
MISRAC2012-RULE_15_5-a-4 |
|
89: |
A tag name 'mobj' is reused |
MISRAC2012-RULE_5_7-a-2 |
|
89: |
Identifier 'mobj' is hiding an identifier from global or namespace scope |
MISRAC2012-RULE_5_3-a-2 |
|
91: |
The left hand operand of the logical operator '&&' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
91: |
The right hand operand of the logical operator '&&' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
92: |
Conditional statement 'if' in a function 'mobj_inc_map' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
92: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
93: |
Provide only one exit point in 'mobj_inc_map' function |
MISRAC2012-RULE_15_5-a-4 |
|
94: |
Provide only one exit point in 'mobj_inc_map' function |
MISRAC2012-RULE_15_5-a-4 |
|
96: |
Integer constant '0xFFFF0000' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
96: |
Provide only one exit point in 'mobj_inc_map' function |
MISRAC2012-RULE_15_5-a-4 |
|
109: |
A tag name 'mobj' is reused |
MISRAC2012-RULE_5_7-a-2 |
|
109: |
Identifier 'mobj' is hiding an identifier from global or namespace scope |
MISRAC2012-RULE_5_3-a-2 |
|
111: |
The left hand operand of the logical operator '&&' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
111: |
The right hand operand of the logical operator '&&' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
112: |
Conditional statement 'if' in a function 'mobj_dec_map' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
112: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
113: |
Provide only one exit point in 'mobj_dec_map' function |
MISRAC2012-RULE_15_5-a-4 |
|
114: |
Provide only one exit point in 'mobj_dec_map' function |
MISRAC2012-RULE_15_5-a-4 |
|
116: |
Integer constant '0xFFFF0000' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
116: |
Provide only one exit point in 'mobj_dec_map' function |
MISRAC2012-RULE_15_5-a-4 |
|
127: |
A tag name 'mobj' is reused |
MISRAC2012-RULE_5_7-a-2 |
|
127: |
Identifier 'mobj' is hiding an identifier from global or namespace scope |
MISRAC2012-RULE_5_3-a-2 |
|
129: |
Conditional statement 'if' in a function 'mobj_get' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
129: |
The left hand operand of the logical operator '&&' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
129: |
The operands of a logical '&&' in function 'mobj_get' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
142: |
A tag name 'mobj' is reused |
MISRAC2012-RULE_5_7-a-2 |
|
142: |
Identifier 'mobj' is hiding an identifier from global or namespace scope |
MISRAC2012-RULE_5_3-a-2 |
|
144: |
Conditional statement 'if' in a function 'mobj_put' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
144: |
The left hand operand of the logical operator '&&' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
144: |
The operands of a logical '&&' in function 'mobj_put' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
154: |
A tag name 'mobj' is reused |
MISRAC2012-RULE_5_7-a-2 |
|
154: |
Identifier 'mobj' is hiding an identifier from global or namespace scope |
MISRAC2012-RULE_5_3-a-2 |
|
158: |
Conditional statement 'if' in a function 'mobj_put_wipe' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
158: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
163: |
A tag name 'mobj' is reused |
MISRAC2012-RULE_5_7-a-2 |
|
163: |
Identifier 'mobj' is hiding an identifier from global or namespace scope |
MISRAC2012-RULE_5_3-a-2 |
|
165: |
Conditional statement 'if' in a function 'mobj_get_cookie' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
165: |
The left hand operand of the logical operator '&&' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
165: |
The right hand operand of the logical operator '&&' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
166: |
Provide only one exit point in 'mobj_get_cookie' function |
MISRAC2012-RULE_15_5-a-4 |
|
168: |
Provide only one exit point in 'mobj_get_cookie' function |
MISRAC2012-RULE_15_5-a-4 |
|
171: |
A tag name 'mobj' is reused |
MISRAC2012-RULE_5_7-a-2 |
|
171: |
Identifier 'mobj' is hiding an identifier from global or namespace scope |
MISRAC2012-RULE_5_3-a-2 |
|
173: |
Conditional statement 'if' in a function 'mobj_get_fobj' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
173: |
The left hand operand of the logical operator '&&' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
173: |
The right hand operand of the logical operator '&&' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
174: |
Provide only one exit point in 'mobj_get_fobj' function |
MISRAC2012-RULE_15_5-a-4 |
|
176: |
Provide only one exit point in 'mobj_get_fobj' function |
MISRAC2012-RULE_15_5-a-4 |
|
179: |
A tag name 'mobj' is reused |
MISRAC2012-RULE_5_7-a-2 |
|
179: |
Identifier 'mobj' is hiding an identifier from global or namespace scope |
MISRAC2012-RULE_5_3-a-2 |
|
184: |
A tag name 'mobj' is reused |
MISRAC2012-RULE_5_7-a-2 |
|
184: |
Identifier 'mobj' is hiding an identifier from global or namespace scope |
MISRAC2012-RULE_5_3-a-2 |
|
189: |
A tag name 'mobj' is reused |
MISRAC2012-RULE_5_7-a-2 |
|
189: |
Identifier 'mobj' is hiding an identifier from global or namespace scope |
MISRAC2012-RULE_5_3-a-2 |
|
194: |
A tag name 'mobj' is reused |
MISRAC2012-RULE_5_7-a-2 |
|
194: |
Identifier 'mobj' is hiding an identifier from global or namespace scope |
MISRAC2012-RULE_5_3-a-2 |
|
194: |
Pass parameter "mobj" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
196: |
Conditional statement 'if' in a function 'mobj_get_phys_granule' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
196: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
197: |
Provide only one exit point in 'mobj_get_phys_granule' function |
MISRAC2012-RULE_15_5-a-4 |
|
198: |
Provide only one exit point in 'mobj_get_phys_granule' function |
MISRAC2012-RULE_15_5-a-4 |
|
209: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
215: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
220: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
221: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
252: |
A tag name 'mobj' is reused |
MISRAC2012-RULE_5_7-a-2 |
|
252: |
Identifier 'mobj' is hiding an identifier from global or namespace scope |
MISRAC2012-RULE_5_3-a-2 |
|
277: |
A tag name 'mobj' is reused |
MISRAC2012-RULE_5_7-a-2 |
|
277: |
Identifier 'mobj' is hiding an identifier from global or namespace scope |
MISRAC2012-RULE_5_3-a-2 |
|
277: |
Parameter 'mobj' is not used in function 'mobj_is_paged' |
MISRAC2012-RULE_2_7-a-4 |
|
277: |
Pass parameter "mobj" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
283: |
The 'mobj_seccpy_shm_alloc' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
285: |
A tag name 'fobj' is reused |
MISRAC2012-RULE_5_7-a-2 |
|
285: |
Identifier 'fobj' is hiding an identifier from global or namespace scope |
MISRAC2012-RULE_5_3-a-2 |
| /optee_os_MISRA/optee_os_ruchi393_core/arch/arm/include/mm/pgt_cache.h |
|
24: |
Consider hiding the implementation of the structure 'pgt' in a translation unit 'abort.c' |
MISRAC2012-DIR_4_8-a-4 |
|
24: |
Consider hiding the implementation of the structure 'pgt' in a translation unit 'arch_svc.c' |
MISRAC2012-DIR_4_8-a-4 |
|
24: |
Consider hiding the implementation of the structure 'pgt' in a translation unit 'asm-defines.c' |
MISRAC2012-DIR_4_8-a-4 |
|
24: |
Consider hiding the implementation of the structure 'pgt' in a translation unit 'boot.c' |
MISRAC2012-DIR_4_8-a-4 |
|
24: |
Consider hiding the implementation of the structure 'pgt' in a translation unit 'cache.c' |
MISRAC2012-DIR_4_8-a-4 |
|
24: |
Consider hiding the implementation of the structure 'pgt' in a translation unit 'console.c' |
MISRAC2012-DIR_4_8-a-4 |
|
24: |
Consider hiding the implementation of the structure 'pgt' in a translation unit 'core_mmu_lpae.c' |
MISRAC2012-DIR_4_8-a-4 |
|
24: |
Consider hiding the implementation of the structure 'pgt' in a translation unit 'dt.c' |
MISRAC2012-DIR_4_8-a-4 |
|
24: |
Consider hiding the implementation of the structure 'pgt' in a translation unit 'entry_fast.c' |
MISRAC2012-DIR_4_8-a-4 |
|
24: |
Consider hiding the implementation of the structure 'pgt' in a translation unit 'entry_std.c' |
MISRAC2012-DIR_4_8-a-4 |
|
24: |
Consider hiding the implementation of the structure 'pgt' in a translation unit 'ldelf_loader.c' |
MISRAC2012-DIR_4_8-a-4 |
|
24: |
Consider hiding the implementation of the structure 'pgt' in a translation unit 'ldelf_syscalls.c' |
MISRAC2012-DIR_4_8-a-4 |
|
24: |
Consider hiding the implementation of the structure 'pgt' in a translation unit 'link_dummies_init.c' |
MISRAC2012-DIR_4_8-a-4 |
|
24: |
Consider hiding the implementation of the structure 'pgt' in a translation unit 'link_dummies_paged.c' |
MISRAC2012-DIR_4_8-a-4 |
|
24: |
Consider hiding the implementation of the structure 'pgt' in a translation unit 'main.c' |
MISRAC2012-DIR_4_8-a-4 |
|
24: |
Consider hiding the implementation of the structure 'pgt' in a translation unit 'mobj.c' |
MISRAC2012-DIR_4_8-a-4 |
|
24: |
Consider hiding the implementation of the structure 'pgt' in a translation unit 'mobj_dyn_shm.c' |
MISRAC2012-DIR_4_8-a-4 |
|
24: |
Consider hiding the implementation of the structure 'pgt' in a translation unit 'msg_param.c' |
MISRAC2012-DIR_4_8-a-4 |
|
24: |
Consider hiding the implementation of the structure 'pgt' in a translation unit 'mutex.c' |
MISRAC2012-DIR_4_8-a-4 |
|
24: |
Consider hiding the implementation of the structure 'pgt' in a translation unit 'panic.c' |
MISRAC2012-DIR_4_8-a-4 |
|
24: |
Consider hiding the implementation of the structure 'pgt' in a translation unit 'pm.c' |
MISRAC2012-DIR_4_8-a-4 |
|
24: |
Consider hiding the implementation of the structure 'pgt' in a translation unit 'pseudo_ta.c' |
MISRAC2012-DIR_4_8-a-4 |
|
24: |
Consider hiding the implementation of the structure 'pgt' in a translation unit 'ree_fs_ta.c' |
MISRAC2012-DIR_4_8-a-4 |
|
24: |
Consider hiding the implementation of the structure 'pgt' in a translation unit 'rng_fortuna.c' |
MISRAC2012-DIR_4_8-a-4 |
|
24: |
Consider hiding the implementation of the structure 'pgt' in a translation unit 'rpc_io_i2c.c' |
MISRAC2012-DIR_4_8-a-4 |
|
24: |
Consider hiding the implementation of the structure 'pgt' in a translation unit 'spin_lock_debug.c' |
MISRAC2012-DIR_4_8-a-4 |
|
24: |
Consider hiding the implementation of the structure 'pgt' in a translation unit 'tee_mm.c' |
MISRAC2012-DIR_4_8-a-4 |
|
24: |
Consider hiding the implementation of the structure 'pgt' in a translation unit 'tee_time.c' |
MISRAC2012-DIR_4_8-a-4 |
|
24: |
Consider hiding the implementation of the structure 'pgt' in a translation unit 'tee_time_arm_cntpct.c' |
MISRAC2012-DIR_4_8-a-4 |
|
24: |
Consider hiding the implementation of the structure 'pgt' in a translation unit 'thread.c' |
MISRAC2012-DIR_4_8-a-4 |
|
24: |
Consider hiding the implementation of the structure 'pgt' in a translation unit 'thread_optee_smc.c' |
MISRAC2012-DIR_4_8-a-4 |
|
24: |
Consider hiding the implementation of the structure 'pgt' in a translation unit 'timer_a64.c' |
MISRAC2012-DIR_4_8-a-4 |
|
24: |
Consider hiding the implementation of the structure 'pgt' in a translation unit 'trace_ext.c' |
MISRAC2012-DIR_4_8-a-4 |
|
24: |
Consider hiding the implementation of the structure 'pgt' in a translation unit 'unwind_arm64.c' |
MISRAC2012-DIR_4_8-a-4 |
|
57: |
Operands of the '<=' operator have different essential types: 'unsigned long' and 'int' |
MISRAC2012-RULE_10_4-a-2 |
|
57: |
The left hand operand of the '&' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
57: |
The operand of the '~' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
57: |
The right hand operand of the '&' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
60: |
A tag name 'pgt_cache' is reused |
MISRAC2012-RULE_5_7-a-2 |
|
60: |
Identifier 'pgt_cache' is hiding an identifier from global or namespace scope |
MISRAC2012-RULE_5_3-a-2 |
|
62: |
A tag name 'pgt_cache' is reused |
MISRAC2012-RULE_5_7-a-2 |
|
62: |
Identifier 'pgt_cache' is hiding an identifier from global or namespace scope |
MISRAC2012-RULE_5_3-a-2 |
|
64: |
A tag name 'pgt_cache' is reused |
MISRAC2012-RULE_5_7-a-2 |
|
64: |
Identifier 'pgt_cache' is hiding an identifier from global or namespace scope |
MISRAC2012-RULE_5_3-a-2 |
|
70: |
A tag name 'pgt_cache' is reused |
MISRAC2012-RULE_5_7-a-2 |
|
70: |
Identifier 'pgt_cache' is hiding an identifier from global or namespace scope |
MISRAC2012-RULE_5_3-a-2 |
|
70: |
Parameter 'pgt_cache' is not used in function 'pgt_flush_ctx_range' |
MISRAC2012-RULE_2_7-a-4 |
|
70: |
Pass parameter "pgt_cache" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
71: |
Parameter 'ctx' is not used in function 'pgt_flush_ctx_range' |
MISRAC2012-RULE_2_7-a-4 |
|
71: |
Pass parameter "ctx" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
72: |
Parameter 'begin' is not used in function 'pgt_flush_ctx_range' |
MISRAC2012-RULE_2_7-a-4 |
|
73: |
Parameter 'last' is not used in function 'pgt_flush_ctx_range' |
MISRAC2012-RULE_2_7-a-4 |
|
101: |
Parameter 'ctx' is not used in function 'pgt_flush_ctx' |
MISRAC2012-RULE_2_7-a-4 |
|
101: |
Pass parameter "ctx" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
105: |
A tag name 'pgt' is reused |
MISRAC2012-RULE_5_7-a-2 |
|
105: |
Identifier 'pgt' is hiding an identifier from global or namespace scope |
MISRAC2012-RULE_5_3-a-2 |
|
105: |
Parameter 'pgt' is not used in function 'pgt_inc_used_entries' |
MISRAC2012-RULE_2_7-a-4 |
|
105: |
Pass parameter "pgt" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
109: |
A tag name 'pgt' is reused |
MISRAC2012-RULE_5_7-a-2 |
|
109: |
Identifier 'pgt' is hiding an identifier from global or namespace scope |
MISRAC2012-RULE_5_3-a-2 |
|
109: |
Parameter 'pgt' is not used in function 'pgt_dec_used_entries' |
MISRAC2012-RULE_2_7-a-4 |
|
109: |
Pass parameter "pgt" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
113: |
A tag name 'pgt' is reused |
MISRAC2012-RULE_5_7-a-2 |
|
113: |
Identifier 'pgt' is hiding an identifier from global or namespace scope |
MISRAC2012-RULE_5_3-a-2 |
|
113: |
Parameter 'pgt' is not used in function 'pgt_set_used_entries' |
MISRAC2012-RULE_2_7-a-4 |
|
113: |
Pass parameter "pgt" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
114: |
Parameter 'val' is not used in function 'pgt_set_used_entries' |
MISRAC2012-RULE_2_7-a-4 |
| /optee_os_MISRA/optee_os_ruchi393_core/arch/arm/include/mm/tee_pager.h |
|
24: |
Consider hiding the implementation of the structure 'tee_pager_area' in a translation unit 'abort.c' |
MISRAC2012-DIR_4_8-a-4 |
|
24: |
Consider hiding the implementation of the structure 'tee_pager_area' in a translation unit 'boot.c' |
MISRAC2012-DIR_4_8-a-4 |
|
24: |
Consider hiding the implementation of the structure 'tee_pager_area' in a translation unit 'core_mmu.c' |
MISRAC2012-DIR_4_8-a-4 |
|
24: |
Consider hiding the implementation of the structure 'tee_pager_area' in a translation unit 'entry_std.c' |
MISRAC2012-DIR_4_8-a-4 |
|
24: |
Consider hiding the implementation of the structure 'tee_pager_area' in a translation unit 'ldelf_loader.c' |
MISRAC2012-DIR_4_8-a-4 |
|
24: |
Consider hiding the implementation of the structure 'tee_pager_area' in a translation unit 'ldelf_syscalls.c' |
MISRAC2012-DIR_4_8-a-4 |
|
24: |
Consider hiding the implementation of the structure 'tee_pager_area' in a translation unit 'mobj.c' |
MISRAC2012-DIR_4_8-a-4 |
|
24: |
Consider hiding the implementation of the structure 'tee_pager_area' in a translation unit 'mobj_dyn_shm.c' |
MISRAC2012-DIR_4_8-a-4 |
|
24: |
Consider hiding the implementation of the structure 'tee_pager_area' in a translation unit 'msg_param.c' |
MISRAC2012-DIR_4_8-a-4 |
|
24: |
Consider hiding the implementation of the structure 'tee_pager_area' in a translation unit 'pgt_cache.c' |
MISRAC2012-DIR_4_8-a-4 |
|
24: |
Consider hiding the implementation of the structure 'tee_pager_area' in a translation unit 'pseudo_ta.c' |
MISRAC2012-DIR_4_8-a-4 |
|
24: |
Consider hiding the implementation of the structure 'tee_pager_area' in a translation unit 'ree_fs_ta.c' |
MISRAC2012-DIR_4_8-a-4 |
|
24: |
Consider hiding the implementation of the structure 'tee_pager_area' in a translation unit 'rpc_io_i2c.c' |
MISRAC2012-DIR_4_8-a-4 |
|
24: |
Consider hiding the implementation of the structure 'tee_pager_area' in a translation unit 'tee_mm.c' |
MISRAC2012-DIR_4_8-a-4 |
|
24: |
Consider hiding the implementation of the structure 'tee_pager_area' in a translation unit 'thread.c' |
MISRAC2012-DIR_4_8-a-4 |
|
24: |
Consider hiding the implementation of the structure 'tee_pager_area' in a translation unit 'thread_optee_smc.c' |
MISRAC2012-DIR_4_8-a-4 |
|
25: |
A tag name 'fobj' is reused |
MISRAC2012-RULE_5_7-a-2 |
|
31: |
A tag name 'pgt' is reused |
MISRAC2012-RULE_5_7-a-2 |
|
36: |
Consider hiding the implementation of the structure 'tee_pager_area_head' in a translation unit 'abort.c' |
MISRAC2012-DIR_4_8-a-4 |
|
36: |
Consider hiding the implementation of the structure 'tee_pager_area_head' in a translation unit 'boot.c' |
MISRAC2012-DIR_4_8-a-4 |
|
36: |
Consider hiding the implementation of the structure 'tee_pager_area_head' in a translation unit 'core_mmu.c' |
MISRAC2012-DIR_4_8-a-4 |
|
36: |
Consider hiding the implementation of the structure 'tee_pager_area_head' in a translation unit 'entry_std.c' |
MISRAC2012-DIR_4_8-a-4 |
|
36: |
Consider hiding the implementation of the structure 'tee_pager_area_head' in a translation unit 'ldelf_loader.c' |
MISRAC2012-DIR_4_8-a-4 |
|
36: |
Consider hiding the implementation of the structure 'tee_pager_area_head' in a translation unit 'ldelf_syscalls.c' |
MISRAC2012-DIR_4_8-a-4 |
|
36: |
Consider hiding the implementation of the structure 'tee_pager_area_head' in a translation unit 'mobj.c' |
MISRAC2012-DIR_4_8-a-4 |
|
36: |
Consider hiding the implementation of the structure 'tee_pager_area_head' in a translation unit 'mobj_dyn_shm.c' |
MISRAC2012-DIR_4_8-a-4 |
|
36: |
Consider hiding the implementation of the structure 'tee_pager_area_head' in a translation unit 'msg_param.c' |
MISRAC2012-DIR_4_8-a-4 |
|
36: |
Consider hiding the implementation of the structure 'tee_pager_area_head' in a translation unit 'pgt_cache.c' |
MISRAC2012-DIR_4_8-a-4 |
|
36: |
Consider hiding the implementation of the structure 'tee_pager_area_head' in a translation unit 'pseudo_ta.c' |
MISRAC2012-DIR_4_8-a-4 |
|
36: |
Consider hiding the implementation of the structure 'tee_pager_area_head' in a translation unit 'ree_fs_ta.c' |
MISRAC2012-DIR_4_8-a-4 |
|
36: |
Consider hiding the implementation of the structure 'tee_pager_area_head' in a translation unit 'rpc_io_i2c.c' |
MISRAC2012-DIR_4_8-a-4 |
|
36: |
Consider hiding the implementation of the structure 'tee_pager_area_head' in a translation unit 'tee_mm.c' |
MISRAC2012-DIR_4_8-a-4 |
|
36: |
Consider hiding the implementation of the structure 'tee_pager_area_head' in a translation unit 'thread.c' |
MISRAC2012-DIR_4_8-a-4 |
|
36: |
Consider hiding the implementation of the structure 'tee_pager_area_head' in a translation unit 'thread_optee_smc.c' |
MISRAC2012-DIR_4_8-a-4 |
|
43: |
The 'tee_pager_early_init' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
53: |
The 'tee_pager_get_table_info' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
62: |
The 'tee_pager_phys_to_virt' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
71: |
The 'tee_pager_set_alias_area' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
82: |
A tag name 'fobj' is reused |
MISRAC2012-RULE_5_7-a-2 |
|
82: |
The 'tee_pager_init_iv_area' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
105: |
The 'tee_pager_add_core_area' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
106: |
A tag name 'fobj' is reused |
MISRAC2012-RULE_5_7-a-2 |
|
125: |
Parameter 'uctx' is not used in function 'tee_pager_add_um_area' |
MISRAC2012-RULE_2_7-a-4 |
|
125: |
Pass parameter "uctx" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
126: |
A tag name 'fobj' is reused |
MISRAC2012-RULE_5_7-a-2 |
|
126: |
Parameter 'base' is not used in function 'tee_pager_add_um_area' |
MISRAC2012-RULE_2_7-a-4 |
|
126: |
Parameter 'fobj' is not used in function 'tee_pager_add_um_area' |
MISRAC2012-RULE_2_7-a-4 |
|
126: |
Pass parameter "fobj" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
127: |
Parameter 'prot' is not used in function 'tee_pager_add_um_area' |
MISRAC2012-RULE_2_7-a-4 |
|
129: |
Integer constant '0xFFFF000A' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
147: |
Parameter 'uctx' is not used in function 'tee_pager_set_um_area_attr' |
MISRAC2012-RULE_2_7-a-4 |
|
147: |
Pass parameter "uctx" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
148: |
Parameter 'base' is not used in function 'tee_pager_set_um_area_attr' |
MISRAC2012-RULE_2_7-a-4 |
|
148: |
Parameter 'size' is not used in function 'tee_pager_set_um_area_attr' |
MISRAC2012-RULE_2_7-a-4 |
|
149: |
Parameter 'flags' is not used in function 'tee_pager_set_um_area_attr' |
MISRAC2012-RULE_2_7-a-4 |
|
159: |
Parameter 'uctx' is not used in function 'tee_pager_rem_um_region' |
MISRAC2012-RULE_2_7-a-4 |
|
159: |
Pass parameter "uctx" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
160: |
Parameter 'base' is not used in function 'tee_pager_rem_um_region' |
MISRAC2012-RULE_2_7-a-4 |
|
161: |
Parameter 'size' is not used in function 'tee_pager_rem_um_region' |
MISRAC2012-RULE_2_7-a-4 |
|
170: |
Parameter 'uctx' is not used in function 'tee_pager_split_um_region' |
MISRAC2012-RULE_2_7-a-4 |
|
170: |
Pass parameter "uctx" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
171: |
Parameter 'va' is not used in function 'tee_pager_split_um_region' |
MISRAC2012-RULE_2_7-a-4 |
|
173: |
Integer constant '0xFFFF000A' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
182: |
Parameter 'uctx' is not used in function 'tee_pager_merge_um_region' |
MISRAC2012-RULE_2_7-a-4 |
|
182: |
Pass parameter "uctx" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
183: |
Parameter 'len' is not used in function 'tee_pager_merge_um_region' |
MISRAC2012-RULE_2_7-a-4 |
|
183: |
Parameter 'va' is not used in function 'tee_pager_merge_um_region' |
MISRAC2012-RULE_2_7-a-4 |
|
197: |
Parameter 'uctx' is not used in function 'tee_pager_rem_um_areas' |
MISRAC2012-RULE_2_7-a-4 |
|
197: |
Pass parameter "uctx" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
213: |
Parameter 'uctx' is not used in function 'tee_pager_assign_um_tables' |
MISRAC2012-RULE_2_7-a-4 |
|
213: |
Pass parameter "uctx" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
225: |
The 'tee_pager_add_pages' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
233: |
The 'tee_pager_alloc' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
263: |
Parameter 'addr' is not used in function 'tee_pager_release_phys' |
MISRAC2012-RULE_2_7-a-4 |
|
263: |
Pass parameter "addr" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
264: |
Parameter 'size' is not used in function 'tee_pager_release_phys' |
MISRAC2012-RULE_2_7-a-4 |
|
285: |
Parameter 'ai' is not used in function 'tee_pager_handle_fault' |
MISRAC2012-RULE_2_7-a-4 |
|
285: |
Pass parameter "ai" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
292: |
Unused function's "memset" return value |
MISRAC2012-RULE_17_7-a-2 |
|
296: |
A tag name 'fobj' is reused |
MISRAC2012-RULE_5_7-a-2 |
|
296: |
The 'tee_pager_invalidate_fobj' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
| /optee_os_MISRA/optee_os_ruchi393_core/arch/arm/include/sm/optee_smc.h |
|
28: |
Do not define function-like macro: OPTEE_SMC_IS_FAST_CALL |
MISRAC2012-DIR_4_9-a-4 |
|
29: |
Do not define function-like macro: OPTEE_SMC_IS_64 |
MISRAC2012-DIR_4_9-a-4 |
|
30: |
Do not define function-like macro: OPTEE_SMC_FUNC_NUM |
MISRAC2012-DIR_4_9-a-4 |
|
31: |
Do not define function-like macro: OPTEE_SMC_OWNER_NUM |
MISRAC2012-DIR_4_9-a-4 |
|
34: |
Do not define function-like macro: OPTEE_SMC_CALL_VAL |
MISRAC2012-DIR_4_9-a-4 |
|
40: |
Do not define function-like macro: OPTEE_SMC_STD_CALL_VAL |
MISRAC2012-DIR_4_9-a-4 |
|
43: |
Do not define function-like macro: OPTEE_SMC_FAST_CALL_VAL |
MISRAC2012-DIR_4_9-a-4 |
|
482: |
Do not define function-like macro: OPTEE_SMC_RETURN_GET_RPC_FUNC |
MISRAC2012-DIR_4_9-a-4 |
|
485: |
Do not define function-like macro: OPTEE_SMC_RPC_VAL |
MISRAC2012-DIR_4_9-a-4 |
|
594: |
Do not define function-like macro: OPTEE_SMC_RETURN_IS_RPC |
MISRAC2012-DIR_4_9-a-4 |
| /optee_os_MISRA/optee_os_ruchi393_core/arch/arm/include/sm/pm.h |
|
34: |
Consider hiding the implementation of the structure 'sm_pm_ctx' in a translation unit 'asm-defines.c' |
MISRAC2012-DIR_4_8-a-4 |
|
41: |
The 'sm_pm_cpu_suspend_save' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
42: |
The 'sm_pm_cpu_do_suspend' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
43: |
The 'sm_pm_cpu_do_resume' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
50: |
Names shall be given for all parameters in a function type 'int (uint32_t)' |
MISRAC2012-RULE_8_2-b-2 |
|
50: |
The 'sm_pm_cpu_suspend' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
50: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
50: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
| /optee_os_MISRA/optee_os_ruchi393_core/arch/arm/include/sm/psci.h |
|
1: |
Multiple include guard should appear as first #ifndef or #if preprocessor directive |
MISRAC2012-DIR_4_10-a-2 |
|
6: |
Do not define function-like macro: PSCI_FN |
MISRAC2012-DIR_4_9-a-4 |
|
58: |
The 'psci_version' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
59: |
The 'psci_cpu_suspend' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
59: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
61: |
The 'psci_cpu_off' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
61: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
62: |
The 'psci_cpu_on' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
62: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
63: |
The 'psci_affinity_info' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
63: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
64: |
The 'psci_migrate' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
64: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
65: |
The 'psci_migrate_info_type' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
65: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
66: |
The 'psci_migrate_info_up_cpu' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
66: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
67: |
The 'psci_system_off' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
68: |
The 'psci_system_reset' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
69: |
The 'psci_features' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
69: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
70: |
The 'psci_node_hw_state' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
70: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
71: |
The 'psci_system_suspend' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
71: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
73: |
The 'psci_stat_residency' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
73: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
74: |
The 'psci_stat_count' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
74: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
75: |
The 'tee_psci_handler' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
77: |
The 'psci_armv7_cpu_off' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
| /optee_os_MISRA/optee_os_ruchi393_core/arch/arm/include/sm/sm.h |
|
86: |
Consider hiding the implementation of the structure 'sm_ctx' in a translation unit 'asm-defines.c' |
MISRAC2012-DIR_4_8-a-4 |
|
86: |
Consider hiding the implementation of the structure 'sm_ctx' in a translation unit 'boot.c' |
MISRAC2012-DIR_4_8-a-4 |
|
86: |
Consider hiding the implementation of the structure 'sm_ctx' in a translation unit 'main.c' |
MISRAC2012-DIR_4_8-a-4 |
|
86: |
Consider hiding the implementation of the structure 'sm_ctx' in a translation unit 'thread.c' |
MISRAC2012-DIR_4_8-a-4 |
|
86: |
Consider hiding the implementation of the structure 'sm_ctx' in a translation unit 'thread_optee_smc.c' |
MISRAC2012-DIR_4_8-a-4 |
|
104: |
The 'sm_get_nsec_ctx' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
107: |
The 'sm_get_sp' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
112: |
The 'sm_init' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
123: |
The 'sm_platform_handler' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
125: |
The 'sm_save_unbanked_regs' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
126: |
The 'sm_restore_unbanked_regs' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
132: |
The 'vector_std_smc_entry' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
134: |
The 'vector_fast_smc_entry' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
136: |
The 'vector_fiq_entry' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
| /optee_os_MISRA/optee_os_ruchi393_core/arch/arm/include/smccc.h |
|
7: |
Do not use reserved identifiers : __SMCCC_H |
MISRAC2012-RULE_21_1-a-2 |
| /optee_os_MISRA/optee_os_ruchi393_core/arch/arm/include/tee/arch_svc.h |
|
23: |
The identifier 'panic' has the same name (or the first 31 characters of the name) as the macro defined in the current translation
unit
|
MISRAC2012-RULE_5_5-a-2 |
|
23: |
The identifier 'panic' has the same name (or the first 63 characters of the name) as the macro defined in the current translation
unit
|
MISRAC2012-RULE_5_5-b-2 |
| /optee_os_MISRA/optee_os_ruchi393_core/arch/arm/include/tee/entry_fast.h |
|
31: |
Reserved name '__tee_entry_fast' used |
MISRAC2012-RULE_21_2-a-2 |
|
31: |
The names of the identifiers '__tee_entry_fast' and 'tee_entry_fast' (line: 30 in the 'entry_fast.h' file) differ only in
the presence/absence of the underscore character
|
MISRAC2012-DIR_4_5-a-4 |
| /optee_os_MISRA/optee_os_ruchi393_core/arch/arm/include/tee/entry_std.h |
|
20: |
Reserved name '__tee_entry_std' used |
MISRAC2012-RULE_21_2-a-2 |
|
20: |
The names of the identifiers '__tee_entry_std' and 'tee_entry_std' (line: 19 in the 'entry_std.h' file) differ only in the
presence/absence of the underscore character
|
MISRAC2012-DIR_4_5-a-4 |
| /optee_os_MISRA/optee_os_ruchi393_core/arch/arm/kernel/abort.c |
|
75: |
Pass parameter "ai" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
75: |
Reserved name '__print_stack_unwind' used |
MISRAC2012-RULE_21_2-a-2 |
|
94: |
Conditional statement 'if' in a function 'abort_type_to_str' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
94: |
Operands of the '==' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
95: |
Provide only one exit point in 'abort_type_to_str' function |
MISRAC2012-RULE_15_5-a-4 |
|
96: |
Conditional statement 'if' in a function 'abort_type_to_str' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
96: |
Operands of the '==' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
97: |
Provide only one exit point in 'abort_type_to_str' function |
MISRAC2012-RULE_15_5-a-4 |
|
98: |
Provide only one exit point in 'abort_type_to_str' function |
MISRAC2012-RULE_15_5-a-4 |
|
105: |
Conditional statement 'if' in a function 'fault_to_str' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
105: |
Operands of the '!=' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
105: |
Operands of the '!=' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
105: |
The operands of a logical '&&' in function 'fault_to_str' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
105: |
The operands of a logical '&&' in function 'fault_to_str' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
106: |
Provide only one exit point in 'fault_to_str' function |
MISRAC2012-RULE_15_5-a-4 |
|
110: |
Provide only one exit point in 'fault_to_str' function |
MISRAC2012-RULE_15_5-a-4 |
|
112: |
Provide only one exit point in 'fault_to_str' function |
MISRAC2012-RULE_15_5-a-4 |
|
114: |
Provide only one exit point in 'fault_to_str' function |
MISRAC2012-RULE_15_5-a-4 |
|
116: |
Provide only one exit point in 'fault_to_str' function |
MISRAC2012-RULE_15_5-a-4 |
|
118: |
Provide only one exit point in 'fault_to_str' function |
MISRAC2012-RULE_15_5-a-4 |
|
123: |
Reserved name '__print_abort_info' used |
MISRAC2012-RULE_21_2-a-2 |
|
143: |
Conditional statement 'if' in a function '__print_abort_info' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
146: |
An 'else' statement in a function '__print_abort_info' shall be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
215: |
Reserved name '__abort_print' used |
MISRAC2012-RULE_21_2-a-2 |
|
215: |
The names of the identifiers '__abort_print' and 'abort_print' (line: 29 in the 'abort.h' file) differ only in the presence/absence
of the underscore character
|
MISRAC2012-DIR_4_5-a-4 |
|
229: |
The function 'abort_print' is referenced only in the translation unit where it is defined |
MISRAC2012-RULE_8_7-a-4 |
|
229: |
The names of the identifiers 'abort_print' and '__abort_print' (line: 215 in the 'abort.c' file) differ only in the presence/absence
of the underscore character
|
MISRAC2012-DIR_4_5-a-4 |
|
234: |
The function 'abort_print_error' is referenced only in the translation unit where it is defined |
MISRAC2012-RULE_8_7-a-4 |
|
249: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with a narrower essential type (4 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
252: |
Conditional statement 'if' in a function 'abort_print_current_ts' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
252: |
Operands of the '!=' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
265: |
Pass parameter "ai" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
273: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with a narrower essential type (4 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
301: |
Parameter 'abort_type' is not used in function 'set_abort_info' |
MISRAC2012-RULE_2_7-a-4 |
|
304: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with a narrower essential type (4 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
305: |
Operands of the '&' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
305: |
The right hand operand of the '&' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
317: |
Every non empty default clause in a switch statement shall be terminated with a break statement |
MISRAC2012-RULE_16_1-d-2 |
|
317: |
Every non empty default clause in a switch statement shall be terminated with a break statement |
MISRAC2012-RULE_16_3-b-2 |
|
321: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with a narrower essential type (4 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
357: |
Integer constant '0xFFFF3024' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
359: |
Integer constant '0xdeadbeef' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
360: |
Pointer to function 'void (*)(uint32_t, uint32_t, uint32_t)' should not be cast to other type |
MISRAC2012-RULE_11_1-a-2 |
|
363: |
Operands of the '&' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
363: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with a narrower essential type (4 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
363: |
The right hand operand of the '&' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
365: |
Operands of the '&' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
365: |
Operands of the '|' operator have different essential types: 'int' and 'unsigned int' |
MISRAC2012-RULE_10_4-a-2 |
|
365: |
The left hand operand of the '&' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
365: |
The left hand operand of the '&' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
365: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
365: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
365: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
365: |
The left hand operand of the '|' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
365: |
The right hand operand of the '&' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
365: |
The right hand operand of the '&' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
365: |
The right hand operand of the '&' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
365: |
The right hand operand of the '|' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
365: |
The value of a composite expression (32 bit essential type) is assigned to an object with wider essential type (64 bit) |
MISRAC2012-RULE_10_6-a-2 |
|
365: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
365: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
365: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
365: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
389: |
Pass parameter "ai" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
389: |
The function 'abort_is_user_exception' is referenced only in the translation unit where it is defined |
MISRAC2012-RULE_8_7-a-4 |
|
391: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with a narrower essential type (4 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
393: |
Conditional statement 'if' in a function 'abort_is_user_exception' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
393: |
Operands of the '&' operator have different essential types: 'unsigned int' and 'int' |
MISRAC2012-RULE_10_4-a-2 |
|
393: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
393: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
393: |
The right hand operand of the '&' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
394: |
Provide only one exit point in 'abort_is_user_exception' function |
MISRAC2012-RULE_15_5-a-4 |
|
395: |
Conditional statement 'if' in a function 'abort_is_user_exception' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
395: |
Operands of the '&' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
395: |
Operands of the '==' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
395: |
The right hand operand of the '&' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
397: |
Provide only one exit point in 'abort_is_user_exception' function |
MISRAC2012-RULE_15_5-a-4 |
|
398: |
Provide only one exit point in 'abort_is_user_exception' function |
MISRAC2012-RULE_15_5-a-4 |
|
425: |
Pass parameter "ai" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
427: |
Operands of the '&' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
427: |
The right hand operand of the '&' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
431: |
Provide only one exit point in 'is_vfp_fault' function |
MISRAC2012-RULE_15_5-a-4 |
|
433: |
Provide only one exit point in 'is_vfp_fault' function |
MISRAC2012-RULE_15_5-a-4 |
|
444: |
Pass parameter "ai" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
447: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
450: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
453: |
Operands of the '==' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
453: |
The operands of a logical '&&' in function 'abort_is_write_fault' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
453: |
The right hand operand of the logical operator '&&' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
454: |
Essential type of LHS operand (32 bit) is wider than essential type of composite expression in RHS operand (8 bit) |
MISRAC2012-RULE_10_7-a-2 |
|
454: |
Shifting operation should be enclosed with if checking that RHS operand does not exceed the upper limit (one less than the
width in bits of the underlying type of the LHS operand)
|
MISRAC2012-RULE_12_2-a-2 |
|
457: |
Function 'get_fault_type' should have return at the end of each execution path |
MISRAC2012-RULE_17_4-a-1 |
|
460: |
Conditional statement 'if' in a function 'get_fault_type' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
461: |
Provide only one exit point in 'get_fault_type' function |
MISRAC2012-RULE_15_5-a-4 |
|
463: |
Provide only one exit point in 'get_fault_type' function |
MISRAC2012-RULE_15_5-a-4 |
|
472: |
Operands of the '==' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
473: |
Conditional statement 'if' in a function 'get_fault_type' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
474: |
Provide only one exit point in 'get_fault_type' function |
MISRAC2012-RULE_15_5-a-4 |
|
481: |
Conditional statement 'if' in a function 'get_fault_type' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
482: |
Provide only one exit point in 'get_fault_type' function |
MISRAC2012-RULE_15_5-a-4 |
|
488: |
Conditional statement 'if' in a function 'get_fault_type' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
489: |
Provide only one exit point in 'get_fault_type' function |
MISRAC2012-RULE_15_5-a-4 |
|
495: |
Conditional statement 'if' in a function 'get_fault_type' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
498: |
Provide only one exit point in 'get_fault_type' function |
MISRAC2012-RULE_15_5-a-4 |
|
503: |
Provide only one exit point in 'get_fault_type' function |
MISRAC2012-RULE_15_5-a-4 |
|
506: |
Conditional statement 'if' in a function 'get_fault_type' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
509: |
Provide only one exit point in 'get_fault_type' function |
MISRAC2012-RULE_15_5-a-4 |
|
513: |
Conditional statement 'if' in a function 'get_fault_type' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
516: |
Provide only one exit point in 'get_fault_type' function |
MISRAC2012-RULE_15_5-a-4 |
| /optee_os_MISRA/optee_os_ruchi393_core/arch/arm/kernel/asm-defines.c |
|
14: |
Prototype of function '__defines' does not precede function definition |
MISRAC2012-RULE_8_4-a-2 |
|
14: |
Reserved name '__defines' used |
MISRAC2012-RULE_21_2-a-2 |
|
14: |
Reserved name '__defines' used |
MISRAC2012-RULE_21_2-a-2 |
|
17: |
Potential macro 'offsetof' used as '2' parameter of potential macro 'DEFINE' |
MISRAC2012-RULE_20_12-a-2 |
|
18: |
Potential macro 'offsetof' used as '2' parameter of potential macro 'DEFINE' |
MISRAC2012-RULE_20_12-a-2 |
|
19: |
Potential macro 'offsetof' used as '2' parameter of potential macro 'DEFINE' |
MISRAC2012-RULE_20_12-a-2 |
|
20: |
Potential macro 'offsetof' used as '2' parameter of potential macro 'DEFINE' |
MISRAC2012-RULE_20_12-a-2 |
|
23: |
Potential macro 'offsetof' used as '2' parameter of potential macro 'DEFINE' |
MISRAC2012-RULE_20_12-a-2 |
|
24: |
Potential macro 'offsetof' used as '2' parameter of potential macro 'DEFINE' |
MISRAC2012-RULE_20_12-a-2 |
|
26: |
Potential macro 'offsetof' used as '2' parameter of potential macro 'DEFINE' |
MISRAC2012-RULE_20_12-a-2 |
|
27: |
Potential macro 'offsetof' used as '2' parameter of potential macro 'DEFINE' |
MISRAC2012-RULE_20_12-a-2 |
|
28: |
Potential macro 'offsetof' used as '2' parameter of potential macro 'DEFINE' |
MISRAC2012-RULE_20_12-a-2 |
|
31: |
Potential macro 'offsetof' used as '2' parameter of potential macro 'DEFINE' |
MISRAC2012-RULE_20_12-a-2 |
|
36: |
Potential macro 'offsetof' used as '2' parameter of potential macro 'DEFINE' |
MISRAC2012-RULE_20_12-a-2 |
|
37: |
Potential macro 'offsetof' used as '2' parameter of potential macro 'DEFINE' |
MISRAC2012-RULE_20_12-a-2 |
|
38: |
Potential macro 'offsetof' used as '2' parameter of potential macro 'DEFINE' |
MISRAC2012-RULE_20_12-a-2 |
|
41: |
Potential macro 'offsetof' used as '2' parameter of potential macro 'DEFINE' |
MISRAC2012-RULE_20_12-a-2 |
|
43: |
Potential macro 'offsetof' used as '2' parameter of potential macro 'DEFINE' |
MISRAC2012-RULE_20_12-a-2 |
|
50: |
Potential macro 'offsetof' used as '2' parameter of potential macro 'DEFINE' |
MISRAC2012-RULE_20_12-a-2 |
|
51: |
Assembly language code is not commented |
MISRAC2012-DIR_4_2-a-4 |
|
53: |
Potential macro 'offsetof' used as '2' parameter of potential macro 'DEFINE' |
MISRAC2012-RULE_20_12-a-2 |
|
54: |
Potential macro 'offsetof' used as '2' parameter of potential macro 'DEFINE' |
MISRAC2012-RULE_20_12-a-2 |
|
55: |
Potential macro 'offsetof' used as '2' parameter of potential macro 'DEFINE' |
MISRAC2012-RULE_20_12-a-2 |
|
56: |
Potential macro 'offsetof' used as '2' parameter of potential macro 'DEFINE' |
MISRAC2012-RULE_20_12-a-2 |
|
57: |
Potential macro 'offsetof' used as '2' parameter of potential macro 'DEFINE' |
MISRAC2012-RULE_20_12-a-2 |
|
58: |
Potential macro 'offsetof' used as '2' parameter of potential macro 'DEFINE' |
MISRAC2012-RULE_20_12-a-2 |
|
59: |
Potential macro 'offsetof' used as '2' parameter of potential macro 'DEFINE' |
MISRAC2012-RULE_20_12-a-2 |
|
60: |
Potential macro 'offsetof' used as '2' parameter of potential macro 'DEFINE' |
MISRAC2012-RULE_20_12-a-2 |
|
61: |
Assembly language code is not commented |
MISRAC2012-DIR_4_2-a-4 |
|
64: |
Potential macro 'offsetof' used as '2' parameter of potential macro 'DEFINE' |
MISRAC2012-RULE_20_12-a-2 |
|
65: |
Potential macro 'offsetof' used as '2' parameter of potential macro 'DEFINE' |
MISRAC2012-RULE_20_12-a-2 |
|
66: |
Potential macro 'offsetof' used as '2' parameter of potential macro 'DEFINE' |
MISRAC2012-RULE_20_12-a-2 |
|
67: |
Potential macro 'offsetof' used as '2' parameter of potential macro 'DEFINE' |
MISRAC2012-RULE_20_12-a-2 |
|
68: |
Assembly language code is not commented |
MISRAC2012-DIR_4_2-a-4 |
|
71: |
Potential macro 'offsetof' used as '2' parameter of potential macro 'DEFINE' |
MISRAC2012-RULE_20_12-a-2 |
|
72: |
Potential macro 'offsetof' used as '2' parameter of potential macro 'DEFINE' |
MISRAC2012-RULE_20_12-a-2 |
|
74: |
Assembly language code is not commented |
MISRAC2012-DIR_4_2-a-4 |
|
77: |
Potential macro 'offsetof' used as '2' parameter of potential macro 'DEFINE' |
MISRAC2012-RULE_20_12-a-2 |
|
78: |
Potential macro 'offsetof' used as '2' parameter of potential macro 'DEFINE' |
MISRAC2012-RULE_20_12-a-2 |
|
79: |
Potential macro 'offsetof' used as '2' parameter of potential macro 'DEFINE' |
MISRAC2012-RULE_20_12-a-2 |
|
80: |
Potential macro 'offsetof' used as '2' parameter of potential macro 'DEFINE' |
MISRAC2012-RULE_20_12-a-2 |
|
81: |
Potential macro 'offsetof' used as '2' parameter of potential macro 'DEFINE' |
MISRAC2012-RULE_20_12-a-2 |
|
82: |
Potential macro 'offsetof' used as '2' parameter of potential macro 'DEFINE' |
MISRAC2012-RULE_20_12-a-2 |
|
83: |
Potential macro 'offsetof' used as '2' parameter of potential macro 'DEFINE' |
MISRAC2012-RULE_20_12-a-2 |
|
88: |
Potential macro 'offsetof' used as '2' parameter of potential macro 'DEFINE' |
MISRAC2012-RULE_20_12-a-2 |
|
90: |
Potential macro 'offsetof' used as '2' parameter of potential macro 'DEFINE' |
MISRAC2012-RULE_20_12-a-2 |
|
92: |
Potential macro 'offsetof' used as '2' parameter of potential macro 'DEFINE' |
MISRAC2012-RULE_20_12-a-2 |
|
93: |
Assembly language code is not commented |
MISRAC2012-DIR_4_2-a-4 |
|
96: |
Potential macro 'offsetof' used as '2' parameter of potential macro 'DEFINE' |
MISRAC2012-RULE_20_12-a-2 |
|
97: |
Potential macro 'offsetof' used as '2' parameter of potential macro 'DEFINE' |
MISRAC2012-RULE_20_12-a-2 |
|
104: |
Potential macro 'offsetof' used as '2' parameter of potential macro 'DEFINE' |
MISRAC2012-RULE_20_12-a-2 |
|
109: |
Potential macro 'offsetof' used as '2' parameter of potential macro 'DEFINE' |
MISRAC2012-RULE_20_12-a-2 |
|
111: |
Potential macro 'offsetof' used as '2' parameter of potential macro 'DEFINE' |
MISRAC2012-RULE_20_12-a-2 |
|
113: |
Potential macro 'offsetof' used as '2' parameter of potential macro 'DEFINE' |
MISRAC2012-RULE_20_12-a-2 |
|
115: |
Potential macro 'offsetof' used as '2' parameter of potential macro 'DEFINE' |
MISRAC2012-RULE_20_12-a-2 |
|
120: |
Potential macro 'offsetof' used as '2' parameter of potential macro 'DEFINE' |
MISRAC2012-RULE_20_12-a-2 |
|
124: |
Potential macro 'offsetof' used as '2' parameter of potential macro 'DEFINE' |
MISRAC2012-RULE_20_12-a-2 |
|
126: |
Potential macro 'offsetof' used as '2' parameter of potential macro 'DEFINE' |
MISRAC2012-RULE_20_12-a-2 |
|
128: |
Potential macro 'offsetof' used as '2' parameter of potential macro 'DEFINE' |
MISRAC2012-RULE_20_12-a-2 |
|
130: |
Potential macro 'offsetof' used as '2' parameter of potential macro 'DEFINE' |
MISRAC2012-RULE_20_12-a-2 |
| /optee_os_MISRA/optee_os_ruchi393_core/arch/arm/kernel/boot.c |
|
79: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
91: |
The function 'plat_primary_init_early' is referenced only in the translation unit where it is defined |
MISRAC2012-RULE_8_7-a-4 |
|
94: |
Declaration of object '____keep_pager_plat_primary_init_early_core_arch_arm_kernel_boot_c' does not precede its definition |
MISRAC2012-RULE_8_4-a-2 |
|
94: |
Pointer to function 'void (*)(void)' should not be cast to other type |
MISRAC2012-RULE_11_1-a-2 |
|
94: |
Reserved name '____keep_pager_plat_primary_init_early' used |
MISRAC2012-RULE_21_2-a-2 |
|
94: |
Reserved name '____keep_pager_plat_primary_init_early_core_arch_arm_kernel_boot_c' used |
MISRAC2012-RULE_21_2-a-2 |
|
94: |
The '____keep_pager_plat_primary_init_early' object has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
94: |
The identifier '____keep_pager_plat_primary_init_early_core_arch_arm_kernel_boot_c' has the same first 31 characters of the
name as the identifier '____keep_pager_plat_primary_init_early' defined in the 'boot.c' file in line '94'
|
MISRAC2012-RULE_5_1-a-2 |
|
97: |
The 'main_init_gic' function is also defined in other translation units |
MISRAC2012-RULE_8_6-a-2 |
|
97: |
The function 'main_init_gic' is referenced only in the translation unit where it is defined |
MISRAC2012-RULE_8_7-a-4 |
|
102: |
The function 'main_secondary_init_gic' is referenced only in the translation unit where it is defined |
MISRAC2012-RULE_8_7-a-4 |
|
107: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
107: |
The function 'init_sec_mon' is referenced only in the translation unit where it is defined |
MISRAC2012-RULE_8_7-a-4 |
|
109: |
Operands of the '*' operator have different essential types: 'long' and 'unsigned long' |
MISRAC2012-RULE_10_4-a-2 |
|
109: |
Potential macro 'PADDR_INVALID' used as '1' parameter of potential macro 'assert' |
MISRAC2012-RULE_20_12-a-2 |
|
109: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
114: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
118: |
Potential macro 'PADDR_INVALID' used as '1' parameter of potential macro 'assert' |
MISRAC2012-RULE_20_12-a-2 |
|
229: |
Do not use reserved identifiers : __ASAN_SHADOW_START |
MISRAC2012-RULE_21_1-a-2 |
|
231: |
Potential macro '__ASAN_SHADOW_START' used as '1' parameter of potential macro 'assert' |
MISRAC2012-RULE_20_12-a-2 |
|
232: |
Do not use reserved identifiers : __CFG_ASAN_SHADOW_OFFSET |
MISRAC2012-RULE_21_1-a-2 |
|
235: |
#undef directive is being used to undefine '__ASAN_SHADOW_START' macro |
MISRAC2012-RULE_20_5-a-4 |
|
235: |
Do not use reserved identifiers : __ASAN_SHADOW_START |
MISRAC2012-RULE_21_1-a-2 |
|
236: |
#undef directive is being used to undefine '__CFG_ASAN_SHADOW_OFFSET' macro |
MISRAC2012-RULE_20_5-a-4 |
|
236: |
Do not use reserved identifiers : __CFG_ASAN_SHADOW_OFFSET |
MISRAC2012-RULE_21_1-a-2 |
|
347: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
350: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
372: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
374: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
385: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
402: |
Potential macro 'SMALL_PAGE_SIZE' used as '1' parameter of potential macro 'assert' |
MISRAC2012-RULE_20_12-a-2 |
|
474: |
Potential macro 'SMALL_PAGE_MASK' used as '1' parameter of potential macro 'assert' |
MISRAC2012-RULE_20_12-a-2 |
|
535: |
Parameter 'pageable_part' is not used in function 'init_runtime' |
MISRAC2012-RULE_2_7-a-4 |
|
535: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
| +
|
550: |
Pointers "__heap1_end" and "__heap1_start", which do not address the elements of the same array, are subtracted |
MISRAC2012-DIR_4_1-i-2 |
| |
|
Start of the path
boot.c (535): static void init_runtime(unsigned long pageable_part __unused)
boot.c (537): init_asan();
Point of subtraction
boot.c (550): malloc_add_pool(__heap1_start, __heap1_end - __heap1_start); |
|
| +
|
550: |
Pointers "__heap1_end" and "__heap1_start", which do not address the elements of the same array, are subtracted |
MISRAC2012-RULE_18_2-a-2 |
| |
|
Start of the path
boot.c (535): static void init_runtime(unsigned long pageable_part __unused)
boot.c (537): init_asan();
Point of subtraction
boot.c (550): malloc_add_pool(__heap1_start, __heap1_end - __heap1_start); |
|
|
550: |
The argument number '2' ('essentially signed' type) is passed to the function 'malloc_add_pool' as a parameter with the 'essentially
unsigned' type
|
MISRAC2012-RULE_10_3-b-2 |
| +
|
561: |
Condition "!fdt" always evaluates to true |
MISRAC2012-RULE_14_3-ac-2 |
| |
|
Start of the path
boot.c (557): void *get_dt(void)
boot.c (559): void *fdt = get_embedded_dt();
boot.c (588): return NULL;
Point where senseless condition is used
boot.c (561): if (!fdt) |
|
|
561: |
Conditional statement 'if' in a function 'get_dt' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
561: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
586: |
The function 'get_embedded_dt' is referenced only in the translation unit where it is defined |
MISRAC2012-RULE_8_7-a-4 |
|
593: |
The function 'get_external_dt' is referenced only in the translation unit where it is defined |
MISRAC2012-RULE_8_7-a-4 |
|
601: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
603: |
Conditional statement 'if' in a function 'release_external_dt' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
603: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
604: |
Provide only one exit point in 'release_external_dt' function |
MISRAC2012-RULE_15_5-a-4 |
|
613: |
Conditional statement 'if' in a function 'release_external_dt' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
613: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
620: |
Provide only one exit point in 'release_external_dt' function |
MISRAC2012-RULE_15_5-a-4 |
|
622: |
Reserved name '__scattered_array_0finalcall' used |
MISRAC2012-RULE_21_2-a-2 |
|
625: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
625: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
628: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
629: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
645: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
645: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
647: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
648: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
664: |
Parameter 'dt' is not used in function 'add_dt_overlay_fragment' |
MISRAC2012-RULE_2_7-a-4 |
|
664: |
Pass parameter "dt" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
664: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
664: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
669: |
Parameter 'dt' is not used in function 'init_dt_overlay' |
MISRAC2012-RULE_2_7-a-4 |
|
669: |
Pass parameter "dt" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
669: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
670: |
Parameter 'dt_size' is not used in function 'init_dt_overlay' |
MISRAC2012-RULE_2_7-a-4 |
|
670: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
676: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
679: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
682: |
Conditional statement 'if' in a function 'add_dt_path_subnode' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
683: |
Provide only one exit point in 'add_dt_path_subnode' function |
MISRAC2012-RULE_15_5-a-4 |
|
685: |
Conditional statement 'if' in a function 'add_dt_path_subnode' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
686: |
Provide only one exit point in 'add_dt_path_subnode' function |
MISRAC2012-RULE_15_5-a-4 |
|
688: |
Conditional statement 'if' in a function 'add_dt_path_subnode' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
689: |
Provide only one exit point in 'add_dt_path_subnode' function |
MISRAC2012-RULE_15_5-a-4 |
|
690: |
Provide only one exit point in 'add_dt_path_subnode' function |
MISRAC2012-RULE_15_5-a-4 |
|
693: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
695: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
696: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
700: |
Provide only one exit point in 'add_optee_dt_node' function |
MISRAC2012-RULE_15_5-a-4 |
|
706: |
Conditional statement 'if' in a function 'add_optee_dt_node' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
707: |
Provide only one exit point in 'add_optee_dt_node' function |
MISRAC2012-RULE_15_5-a-4 |
|
711: |
Conditional statement 'if' in a function 'add_optee_dt_node' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
712: |
Provide only one exit point in 'add_optee_dt_node' function |
MISRAC2012-RULE_15_5-a-4 |
|
714: |
Operands of the '+' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
714: |
The argument number '5' ('essentially unsigned' type) is passed to the function 'fdt_setprop' as a parameter with the 'essentially
signed' type
|
MISRAC2012-RULE_10_3-b-2 |
|
716: |
Conditional statement 'if' in a function 'add_optee_dt_node' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
717: |
Provide only one exit point in 'add_optee_dt_node' function |
MISRAC2012-RULE_15_5-a-4 |
|
718: |
Operands of the '+' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
718: |
The argument number '5' ('essentially unsigned' type) is passed to the function 'fdt_setprop' as a parameter with the 'essentially
signed' type
|
MISRAC2012-RULE_10_3-b-2 |
|
719: |
Conditional statement 'if' in a function 'add_optee_dt_node' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
720: |
Provide only one exit point in 'add_optee_dt_node' function |
MISRAC2012-RULE_15_5-a-4 |
|
721: |
Provide only one exit point in 'add_optee_dt_node' function |
MISRAC2012-RULE_15_5-a-4 |
|
725: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
725: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
730: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
732: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
763: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
763: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
768: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
787: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
789: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
807: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
814: |
Parameter 'dt' is not used in function 'config_psci' |
MISRAC2012-RULE_2_7-a-4 |
|
814: |
Pass parameter "dt" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
814: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
822: |
Operands of the '==' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
825: |
In the call of the function 'memcpy' the first argument type 'void*' is not compatible with the second argument type 'unsigned
int*'
|
MISRAC2012-RULE_21_15-a-2 |
|
825: |
Unused function's "memcpy" return value |
MISRAC2012-RULE_17_7-a-2 |
|
829: |
In the call of the function 'memcpy' the first argument type 'void*' is not compatible with the second argument type 'unsigned
long*'
|
MISRAC2012-RULE_21_15-a-2 |
|
829: |
Unused function's "memcpy" return value |
MISRAC2012-RULE_17_7-a-2 |
|
833: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
836: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
837: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
838: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
839: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
850: |
Unreachable code inside 'if' block |
MISRAC2012-RULE_2_1-c-2 |
|
851: |
The expression of the 'essentially unsigned' type is assigned to an object with the 'essentially signed' type |
MISRAC2012-RULE_10_3-b-2 |
|
852: |
The expression of the 'essentially unsigned' type is assigned to an object with the 'essentially signed' type |
MISRAC2012-RULE_10_3-b-2 |
|
855: |
Conditional statement 'if' in a function 'add_res_mem_dt_node' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
856: |
Provide only one exit point in 'add_res_mem_dt_node' function |
MISRAC2012-RULE_15_5-a-4 |
|
858: |
Conditional statement 'if' in a function 'add_res_mem_dt_node' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
859: |
Provide only one exit point in 'add_res_mem_dt_node' function |
MISRAC2012-RULE_15_5-a-4 |
|
864: |
Conditional statement 'if' in a function 'add_res_mem_dt_node' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
865: |
Provide only one exit point in 'add_res_mem_dt_node' function |
MISRAC2012-RULE_15_5-a-4 |
|
867: |
The argument number '4' ('essentially signed' type) is passed to the function 'fdt_setprop_cell' as a parameter with the 'essentially
unsigned' type
|
MISRAC2012-RULE_10_3-b-2 |
|
868: |
Conditional statement 'if' in a function 'add_res_mem_dt_node' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
869: |
Provide only one exit point in 'add_res_mem_dt_node' function |
MISRAC2012-RULE_15_5-a-4 |
|
870: |
The argument number '4' ('essentially signed' type) is passed to the function 'fdt_setprop_cell' as a parameter with the 'essentially
unsigned' type
|
MISRAC2012-RULE_10_3-b-2 |
|
871: |
Conditional statement 'if' in a function 'add_res_mem_dt_node' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
872: |
Provide only one exit point in 'add_res_mem_dt_node' function |
MISRAC2012-RULE_15_5-a-4 |
|
874: |
Conditional statement 'if' in a function 'add_res_mem_dt_node' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
875: |
Provide only one exit point in 'add_res_mem_dt_node' function |
MISRAC2012-RULE_15_5-a-4 |
|
878: |
Usage of 'snprintf' function is not allowed |
MISRAC2012-RULE_21_6-a-2 |
|
880: |
Conditional statement 'if' in a function 'add_res_mem_dt_node' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
880: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
880: |
The operands of a logical '||' in function 'add_res_mem_dt_node' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
880: |
The operands of a logical '||' in function 'add_res_mem_dt_node' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
886: |
The argument number '2' ('essentially signed' type) is passed to the function 'set_dt_val' as a parameter with the 'essentially
unsigned' type
|
MISRAC2012-RULE_10_3-b-2 |
|
887: |
The argument number '2' ('essentially signed' type) is passed to the function 'set_dt_val' as a parameter with the 'essentially
unsigned' type
|
MISRAC2012-RULE_10_3-b-2 |
|
887: |
The variable 'data' used as the left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
889: |
Operands of the '*' operator have different essential types: 'unsigned long' and 'int' |
MISRAC2012-RULE_10_4-a-2 |
|
889: |
The argument number '5' ('essentially unsigned' type) is passed to the function 'fdt_setprop' as a parameter with the 'essentially
signed' type
|
MISRAC2012-RULE_10_3-b-2 |
|
890: |
Conditional statement 'if' in a function 'add_res_mem_dt_node' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
891: |
Provide only one exit point in 'add_res_mem_dt_node' function |
MISRAC2012-RULE_15_5-a-4 |
|
893: |
Conditional statement 'if' in a function 'add_res_mem_dt_node' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
894: |
Provide only one exit point in 'add_res_mem_dt_node' function |
MISRAC2012-RULE_15_5-a-4 |
|
896: |
Provide only one exit point in 'add_res_mem_dt_node' function |
MISRAC2012-RULE_15_5-a-4 |
|
898: |
Provide only one exit point in 'add_res_mem_dt_node' function |
MISRAC2012-RULE_15_5-a-4 |
|
907: |
Operands of the '==' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
910: |
In the call of the function 'memcpy' the first argument type 'unsigned int*' is not compatible with the second argument type
'unsigned char*'
|
MISRAC2012-RULE_21_15-a-2 |
|
910: |
Pointer to void type should not be converted to pointer to object type 'const uint8_t *' |
MISRAC2012-RULE_11_5-a-4 |
|
910: |
The left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
910: |
Unused function's "memcpy" return value |
MISRAC2012-RULE_17_7-a-2 |
|
916: |
In the call of the function 'memcpy' the first argument type 'unsigned long*' is not compatible with the second argument type
'unsigned char*'
|
MISRAC2012-RULE_21_15-a-2 |
|
916: |
Pointer to void type should not be converted to pointer to object type 'const uint8_t *' |
MISRAC2012-RULE_11_5-a-4 |
|
916: |
The left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
916: |
Unused function's "memcpy" return value |
MISRAC2012-RULE_17_7-a-2 |
|
929: |
Pass parameter "fdt" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
929: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
936: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
937: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
938: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
939: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
941: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
944: |
Conditional statement 'if' in a function 'get_nsec_memory_helper' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
945: |
Provide only one exit point in 'get_nsec_memory_helper' function |
MISRAC2012-RULE_15_5-a-4 |
|
948: |
Conditional statement 'if' in a function 'get_nsec_memory_helper' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
949: |
Provide only one exit point in 'get_nsec_memory_helper' function |
MISRAC2012-RULE_15_5-a-4 |
|
954: |
The argument number '5' ('essentially unsigned' type) is passed to the function 'fdt_node_offset_by_prop_value' as a parameter
with the 'essentially signed' type
|
MISRAC2012-RULE_10_3-b-2 |
|
955: |
Conditional statement 'if' in a function 'get_nsec_memory_helper' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
958: |
Conditional statement 'if' in a function 'get_nsec_memory_helper' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
958: |
Operands of the '!=' operator have different essential types: 'int' and 'unsigned char' |
MISRAC2012-RULE_10_4-a-2 |
|
962: |
Pointer to void type should not be converted to pointer to object type 'const uint8_t *' |
MISRAC2012-RULE_11_5-a-4 |
|
963: |
Conditional statement 'if' in a function 'get_nsec_memory_helper' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
963: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
966: |
The expression of the 'essentially signed' type is assigned to an object with the 'essentially unsigned' type |
MISRAC2012-RULE_10_3-b-2 |
|
967: |
Disallowed comma operator is used in function 'get_nsec_memory_helper' |
MISRAC2012-RULE_12_3-a-4 |
|
967: |
Improper expression is used in the first clause of a 'for' statement |
MISRAC2012-RULE_14_2-b-2 |
|
967: |
The second clause of a 'for' statement contains an object that is modified inside the loop body: 'prop_offs' |
MISRAC2012-RULE_14_2-c-2 |
|
967: |
The second clause of a 'for' statement does not contain a loop counter |
MISRAC2012-RULE_14_2-c-2 |
|
967: |
The third clause of a 'for' statement contains an expression with a persistent side effect other than modification of a loop
counter
|
MISRAC2012-RULE_14_2-d-2 |
|
968: |
The argument number '3' ('essentially signed' type) is passed to the function 'get_dt_val_and_advance' as a parameter with
the 'essentially unsigned' type
|
MISRAC2012-RULE_10_3-b-2 |
|
974: |
The argument number '3' ('essentially signed' type) is passed to the function 'get_dt_val_and_advance' as a parameter with
the 'essentially unsigned' type
|
MISRAC2012-RULE_10_3-b-2 |
|
975: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
979: |
Parameter 'mem' is modified in function 'get_nsec_memory_helper' |
MISRAC2012-RULE_17_8-a-4 |
|
983: |
Operands of the '+=' operator have different essential types: 'int' and 'unsigned long' |
MISRAC2012-RULE_10_4-a-2 |
|
986: |
Provide only one exit point in 'get_nsec_memory_helper' function |
MISRAC2012-RULE_15_5-a-4 |
|
992: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
995: |
Conditional statement 'if' in a function 'get_nsec_memory' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
996: |
Provide only one exit point in 'get_nsec_memory' function |
MISRAC2012-RULE_15_5-a-4 |
|
998: |
'calloc' function should not be used |
MISRAC2012-RULE_21_3-a-2 |
|
998: |
'calloc' function should not be used |
MISRAC2012-DIR_4_12-a-2 |
|
998: |
Pointer to void type should not be converted to pointer to object type 'struct core_mmu_phys_mem *' |
MISRAC2012-RULE_11_5-a-4 |
|
998: |
The argument number '1' ('essentially signed' type) is passed to the function 'calloc' as a parameter with the 'essentially
unsigned' type
|
MISRAC2012-RULE_10_3-b-2 |
|
999: |
Conditional statement 'if' in a function 'get_nsec_memory' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
999: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
1005: |
The expression of the 'essentially signed' type is assigned to an object with the 'essentially unsigned' type |
MISRAC2012-RULE_10_3-b-2 |
|
1007: |
Provide only one exit point in 'get_nsec_memory' function |
MISRAC2012-RULE_15_5-a-4 |
|
1012: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
1018: |
Conditional statement 'if' in a function 'mark_static_shm_as_reserved' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1019: |
Provide only one exit point in 'mark_static_shm_as_reserved' function |
MISRAC2012-RULE_15_5-a-4 |
|
1020: |
Arithmetic type 'unsigned long' should not be converted to pointer to void type |
MISRAC2012-RULE_11_6-a-2 |
|
1024: |
Provide only one exit point in 'mark_static_shm_as_reserved' function |
MISRAC2012-RULE_15_5-a-4 |
|
1028: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
1032: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
1034: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
1044: |
'return' statement should be at the end of the 'init_external_dt' function |
MISRAC2012-RULE_15_5-a-4 |
|
1047: |
Conditional statement 'if' in a function 'init_external_dt' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1051: |
Conditional statement 'if' in a function 'init_external_dt' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1051: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
1072: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
1082: |
Conditional statement 'if' in a function 'update_external_dt' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1082: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
1083: |
'return' statement should be at the end of the 'update_external_dt' function |
MISRAC2012-RULE_15_5-a-4 |
|
1085: |
Conditional statement 'if' in a function 'update_external_dt' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1085: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
1088: |
Conditional statement 'if' in a function 'update_external_dt' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1088: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
1092: |
Conditional statement 'if' in a function 'update_external_dt' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1092: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
1096: |
Conditional statement 'if' in a function 'update_external_dt' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1096: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
1105: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
1131: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
1133: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
1135: |
Provide only one exit point in 'discover_nsec_memory' function |
MISRAC2012-RULE_15_5-a-4 |
|
1141: |
Pointer to void type should not be converted to pointer to object type 'const struct core_mmu_phys_mem *' |
MISRAC2012-RULE_11_5-a-4 |
|
1141: |
Reserved name '__scattered_array_begin' used |
MISRAC2012-RULE_21_2-a-2 |
|
1142: |
Reserved name '__scattered_array_end' used |
MISRAC2012-RULE_21_2-a-2 |
|
1143: |
The expression of the 'essentially signed' type is assigned to an object with the 'essentially unsigned' type |
MISRAC2012-RULE_10_3-b-2 |
|
1144: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
1149: |
Identifier '__scattered_array_begin' is being reused |
MISRAC2012-RULE_5_9-b-4 |
|
1149: |
Identifier '__scattered_array_end' is being reused |
MISRAC2012-RULE_5_9-b-4 |
|
1149: |
Pointer to void type should not be converted to pointer to object type 'const struct core_mmu_phys_mem *' |
MISRAC2012-RULE_11_5-a-4 |
|
1149: |
Potential macro 'phys_ddr_overall_compat_begin' used as '1' parameter of potential macro 'assert' |
MISRAC2012-RULE_20_12-a-2 |
|
1149: |
Reserved name '__scattered_array_begin' used |
MISRAC2012-RULE_21_2-a-2 |
|
1149: |
Reserved name '__scattered_array_end' used |
MISRAC2012-RULE_21_2-a-2 |
|
1150: |
Potential macro 'phys_ddr_overall_compat_end' used as '1' parameter of potential macro 'assert' |
MISRAC2012-RULE_20_12-a-2 |
|
1152: |
Identifier '__scattered_array_begin' is being reused |
MISRAC2012-RULE_5_9-b-4 |
|
1152: |
Pointer to void type should not be converted to pointer to object type 'const struct core_mmu_phys_mem *' |
MISRAC2012-RULE_11_5-a-4 |
|
1152: |
Reserved name '__scattered_array_begin' used |
MISRAC2012-RULE_21_2-a-2 |
|
1153: |
Identifier '__scattered_array_end' is being reused |
MISRAC2012-RULE_5_9-b-4 |
|
1153: |
Reserved name '__scattered_array_end' used |
MISRAC2012-RULE_21_2-a-2 |
|
1154: |
The expression of the 'essentially signed' type is assigned to an object with the 'essentially unsigned' type |
MISRAC2012-RULE_10_3-b-2 |
|
1155: |
Conditional statement 'if' in a function 'discover_nsec_memory' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1155: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
1156: |
Provide only one exit point in 'discover_nsec_memory' function |
MISRAC2012-RULE_15_5-a-4 |
|
1160: |
'calloc' function should not be used |
MISRAC2012-RULE_21_3-a-2 |
|
1160: |
'calloc' function should not be used |
MISRAC2012-DIR_4_12-a-2 |
|
1160: |
Pointer to void type should not be converted to pointer to object type 'struct core_mmu_phys_mem *' |
MISRAC2012-RULE_11_5-a-4 |
|
1161: |
Conditional statement 'if' in a function 'discover_nsec_memory' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1161: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
1164: |
Identifier '__scattered_array_begin' is being reused |
MISRAC2012-RULE_5_9-b-4 |
|
1164: |
Pointer to void type should not be converted to pointer to object type 'const struct core_mmu_phys_mem *' |
MISRAC2012-RULE_11_5-a-4 |
|
1164: |
Reserved name '__scattered_array_begin' used |
MISRAC2012-RULE_21_2-a-2 |
| +
|
1164: |
The return value of the "scattered_array_relax_ptr" method is not checked. It is checked at least 80% times in the testing
scope
|
MISRAC2012-DIR_4_7-a-2 |
| |
|
Example path
boot.c (1149): assert(phys_ddr_overall_compat_begin == *** Method call *** Example of checking
Violation path
Method call
boot.c (1164): scattered_array_relax_ptr(...)
Point by which returned value should be checked
boot.c (1164): memcpy(...) |
|
|
1164: |
Unused function's "memcpy" return value |
MISRAC2012-RULE_17_7-a-2 |
|
1173: |
The function 'init_tee_runtime' is referenced only in the translation unit where it is defined |
MISRAC2012-RULE_8_7-a-4 |
|
1187: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
1187: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
1196: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
1196: |
The argument number '1' ('essentially signed' type) is passed to the function 'thread_set_exceptions' as a parameter with
the 'essentially unsigned' type
|
MISRAC2012-RULE_10_3-b-2 |
|
1196: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
1196: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
1196: |
The left hand operand of the '>>' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
1196: |
The left hand operand of the '>>' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
1196: |
The left hand operand of the '|' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
1196: |
The right hand operand of the '|' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
1208: |
Unreachable code inside 'if' block |
MISRAC2012-RULE_2_1-c-2 |
|
1228: |
The 'boot_init_primary_late' function is also defined in other translation units |
MISRAC2012-RULE_8_6-a-2 |
|
1228: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
1240: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
1256: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
1267: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
1267: |
The argument number '1' ('essentially signed' type) is passed to the function 'thread_set_exceptions' as a parameter with
the 'essentially unsigned' type
|
MISRAC2012-RULE_10_3-b-2 |
|
1267: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
1267: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
1267: |
The left hand operand of the '>>' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
1267: |
The left hand operand of the '>>' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
1267: |
The left hand operand of the '|' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
1267: |
The right hand operand of the '|' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
1283: |
The 'boot_init_primary_early' function is also defined in other translation units |
MISRAC2012-RULE_8_6-a-2 |
|
1283: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
1284: |
Parameter 'nsec_entry' is not used in function 'boot_init_primary_early' |
MISRAC2012-RULE_2_7-a-4 |
|
1284: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
1286: |
Operands of the '*' operator have different essential types: 'long' and 'unsigned long' |
MISRAC2012-RULE_10_4-a-2 |
|
1286: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
1286: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
1296: |
Parameter 'a0' is not used in function 'boot_cpu_on_handler' |
MISRAC2012-RULE_2_7-a-4 |
|
1296: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
1296: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
1297: |
Parameter 'a1' is not used in function 'boot_cpu_on_handler' |
MISRAC2012-RULE_2_7-a-4 |
|
1297: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
1299: |
Operands of the '*' operator have different essential types: 'long' and 'unsigned long' |
MISRAC2012-RULE_10_4-a-2 |
|
1299: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
1303: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
1318: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
1352: |
Pass parameter "fdt" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
1352: |
The 'get_aslr_seed' function is also defined in other translation units |
MISRAC2012-RULE_8_6-a-2 |
|
1352: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
1354: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
1356: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
1357: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
1359: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
1361: |
Provide only one exit point in 'get_aslr_seed' function |
MISRAC2012-RULE_15_5-a-4 |
|
1367: |
Provide only one exit point in 'get_aslr_seed' function |
MISRAC2012-RULE_15_5-a-4 |
|
1369: |
Pointer to void type should not be converted to pointer to object type 'const uint64_t *' |
MISRAC2012-RULE_11_5-a-4 |
|
1370: |
Operands of the '!=' operator have different essential types: 'int' and 'unsigned long' |
MISRAC2012-RULE_10_4-a-2 |
|
1370: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
1370: |
The operands of a logical '||' in function 'get_aslr_seed' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
1370: |
The operands of a logical '||' in function 'get_aslr_seed' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
1372: |
Provide only one exit point in 'get_aslr_seed' function |
MISRAC2012-RULE_15_5-a-4 |
|
1375: |
Provide only one exit point in 'get_aslr_seed' function |
MISRAC2012-RULE_15_5-a-4 |
|
1378: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
| /optee_os_MISRA/optee_os_ruchi393_core/arch/arm/kernel/delay.c |
|
32: |
The function 'udelay' is referenced only in the translation unit where it is defined |
MISRAC2012-RULE_8_7-a-4 |
|
36: |
'while' statement in a function 'udelay' should be followed by a block |
MISRAC2012-RULE_15_6-a-2 |
|
42: |
Operands of the '*' operator have different essential types: 'short' and 'unsigned int' |
MISRAC2012-RULE_10_4-a-2 |
| /optee_os_MISRA/optee_os_ruchi393_core/arch/arm/kernel/ldelf_loader.c |
|
16: |
'ldelf_data ' array size should be stated explicitly or defined implicitly by initialisation |
MISRAC2012-RULE_8_11-a-4 |
|
16: |
The 'ldelf_data' object has incompatible declarations in other translation units |
MISRAC2012-RULE_8_3-c-2 |
|
19: |
The 'ldelf_entry' object has incompatible declarations in other translation units |
MISRAC2012-RULE_8_3-c-2 |
|
32: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
32: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
32: |
Operands of the '-' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
32: |
Operands of the '-' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
33: |
A tag name 'fobj' is reused |
MISRAC2012-RULE_5_7-a-2 |
|
33: |
Identifier 'fobj' is hiding an identifier from global or namespace scope |
MISRAC2012-RULE_5_3-a-2 |
|
33: |
The argument number '1' (8 byte essential type) is passed to the function 'fobj_sec_mem_alloc' as a parameter with a narrower
essential type (4 byte)
|
MISRAC2012-RULE_10_3-a-2 |
|
34: |
A tag name 'mobj' is reused |
MISRAC2012-RULE_5_7-a-2 |
|
34: |
Identifier 'mobj' is hiding an identifier from global or namespace scope |
MISRAC2012-RULE_5_3-a-2 |
|
38: |
Conditional statement 'if' in a function 'alloc_and_map_ldelf_fobj' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
38: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
39: |
Integer constant '0xFFFF000C' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
39: |
Provide only one exit point in 'alloc_and_map_ldelf_fobj' function |
MISRAC2012-RULE_15_5-a-4 |
|
40: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
44: |
Provide only one exit point in 'alloc_and_map_ldelf_fobj' function |
MISRAC2012-RULE_15_5-a-4 |
|
61: |
The argument number '2' ('essentially signed' type) is passed to the function 'alloc_and_map_ldelf_fobj' as a parameter with
the 'essentially unsigned' type
|
MISRAC2012-RULE_10_3-b-2 |
|
62: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
64: |
Conditional statement 'if' in a function 'ldelf_load_ldelf' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
64: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
65: |
Provide only one exit point in 'ldelf_load_ldelf' function |
MISRAC2012-RULE_15_5-a-4 |
|
66: |
Operands of the '+' operator have different essential types: 'unsigned long' and 'short' |
MISRAC2012-RULE_10_4-a-2 |
|
70: |
Conditional statement 'if' in a function 'ldelf_load_ldelf' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
70: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
71: |
Provide only one exit point in 'ldelf_load_ldelf' function |
MISRAC2012-RULE_15_5-a-4 |
|
74: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
74: |
Operands of the '-' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
74: |
Operands of the '-' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
76: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
77: |
Conditional statement 'if' in a function 'ldelf_load_ldelf' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
77: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
78: |
Provide only one exit point in 'ldelf_load_ldelf' function |
MISRAC2012-RULE_15_5-a-4 |
|
82: |
Arithmetic type 'unsigned long' should not be converted to pointer to void type |
MISRAC2012-RULE_11_6-a-2 |
|
82: |
In the call of the function 'memcpy' the first argument type 'void*' is not compatible with the second argument type 'unsigned
char*'
|
MISRAC2012-RULE_21_15-a-2 |
|
82: |
Unused function's "memcpy" return value |
MISRAC2012-RULE_17_7-a-2 |
|
83: |
Arithmetic type 'unsigned long' should not be converted to pointer to void type |
MISRAC2012-RULE_11_6-a-2 |
|
83: |
In the call of the function 'memcpy' the first argument type 'void*' is not compatible with the second argument type 'unsigned
char*'
|
MISRAC2012-RULE_21_15-a-2 |
|
83: |
The variable 'ldelf_data' used as the left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
83: |
Unused function's "memcpy" return value |
MISRAC2012-RULE_17_7-a-2 |
|
86: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
86: |
Operands of the '-' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
86: |
Operands of the '-' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
86: |
The value of a composite expression (32 bit essential type) is passed to function 'vm_set_prot' as parameter with wider essential
type (64 bit)
|
MISRAC2012-RULE_10_6-a-2 |
|
87: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
88: |
Conditional statement 'if' in a function 'ldelf_load_ldelf' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
88: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
89: |
Provide only one exit point in 'ldelf_load_ldelf' function |
MISRAC2012-RULE_15_5-a-4 |
|
93: |
Provide only one exit point in 'ldelf_load_ldelf' function |
MISRAC2012-RULE_15_5-a-4 |
|
106: |
Operands of the '-' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
106: |
Operands of the '-' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
107: |
Integral type 'unsigned long' should not be converted to pointer to object type 'struct ldelf_arg *' |
MISRAC2012-RULE_11_4-a-4 |
|
108: |
Unused function's "memset" return value |
MISRAC2012-RULE_17_7-a-2 |
|
112: |
Pointer to object type 'struct ldelf_arg *' should not be converted to integral type 'unsigned long' |
MISRAC2012-RULE_11_4-a-4 |
|
120: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
123: |
Integer constant '0xFFFF0000' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
123: |
Provide only one exit point in 'ldelf_init_with_ldelf' function |
MISRAC2012-RULE_15_5-a-4 |
|
125: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
127: |
Provide only one exit point in 'ldelf_init_with_ldelf' function |
MISRAC2012-RULE_15_5-a-4 |
|
131: |
The argument number '2' ('essentially signed' type) is passed to the function 'vm_check_access_rights' as a parameter with
the 'essentially unsigned' type
|
MISRAC2012-RULE_10_3-b-2 |
|
131: |
The left hand operand of the '|' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
131: |
The right hand operand of the '|' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
133: |
Pointer to object type 'struct ldelf_arg *' should not be converted to integral type 'unsigned long' |
MISRAC2012-RULE_11_4-a-4 |
|
134: |
Conditional statement 'if' in a function 'ldelf_init_with_ldelf' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
134: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
135: |
Provide only one exit point in 'ldelf_init_with_ldelf' function |
MISRAC2012-RULE_15_5-a-4 |
|
142: |
Conditional statement 'if' in a function 'ldelf_init_with_ldelf' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
142: |
Shifting operation should be enclosed with if checking that RHS operand lies between zero and one less than the width in bits
of the underlying type of the LHS operand
|
MISRAC2012-RULE_12_2-a-2 |
|
142: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
143: |
Integer constant '0xFFFF0005' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
143: |
Provide only one exit point in 'ldelf_init_with_ldelf' function |
MISRAC2012-RULE_15_5-a-4 |
|
148: |
The expression of the 'essentially unsigned' type is assigned to an object with the 'essentially Boolean' type |
MISRAC2012-RULE_10_3-b-2 |
|
158: |
Provide only one exit point in 'ldelf_init_with_ldelf' function |
MISRAC2012-RULE_15_5-a-4 |
|
173: |
'for' statement in a function 'ldelf_dump_state' should be followed by a block |
MISRAC2012-RULE_15_6-a-2 |
|
173: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
174: |
Conditional statement 'if' in a function 'ldelf_dump_state' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
174: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
174: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
178: |
Operands of the '-' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
178: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
180: |
Integral type 'unsigned long' should not be converted to pointer to object type 'struct dump_entry_arg *' |
MISRAC2012-RULE_11_4-a-4 |
|
183: |
The argument number '2' ('essentially signed' type) is passed to the function 'vm_check_access_rights' as a parameter with
the 'essentially unsigned' type
|
MISRAC2012-RULE_10_3-b-2 |
|
183: |
The left hand operand of the '|' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
183: |
The right hand operand of the '|' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
185: |
Pointer to object type 'struct dump_entry_arg *' should not be converted to integral type 'unsigned long' |
MISRAC2012-RULE_11_4-a-4 |
|
186: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
188: |
Provide only one exit point in 'ldelf_dump_state' function |
MISRAC2012-RULE_15_5-a-4 |
|
191: |
Unused function's "memset" return value |
MISRAC2012-RULE_17_7-a-2 |
|
191: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
195: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
196: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
196: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
197: |
Conditional statement 'if' in a function 'ldelf_dump_state' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
197: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
198: |
Unused function's "mobj_get_pa" return value |
MISRAC2012-RULE_17_7-a-2 |
|
202: |
Conditional statement 'if' in a function 'ldelf_dump_state' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
202: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
204: |
Conditional statement 'if' in a function 'ldelf_dump_state' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
204: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
204: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
206: |
Conditional statement 'if' in a function 'ldelf_dump_state' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
206: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
206: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
208: |
Conditional statement 'if' in a function 'ldelf_dump_state' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
208: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
208: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
210: |
Conditional statement 'if' in a function 'ldelf_dump_state' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
210: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
212: |
Conditional statement 'if' in a function 'ldelf_dump_state' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
212: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
239: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with a narrower essential type (4 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
240: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with a narrower essential type (4 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
241: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with a narrower essential type (4 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
242: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with a narrower essential type (4 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
243: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with a narrower essential type (4 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
244: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with a narrower essential type (4 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
245: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with a narrower essential type (4 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
246: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with a narrower essential type (4 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
247: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with a narrower essential type (4 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
248: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with a narrower essential type (4 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
249: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with a narrower essential type (4 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
250: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with a narrower essential type (4 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
251: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with a narrower essential type (4 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
252: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with a narrower essential type (4 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
253: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with a narrower essential type (4 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
254: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with a narrower essential type (4 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
265: |
Pointer to object type 'struct dump_entry_arg *' should not be converted to integral type 'unsigned long' |
MISRAC2012-RULE_11_4-a-4 |
|
273: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
277: |
Integer constant '0xFFFF3024' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
280: |
Provide only one exit point in 'ldelf_dump_state' function |
MISRAC2012-RULE_15_5-a-4 |
|
339: |
Pass parameter "uctx" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
339: |
Pass parameter "uuid" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
343: |
Integer constant '0xFFFF0000' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
349: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
351: |
Operands of the '-' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
351: |
Operands of the '-' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
352: |
Integral type 'unsigned long' should not be converted to pointer to object type 'struct dl_entry_arg *' |
MISRAC2012-RULE_11_4-a-4 |
|
355: |
The argument number '2' ('essentially signed' type) is passed to the function 'vm_check_access_rights' as a parameter with
the 'essentially unsigned' type
|
MISRAC2012-RULE_10_3-b-2 |
|
355: |
The left hand operand of the '|' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
355: |
The right hand operand of the '|' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
358: |
Pointer to object type 'struct dl_entry_arg *' should not be converted to integral type 'unsigned long' |
MISRAC2012-RULE_11_4-a-4 |
|
359: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
361: |
Provide only one exit point in 'ldelf_dlopen' function |
MISRAC2012-RULE_15_5-a-4 |
|
364: |
Unused function's "memset" return value |
MISRAC2012-RULE_17_7-a-2 |
|
372: |
Pointer to object type 'struct dl_entry_arg *' should not be converted to integral type 'unsigned long' |
MISRAC2012-RULE_11_4-a-4 |
|
379: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
382: |
Integer constant '0xFFFF3024' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
384: |
Conditional statement 'if' in a function 'ldelf_dlopen' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
384: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
387: |
Provide only one exit point in 'ldelf_dlopen' function |
MISRAC2012-RULE_15_5-a-4 |
|
390: |
Pass parameter "uctx" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
390: |
Pass parameter "uuid" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
394: |
Integer constant '0xFFFF0000' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
401: |
Conditional statement 'if' in a function 'ldelf_dlsym' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
402: |
Integer constant '0xFFFF0006' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
402: |
Provide only one exit point in 'ldelf_dlsym' function |
MISRAC2012-RULE_15_5-a-4 |
|
404: |
Operands of the '+' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
404: |
Operands of the '-' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
404: |
Operands of the '-' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
405: |
Integral type 'unsigned long' should not be converted to pointer to object type 'struct dl_entry_arg *' |
MISRAC2012-RULE_11_4-a-4 |
|
408: |
The argument number '2' ('essentially signed' type) is passed to the function 'vm_check_access_rights' as a parameter with
the 'essentially unsigned' type
|
MISRAC2012-RULE_10_3-b-2 |
|
408: |
The left hand operand of the '|' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
408: |
The right hand operand of the '|' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
411: |
Operands of the '+' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
411: |
Pointer to object type 'struct dl_entry_arg *' should not be converted to integral type 'unsigned long' |
MISRAC2012-RULE_11_4-a-4 |
|
412: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
414: |
Provide only one exit point in 'ldelf_dlsym' function |
MISRAC2012-RULE_15_5-a-4 |
|
417: |
Unused function's "memset" return value |
MISRAC2012-RULE_17_7-a-2 |
| +
|
420: |
The number of bytes to process by the "memcpy" function is not positive and equals 0 |
MISRAC2012-RULE_21_18-a-1 |
| |
|
ldelf_loader.c (393): uaddr_t usr_stack = uctx->ldelf_stack_ptr;
ldelf_loader.c (394): TEE_Result res = TEE_ERROR_GENERIC;
ldelf_loader.c (395): struct dl_entry_arg *arg = NULL;
ldelf_loader.c (396): uint32_t panic_code = 0;
ldelf_loader.c (397): uint32_t panicked = 0;
ldelf_loader.c (398): size_t len = strnlen(sym, maxlen);
Point where number of bytes to process is defined
strnlen.c (75): _CONST char *start = str; *** Number of bytes to process: str-start == 0 *** Buffer: const char sym[]
strnlen.c (77): while (n-- > 0 && *str) *** Loop condition evaluation: (n > 0) (assuming true) *** Loop condition evaluation: (*str != 0) (assuming false) *** Loop condition evaluation: n-- > 0 && *str (false) *** Not entering the loop
strnlen.c (80): return str - start;
ldelf_loader.c (399): struct ts_session *sess = NULL; *** Number of bytes to process: len == 0 *** Buffer: const char sym[]
ldelf_loader.c (401): if (len == maxlen) *** Condition evaluation: (len == maxlen) (false)
ldelf_loader.c (404): usr_stack -= ROUNDUP(sizeof(*arg) + len + 1, STACK_ALIGNMENT);
ldelf_loader.c (405): arg = (struct dl_entry_arg *)usr_stack;
ldelf_loader.c (411): (uaddr_t)arg, sizeof(*arg) + len + 1);
ldelf_loader.c (407): res = vm_check_access_rights(uctx,
ldelf_loader.c (412): if (res) { *** Condition evaluation: (res != 0) (assuming false)
ldelf_loader.c (417): memset(arg, 0, sizeof(*arg));
ldelf_loader.c (418): arg->cmd = LDELF_DL_ENTRY_DLSYM;
ldelf_loader.c (419): arg->dlsym.uuid = *uuid;
Point where buffer is passed to the function
ldelf_loader.c (420): memcpy(arg->dlsym.symbol, sym, len); *** Number of bytes to process: len == 0 *** Buffer: const char sym[] |
|
|
420: |
Unused function's "memcpy" return value |
MISRAC2012-RULE_17_7-a-2 |
|
426: |
Pointer to object type 'struct dl_entry_arg *' should not be converted to integral type 'unsigned long' |
MISRAC2012-RULE_11_4-a-4 |
|
433: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
436: |
Integer constant '0xFFFF3024' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
438: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
440: |
Conditional statement 'if' in a function 'ldelf_dlsym' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
440: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
444: |
Provide only one exit point in 'ldelf_dlsym' function |
MISRAC2012-RULE_15_5-a-4 |
| /optee_os_MISRA/optee_os_ruchi393_core/arch/arm/kernel/link_dummies_init.c |
|
9: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
10: |
Parameter 'fdt' is not used in function 'get_aslr_seed' |
MISRAC2012-RULE_2_7-a-4 |
|
10: |
Pass parameter "fdt" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
10: |
The 'get_aslr_seed' function is also defined in other translation units |
MISRAC2012-RULE_8_6-a-2 |
|
16: |
Parameter 'seed' is not used in function 'core_init_mmu_map' |
MISRAC2012-RULE_2_7-a-4 |
|
16: |
The 'core_init_mmu_map' function is also defined in other translation units |
MISRAC2012-RULE_8_6-a-2 |
|
16: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
17: |
Parameter 'cfg' is not used in function 'core_init_mmu_map' |
MISRAC2012-RULE_2_7-a-4 |
|
17: |
Pass parameter "cfg" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
22: |
Parameter 'pageable_part' is not used in function 'boot_init_primary_early' |
MISRAC2012-RULE_2_7-a-4 |
|
22: |
The 'boot_init_primary_early' function is also defined in other translation units |
MISRAC2012-RULE_8_6-a-2 |
|
22: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
23: |
Parameter 'nsec_entry' is not used in function 'boot_init_primary_early' |
MISRAC2012-RULE_2_7-a-4 |
|
23: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
| /optee_os_MISRA/optee_os_ruchi393_core/arch/arm/kernel/link_dummies_paged.c |
|
15: |
The 'call_initcalls' function is also defined in other translation units |
MISRAC2012-RULE_8_6-a-2 |
|
19: |
The 'call_finalcalls' function is also defined in other translation units |
MISRAC2012-RULE_8_6-a-2 |
|
24: |
Parameter 'fdt' is not used in function 'boot_init_primary_late' |
MISRAC2012-RULE_2_7-a-4 |
|
24: |
The 'boot_init_primary_late' function is also defined in other translation units |
MISRAC2012-RULE_8_6-a-2 |
|
24: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
29: |
Parameter 'a0' is not used in function '__thread_std_smc_entry' |
MISRAC2012-RULE_2_7-a-4 |
|
29: |
Parameter 'a1' is not used in function '__thread_std_smc_entry' |
MISRAC2012-RULE_2_7-a-4 |
|
29: |
Reserved name '__thread_std_smc_entry' used |
MISRAC2012-RULE_21_2-a-2 |
|
29: |
The '__thread_std_smc_entry' function is also defined in other translation units |
MISRAC2012-RULE_8_6-a-2 |
|
29: |
The names of the identifiers '__thread_std_smc_entry' and 'thread_std_smc_entry' (line: 128 in the 'thread_private.h' file)
differ only in the presence/absence of the underscore character
|
MISRAC2012-DIR_4_5-a-4 |
|
30: |
Parameter 'a2' is not used in function '__thread_std_smc_entry' |
MISRAC2012-RULE_2_7-a-4 |
|
30: |
Parameter 'a3' is not used in function '__thread_std_smc_entry' |
MISRAC2012-RULE_2_7-a-4 |
|
35: |
Parameter 'func' is not used in function '__wq_rpc' |
MISRAC2012-RULE_2_7-a-4 |
|
35: |
Parameter 'id' is not used in function '__wq_rpc' |
MISRAC2012-RULE_2_7-a-4 |
|
35: |
Reserved name '__wq_rpc' used |
MISRAC2012-RULE_21_2-a-2 |
|
35: |
The '__wq_rpc' function is also defined in other translation units |
MISRAC2012-RULE_8_6-a-2 |
|
35: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
36: |
Parameter 'fname' is not used in function '__wq_rpc' |
MISRAC2012-RULE_2_7-a-4 |
|
36: |
Parameter 'sync_obj' is not used in function '__wq_rpc' |
MISRAC2012-RULE_2_7-a-4 |
|
37: |
Parameter 'lineno' is not used in function '__wq_rpc' |
MISRAC2012-RULE_2_7-a-4 |
|
37: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
| /optee_os_MISRA/optee_os_ruchi393_core/arch/arm/kernel/otp_stubs.c |
|
22: |
Unused function's "memset" return value |
MISRAC2012-RULE_17_7-a-2 |
|
26: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
28: |
Conditional statement 'if' in a function 'tee_otp_get_die_id' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
28: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
29: |
Provide only one exit point in 'tee_otp_get_die_id' function |
MISRAC2012-RULE_15_5-a-4 |
|
31: |
Provide only one exit point in 'tee_otp_get_die_id' function |
MISRAC2012-RULE_15_5-a-4 |
|
47: |
Operands of the '==' operator have different essential types: 'unsigned int' and 'shdr_enc_key_type' |
MISRAC2012-RULE_10_4-a-2 |
|
49: |
Conditional statement 'if' in a function 'tee_otp_get_ta_enc_key' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
49: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
51: |
Integer constant '0xFFFF000F' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
51: |
Provide only one exit point in 'tee_otp_get_ta_enc_key' function |
MISRAC2012-RULE_15_5-a-4 |
|
53: |
Provide only one exit point in 'tee_otp_get_ta_enc_key' function |
MISRAC2012-RULE_15_5-a-4 |
| /optee_os_MISRA/optee_os_ruchi393_core/arch/arm/kernel/rpc_io_i2c.c |
|
19: |
Identifiers given in declaration of 'rpc_io_i2c_transfer' function (file: 'rpc_io_i2c.h', line: '36') are: 'p, bytes' not:
'req, len'
|
MISRAC2012-RULE_8_3-b-2 |
|
23: |
A tag name 'mobj' is reused |
MISRAC2012-RULE_5_7-a-2 |
|
23: |
Identifier 'mobj' is hiding an identifier from global or namespace scope |
MISRAC2012-RULE_5_3-a-2 |
|
26: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
28: |
Conditional statement 'if' in a function 'rpc_io_i2c_transfer' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
28: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
29: |
Integer constant '0xFFFF0006' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
29: |
Provide only one exit point in 'rpc_io_i2c_transfer' function |
MISRAC2012-RULE_15_5-a-4 |
|
31: |
Pointer to void type should not be converted to pointer to object type 'uint8_t *' |
MISRAC2012-RULE_11_5-a-4 |
|
34: |
Conditional statement 'if' in a function 'rpc_io_i2c_transfer' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
34: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
35: |
Integer constant '0xFFFF000C' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
35: |
Provide only one exit point in 'rpc_io_i2c_transfer' function |
MISRAC2012-RULE_15_5-a-4 |
|
37: |
Conditional statement 'if' in a function 'rpc_io_i2c_transfer' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
38: |
Unused function's "memcpy" return value |
MISRAC2012-RULE_17_7-a-2 |
|
40: |
The expression of the 'essentially Enum' type is assigned to an object with the 'essentially unsigned' type |
MISRAC2012-RULE_10_3-b-2 |
|
46: |
Conditional statement 'if' in a function 'rpc_io_i2c_transfer' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
46: |
Operands of the '!=' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
47: |
Provide only one exit point in 'rpc_io_i2c_transfer' function |
MISRAC2012-RULE_15_5-a-4 |
|
53: |
Conditional statement 'if' in a function 'rpc_io_i2c_transfer' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
54: |
Integer constant '0xFFFF0004' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
54: |
Provide only one exit point in 'rpc_io_i2c_transfer' function |
MISRAC2012-RULE_15_5-a-4 |
|
58: |
Conditional statement 'if' in a function 'rpc_io_i2c_transfer' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
59: |
Unused function's "memcpy" return value |
MISRAC2012-RULE_17_7-a-2 |
|
61: |
Provide only one exit point in 'rpc_io_i2c_transfer' function |
MISRAC2012-RULE_15_5-a-4 |
| /optee_os_MISRA/optee_os_ruchi393_core/arch/arm/kernel/spin_lock_debug.c |
|
16: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
23: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
37: |
Provide only one exit point in 'have_spinlock' function |
MISRAC2012-RULE_15_5-a-4 |
|
42: |
Provide only one exit point in 'have_spinlock' function |
MISRAC2012-RULE_15_5-a-4 |
|
42: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
| /optee_os_MISRA/optee_os_ruchi393_core/arch/arm/kernel/tee_time.c |
|
17: |
Reserved name '_time_source' used |
MISRAC2012-RULE_21_2-a-2 |
|
25: |
Reserved name '__scattered_array_0initcall' used |
MISRAC2012-RULE_21_2-a-2 |
|
27: |
Reserved name 'time' used |
MISRAC2012-RULE_21_2-b-2 |
|
27: |
Reserved name 'time' used |
MISRAC2012-RULE_21_2-c-2 |
| +
|
42: |
The return value of the "thread_rpc_cmd" method is not checked. It is checked at least 80% times in the testing scope |
MISRAC2012-DIR_4_7-a-2 |
| |
|
Example path
ree_fs_ta.c (120): res = thread_rpc_cmd(OPTEE_RPC_CMD_LOAD_TA, 2, params); *** Method call
ree_fs_ta.c (122): if (res != TEE_SUCCESS) *** Example of checking
Violation path
Method call
Point by which returned value should be checked
tee_time.c (42): thread_rpc_cmd(OPTEE_RPC_CMD_SUSPEND, 1, ¶ms); |
|
|
42: |
Unused function's "thread_rpc_cmd" return value |
MISRAC2012-RULE_17_7-a-2 |
|
51: |
Reserved name 'time' used |
MISRAC2012-RULE_21_2-b-2 |
|
51: |
Reserved name 'time' used |
MISRAC2012-RULE_21_2-c-2 |
|
55: |
Conditional statement 'if' in a function 'tee_time_get_ree_time' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
55: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
56: |
Integer constant '0xFFFF0006' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
56: |
Provide only one exit point in 'tee_time_get_ree_time' function |
MISRAC2012-RULE_15_5-a-4 |
|
61: |
Operands of the '==' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
62: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with a narrower essential type (4 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
63: |
Operands of the '/' operator have different essential types: 'unsigned long' and 'int' |
MISRAC2012-RULE_10_4-a-2 |
|
63: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with a narrower essential type (4 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
66: |
Provide only one exit point in 'tee_time_get_ree_time' function |
MISRAC2012-RULE_15_5-a-4 |
| /optee_os_MISRA/optee_os_ruchi393_core/arch/arm/kernel/tee_time_arm_cntpct.c |
|
17: |
Reserved name 'time' used |
MISRAC2012-RULE_21_2-b-2 |
|
17: |
Reserved name 'time' used |
MISRAC2012-RULE_21_2-c-2 |
|
22: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with a narrower essential type (4 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
23: |
Essential type of LHS operand (64 bit) is wider than essential type of composite expression in RHS operand (32 bit) |
MISRAC2012-RULE_10_7-a-2 |
|
23: |
Operands of the '/' operator have different essential types: 'unsigned int' and 'short' |
MISRAC2012-RULE_10_4-a-2 |
|
23: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with a narrower essential type (4 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
28: |
Global variable 'arm_cntpct_time_source' is being used only in a single function 'time_source_init' |
MISRAC2012-RULE_8_9-a-4 |
|
50: |
The 'plat_prng_add_jitter_entropy' function is also defined in other translation units |
MISRAC2012-RULE_8_6-a-2 |
|
50: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
53: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
57: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
58: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with a narrower essential type (2 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
62: |
Operands of the '&' operator have different essential types: 'unsigned short' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
62: |
Operands of the '|' operator have different essential types: 'unsigned short' and 'int' |
MISRAC2012-RULE_10_4-a-2 |
|
62: |
The expression of the 'essentially signed' type is assigned to an object with the 'essentially unsigned' type |
MISRAC2012-RULE_10_3-b-2 |
|
62: |
The right hand operand of the '&' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
62: |
The right hand operand of the '|' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
63: |
'for' statement in a function 'plat_prng_add_jitter_entropy' should be followed by a block |
MISRAC2012-RULE_15_6-a-2 |
|
64: |
Operands of the '&' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
64: |
Shifting operation should be enclosed with if checking that RHS operand lies between zero and one less than the width in bits
of the underlying type of the LHS operand
|
MISRAC2012-RULE_12_2-a-2 |
|
64: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with a narrower essential type (2 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
64: |
The right hand operand of the '&' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
64: |
The right hand operand of the shift operator '>>' has essentially signed type 'int' |
MISRAC2012-RULE_10_1-f-2 |
|
65: |
Operands of the '+=' operator have different essential types: 'unsigned char' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
66: |
Operands of the '>=' operator have different essential types: 'unsigned char' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
71: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
72: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
73: |
The argument number '4' ('essentially signed' type) is passed to the function 'crypto_rng_add_event' as a parameter with the
'essentially unsigned' type
|
MISRAC2012-RULE_10_3-b-2 |
| /optee_os_MISRA/optee_os_ruchi393_core/arch/arm/kernel/thread.c |
|
42: |
A tag name 'thread_core_local' is reused |
MISRAC2012-RULE_5_7-a-2 |
|
42: |
Declaration of object 'thread_core_local' does not precede its definition |
MISRAC2012-RULE_8_4-a-2 |
|
42: |
The object 'thread_core_local' is referenced only in the translation unit where it is defined |
MISRAC2012-RULE_8_7-a-4 |
|
101: |
Do not define function-like macro: GET_START_CANARY |
MISRAC2012-DIR_4_9-a-4 |
|
101: |
Each instance of parameter: 'name' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
101: |
Each instance of parameter: 'stack_num' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
102: |
Do not define function-like macro: GET_END_CANARY |
MISRAC2012-DIR_4_9-a-4 |
|
103: |
Each instance of parameter: 'name' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
103: |
Each instance of parameter: 'name' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
103: |
Each instance of parameter: 'stack_num' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
103: |
Each instance of parameter: 'stack_num' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
121: |
Do not define function-like macro: DECLARE_STACK |
MISRAC2012-DIR_4_9-a-4 |
|
122: |
Each instance of parameter: 'num_stacks' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
123: |
Each instance of parameter: 'stack_size' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
125: |
Preprocessor operator # should not be used |
MISRAC2012-RULE_20_10-a-4 |
|
128: |
An unused macro declaration 'GET_STACK' has been found |
MISRAC2012-RULE_2_5-a-4 |
|
128: |
Do not define function-like macro: GET_STACK |
MISRAC2012-DIR_4_9-a-4 |
|
130: |
Operands of the '*' operator have different essential types: 'signed char' and 'unsigned long' |
MISRAC2012-RULE_10_4-a-2 |
|
130: |
Operands of the '+' operator have different essential types: 'short' and 'unsigned long' |
MISRAC2012-RULE_10_4-a-2 |
|
130: |
Operands of the '+' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
130: |
Operands of the '-' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
132: |
Operands of the '*' operator have different essential types: 'signed char' and 'unsigned long' |
MISRAC2012-RULE_10_4-a-2 |
|
132: |
Operands of the '+' operator have different essential types: 'short' and 'unsigned long' |
MISRAC2012-RULE_10_4-a-2 |
|
132: |
Operands of the '+' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
132: |
Operands of the '-' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
134: |
Operands of the '*' operator have different essential types: 'signed char' and 'unsigned long' |
MISRAC2012-RULE_10_4-a-2 |
|
134: |
Operands of the '+' operator have different essential types: 'short' and 'unsigned long' |
MISRAC2012-RULE_10_4-a-2 |
|
134: |
Operands of the '+' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
134: |
Operands of the '-' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
138: |
Do not define function-like macro: GET_STACK_TOP_HARD |
MISRAC2012-DIR_4_9-a-4 |
|
139: |
Each instance of parameter: 'n' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
140: |
Do not define function-like macro: GET_STACK_TOP_SOFT |
MISRAC2012-DIR_4_9-a-4 |
|
141: |
Each instance of parameter: 'n' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
141: |
Each instance of parameter: 'stack' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
142: |
Do not define function-like macro: GET_STACK_BOTTOM |
MISRAC2012-DIR_4_9-a-4 |
|
142: |
Each instance of parameter: 'n' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
142: |
Each instance of parameter: 'n' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
142: |
Each instance of parameter: 'stack' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
145: |
The object 'stack_tmp_export' is referenced only in the translation unit where it is defined |
MISRAC2012-RULE_8_7-a-4 |
|
146: |
Arithmetic type 'unsigned long' should not be converted to pointer to void type |
MISRAC2012-RULE_11_6-a-2 |
|
146: |
Operands of the '*' operator have different essential types: 'signed char' and 'unsigned long' |
MISRAC2012-RULE_10_4-a-2 |
|
146: |
Operands of the '-' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
146: |
Operands of the '/' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
147: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with a narrower essential type (4 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
147: |
The object 'stack_tmp_stride' is referenced only in the translation unit where it is defined |
MISRAC2012-RULE_8_7-a-4 |
|
154: |
Declaration of object '____keep_pager_stack_tmp_export_core_arch_arm_kernel_thread_c' does not precede its definition |
MISRAC2012-RULE_8_4-a-2 |
|
154: |
Pointer to object type 'const void **' should not be converted to integral type 'unsigned long' |
MISRAC2012-RULE_11_4-a-4 |
|
154: |
Reserved name '____keep_pager_stack_tmp_export' used |
MISRAC2012-RULE_21_2-a-2 |
|
154: |
Reserved name '____keep_pager_stack_tmp_export_core_arch_arm_kernel_thread_c' used |
MISRAC2012-RULE_21_2-a-2 |
|
154: |
The '____keep_pager_stack_tmp_export' object has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
154: |
The identifier '____keep_pager_stack_tmp_export_core_arch_arm_kernel_thread_c' has the same first 31 characters of the name
as the identifier '____keep_pager_stack_tmp_export' defined in the 'thread.c' file in line '154'
|
MISRAC2012-RULE_5_1-a-2 |
|
155: |
Declaration of object '____keep_pager_stack_tmp_stride_core_arch_arm_kernel_thread_c' does not precede its definition |
MISRAC2012-RULE_8_4-a-2 |
|
155: |
Pointer to object type 'const uint32_t *' should not be converted to integral type 'unsigned long' |
MISRAC2012-RULE_11_4-a-4 |
|
155: |
Reserved name '____keep_pager_stack_tmp_stride' used |
MISRAC2012-RULE_21_2-a-2 |
|
155: |
Reserved name '____keep_pager_stack_tmp_stride_core_arch_arm_kernel_thread_c' used |
MISRAC2012-RULE_21_2-a-2 |
|
155: |
The '____keep_pager_stack_tmp_stride' object has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
155: |
The identifier '____keep_pager_stack_tmp_stride_core_arch_arm_kernel_thread_c' has the same first 31 characters of the name
as the identifier '____keep_pager_stack_tmp_stride' defined in the 'thread.c' file in line '155'
|
MISRAC2012-RULE_5_1-a-2 |
|
159: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
159: |
The object 'thread_user_kcode_offset' is referenced only in the translation unit where it is defined |
MISRAC2012-RULE_8_7-a-4 |
|
165: |
Declaration of object 'thread_user_kdata_sp_offset' does not precede its definition |
MISRAC2012-RULE_8_4-a-2 |
|
165: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
165: |
The object 'thread_user_kdata_sp_offset' is referenced only in the translation unit where it is defined |
MISRAC2012-RULE_8_7-a-4 |
|
166: |
Global variable 'thread_user_kdata_page' is being used only in a single function 'thread_get_user_kdata' |
MISRAC2012-RULE_8_9-a-4 |
|
167: |
Operands of the '-' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
167: |
Operands of the '-' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
176: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
182: |
Do not define function-like macro: INIT_CANARY |
MISRAC2012-DIR_4_9-a-4 |
|
184: |
Each instance of parameter: 'name' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
185: |
Each instance of parameter: 'name' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
191: |
Integer constant '0xabababab' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
191: |
Integer constant '0xdededede' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
191: |
Operands of the '-' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
191: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
192: |
Integer constant '0xabababab' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
192: |
Integer constant '0xdededede' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
192: |
Operands of the '-' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
192: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
194: |
Integer constant '0xabababab' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
194: |
Integer constant '0xdededede' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
194: |
Operands of the '-' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
194: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
199: |
Do not define function-like macro: CANARY_DIED |
MISRAC2012-DIR_4_9-a-4 |
|
201: |
Preprocessor operator # should not be used |
MISRAC2012-RULE_20_10-a-4 |
|
201: |
Preprocessor operator # should not be used |
MISRAC2012-RULE_20_10-a-4 |
|
202: |
Each instance of parameter: 'addr' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
202: |
Each instance of parameter: 'n' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
214: |
Conditional statement 'if' in a function 'thread_check_canaries' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
214: |
Integer constant '0xdededede' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
216: |
Operands of the '-' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
216: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
217: |
Conditional statement 'if' in a function 'thread_check_canaries' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
217: |
Integer constant '0xabababab' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
223: |
Conditional statement 'if' in a function 'thread_check_canaries' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
223: |
Integer constant '0xdededede' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
225: |
Operands of the '-' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
225: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
226: |
Conditional statement 'if' in a function 'thread_check_canaries' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
226: |
Integer constant '0xabababab' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
233: |
Conditional statement 'if' in a function 'thread_check_canaries' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
233: |
Integer constant '0xdededede' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
235: |
Operands of the '-' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
235: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
236: |
Conditional statement 'if' in a function 'thread_check_canaries' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
236: |
Integer constant '0xabababab' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
283: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
283: |
Operands of the '&' operator have different essential types: 'unsigned int' and 'int' |
MISRAC2012-RULE_10_4-a-2 |
|
283: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
283: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
283: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
283: |
The left hand operand of the '>>' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
283: |
The left hand operand of the '>>' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
283: |
The left hand operand of the '>>' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
283: |
The left hand operand of the '|' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
283: |
The right hand operand of the '&' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
283: |
The right hand operand of the '|' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
291: |
Conditional statement 'if' in a function 'thread_set_exceptions' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
291: |
Operands of the '&' operator have different essential types: 'unsigned int' and 'int' |
MISRAC2012-RULE_10_4-a-2 |
|
291: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
291: |
The left hand operand of the '>>' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
291: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
291: |
The right hand operand of the '&' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
294: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
294: |
Operands of the '&=' operator have different essential types: 'unsigned int' and 'int' |
MISRAC2012-RULE_10_4-a-2 |
|
294: |
The left hand operand of the '<<' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
294: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
294: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
294: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
294: |
The left hand operand of the '>>' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
294: |
The left hand operand of the '>>' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
294: |
The left hand operand of the '>>' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
294: |
The left hand operand of the '|' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
294: |
The operand of the '~' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
294: |
The right hand operand of the '&=' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
294: |
The right hand operand of the '|' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
295: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
295: |
Operands of the '&' operator have different essential types: 'unsigned int' and 'int' |
MISRAC2012-RULE_10_4-a-2 |
|
295: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
295: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
295: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
295: |
The left hand operand of the '>>' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
295: |
The left hand operand of the '>>' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
295: |
The left hand operand of the '>>' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
295: |
The left hand operand of the '|' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
295: |
The right hand operand of the '&' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
295: |
The right hand operand of the '|' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
297: |
Assembly language code is not commented |
MISRAC2012-DIR_4_2-a-4 |
|
299: |
Assembly language code is not commented |
MISRAC2012-DIR_4_2-a-4 |
|
307: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
307: |
Operands of the '&' operator have different essential types: 'unsigned int' and 'int' |
MISRAC2012-RULE_10_4-a-2 |
|
307: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
307: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
307: |
The left hand operand of the '>>' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
307: |
The left hand operand of the '>>' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
307: |
The left hand operand of the '|' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
| +
|
307: |
The return value of the "thread_get_exceptions" method is not checked. It is checked at least 80% times in the testing scope |
MISRAC2012-DIR_4_7-a-2 |
| |
|
Example path
misc.h (22): assert(thread_get_exceptions() & THREAD_EXCP_FOREIGN_INTR); *** Method call *** Example of checking
Violation path
Method call
thread.c (305): uint32_t state = thread_get_exceptions();
Point by which returned value should be checked
thread.c (307): thread_set_exceptions(state | (exceptions & THREAD_EXCP_ALL)); |
|
|
307: |
The right hand operand of the '&' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
307: |
The right hand operand of the '|' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
313: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
313: |
Operands of the '&' operator have different essential types: 'unsigned int' and 'int' |
MISRAC2012-RULE_10_4-a-2 |
|
313: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
313: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
313: |
The left hand operand of the '>>' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
313: |
The left hand operand of the '>>' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
313: |
The left hand operand of the '|' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
313: |
The right hand operand of the '&' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
313: |
The right hand operand of the '|' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
318: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
325: |
Operands of the '&' operator have different essential types: 'unsigned int' and 'int' |
MISRAC2012-RULE_10_4-a-2 |
|
325: |
Potential macro 'THREAD_EXCP_FOREIGN_INTR' used as '1' parameter of potential macro 'assert' |
MISRAC2012-RULE_20_12-a-2 |
|
325: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
325: |
The left hand operand of the '>>' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
325: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
325: |
The right hand operand of the '&' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
327: |
Operands of the '<' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
327: |
Potential macro 'CFG_TEE_CORE_NB_CORE' used as '1' parameter of potential macro 'assert' |
MISRAC2012-RULE_20_12-a-2 |
|
333: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
333: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with a narrower essential type (4 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
381: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
383: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
423: |
The variable 'threads' used as the left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
433: |
The variable 'threads' used as the left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
436: |
The operands of a logical '&&' in function 'thread_lazy_restore_ns_vfp' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
436: |
The operands of a logical '&&' in function 'thread_lazy_restore_ns_vfp' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
438: |
The left hand operand of the logical operator '&&' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
438: |
The operands of a logical '&&' in function 'thread_lazy_restore_ns_vfp' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
488: |
Pointer to void type should not be converted to arithmetic type 'unsigned long' |
MISRAC2012-RULE_11_6-a-2 |
|
494: |
Operands of the '&' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
494: |
Operands of the '|' operator have different essential types: 'int' and 'unsigned char' |
MISRAC2012-RULE_10_4-a-2 |
|
494: |
Operands of the '|' operator have different essential types: 'int' and 'unsigned int' |
MISRAC2012-RULE_10_4-a-2 |
|
494: |
The left hand operand of the '&' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
494: |
The left hand operand of the '&' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
494: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
494: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
494: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
494: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
494: |
The left hand operand of the '>>' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
494: |
The left hand operand of the '|' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
494: |
The left hand operand of the '|' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
494: |
The right hand operand of the '&' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
494: |
The right hand operand of the '&' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
494: |
The right hand operand of the '&' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
494: |
The right hand operand of the '|' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
494: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
494: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
494: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
494: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
531: |
Potential macro 'CFG_NUM_THREADS' used as '1' parameter of potential macro 'assert' |
MISRAC2012-RULE_20_12-a-2 |
|
531: |
The operands of a logical '&&' in function 'thread_clr_boot_thread' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
531: |
The operands of a logical '&&' in function 'thread_clr_boot_thread' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
537: |
Reserved name '__thread_alloc_and_run' used |
MISRAC2012-RULE_21_2-a-2 |
|
537: |
The names of the identifiers '__thread_alloc_and_run' and 'thread_alloc_and_run' (line: 190 in the 'thread_private.h' file)
differ only in the presence/absence of the underscore character
|
MISRAC2012-DIR_4_5-a-4 |
|
546: |
Potential macro 'THREAD_ID_INVALID' used as '1' parameter of potential macro 'assert' |
MISRAC2012-RULE_20_12-a-2 |
|
550: |
Operands of the '<' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
560: |
Conditional statement 'if' in a function '__thread_alloc_and_run' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
561: |
'return' statement should be at the end of the '__thread_alloc_and_run' function |
MISRAC2012-RULE_15_5-a-4 |
|
563: |
The expression of the 'essentially unsigned' type is assigned to an object with the 'essentially signed' type |
MISRAC2012-RULE_10_3-b-2 |
|
566: |
The variable 'threads' used as the left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
570: |
Operands of the '&=' operator have different essential types: 'unsigned int' and 'int' |
MISRAC2012-RULE_10_4-a-2 |
|
570: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
570: |
The operand of the '~' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
570: |
The right hand operand of the '&=' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
576: |
The names of the identifiers 'thread_alloc_and_run' and '__thread_alloc_and_run' (line: 537 in the 'thread.c' file) differ
only in the presence/absence of the underscore character
|
MISRAC2012-DIR_4_5-a-4 |
|
579: |
Implicit conversion from 'void (*)(uint32_t, uint32_t, uint32_t, uint32_t)' type to 'void *' type in function's argument |
MISRAC2012-RULE_11_1-a-2 |
|
631: |
Conditional statement 'if' in a function 'is_from_user' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
631: |
Operands of the '&' operator have different essential types: 'unsigned int' and 'int' |
MISRAC2012-RULE_10_4-a-2 |
|
631: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
631: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
631: |
The right hand operand of the '&' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
632: |
Provide only one exit point in 'is_from_user' function |
MISRAC2012-RULE_15_5-a-4 |
|
633: |
Conditional statement 'if' in a function 'is_from_user' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
633: |
Operands of the '&' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
633: |
Operands of the '==' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
633: |
The right hand operand of the '&' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
635: |
Provide only one exit point in 'is_from_user' function |
MISRAC2012-RULE_15_5-a-4 |
|
636: |
Provide only one exit point in 'is_from_user' function |
MISRAC2012-RULE_15_5-a-4 |
|
666: |
Pass parameter "regs" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
678: |
Potential macro 'THREAD_ID_INVALID' used as '1' parameter of potential macro 'assert' |
MISRAC2012-RULE_20_12-a-2 |
|
682: |
Operands of the '<' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
682: |
The operands of a logical '&&' in function 'thread_resume_from_rpc' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
682: |
The operands of a logical '&&' in function 'thread_resume_from_rpc' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
689: |
Conditional statement 'if' in a function 'thread_resume_from_rpc' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
690: |
'return' statement should be at the end of the 'thread_resume_from_rpc' function |
MISRAC2012-RULE_15_5-a-4 |
|
692: |
The expression of the 'essentially unsigned' type is assigned to an object with the 'essentially signed' type |
MISRAC2012-RULE_10_3-b-2 |
|
696: |
Conditional statement 'if' in a function 'thread_resume_from_rpc' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
696: |
Operands of the '&' operator have different essential types: 'unsigned int' and 'int' |
MISRAC2012-RULE_10_4-a-2 |
|
696: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
696: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
696: |
The right hand operand of the '&' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
700: |
Conditional statement 'if' in a function 'thread_resume_from_rpc' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
707: |
Operands of the '&' operator have different essential types: 'unsigned int' and 'int' |
MISRAC2012-RULE_10_4-a-2 |
|
707: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
707: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
707: |
The right hand operand of the '&' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
709: |
Operands of the '&=' operator have different essential types: 'unsigned int' and 'int' |
MISRAC2012-RULE_10_4-a-2 |
|
709: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
709: |
The operand of the '~' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
709: |
The right hand operand of the '&=' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
714: |
Conditional statement 'if' in a function 'thread_resume_from_rpc' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
717: |
Operands of the '&=' operator have different essential types: 'unsigned int' and 'int' |
MISRAC2012-RULE_10_4-a-2 |
|
717: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
717: |
The operand of the '~' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
717: |
The right hand operand of the '&=' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
731: |
Operands of the '|=' operator have different essential types: 'unsigned int' and 'int' |
MISRAC2012-RULE_10_4-a-2 |
|
731: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
731: |
The right hand operand of the '|=' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
733: |
Arithmetic type 'unsigned long' should not be converted to pointer to void type |
MISRAC2012-RULE_11_6-a-2 |
|
740: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
742: |
Potential macro 'THREAD_ID_INVALID' used as '1' parameter of potential macro 'assert' |
MISRAC2012-RULE_20_12-a-2 |
|
750: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
752: |
Conditional statement 'if' in a function 'thread_stack_start' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
753: |
Provide only one exit point in 'thread_stack_start' function |
MISRAC2012-RULE_15_5-a-4 |
|
755: |
The variable 'threads' used as the left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
756: |
Operands of the '-' operator have different essential types: 'unsigned long' and 'short' |
MISRAC2012-RULE_10_4-a-2 |
|
756: |
Provide only one exit point in 'thread_stack_start' function |
MISRAC2012-RULE_15_5-a-4 |
|
764: |
The names of the identifiers 'end' and '__end' (line: 80 in the 'linker.h' file) differ only in the presence/absence of the
underscore character
|
MISRAC2012-DIR_4_5-a-4 |
|
766: |
The argument number '1' ('essentially signed' type) is passed to the function 'thread_mask_exceptions' as a parameter with
the 'essentially unsigned' type
|
MISRAC2012-RULE_10_3-b-2 |
|
766: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
766: |
The left hand operand of the '>>' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
767: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
767: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with a narrower essential type (4 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
769: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
772: |
Operands of the '&' operator have different essential types: 'unsigned int' and 'int' |
MISRAC2012-RULE_10_4-a-2 |
|
772: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
772: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
772: |
The right hand operand of the '&' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
773: |
Conditional statement 'if' in a function 'get_stack_limits' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
774: |
Operands of the '*' operator have different essential types: 'signed char' and 'unsigned long' |
MISRAC2012-RULE_10_4-a-2 |
|
774: |
Operands of the '/' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
774: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
776: |
An 'else' statement in a function 'get_stack_limits' shall be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
776: |
Operands of the '*' operator have different essential types: 'signed char' and 'unsigned long' |
MISRAC2012-RULE_10_4-a-2 |
|
776: |
Operands of the '+' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
776: |
Operands of the '/' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
776: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
777: |
Operands of the '*' operator have different essential types: 'signed char' and 'unsigned long' |
MISRAC2012-RULE_10_4-a-2 |
|
777: |
Operands of the '/' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
777: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
777: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
779: |
Operands of the '&' operator have different essential types: 'unsigned int' and 'int' |
MISRAC2012-RULE_10_4-a-2 |
|
779: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
779: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
779: |
The right hand operand of the '&' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
780: |
Conditional statement 'if' in a function 'get_stack_limits' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
781: |
Operands of the '*' operator have different essential types: 'signed char' and 'unsigned long' |
MISRAC2012-RULE_10_4-a-2 |
|
781: |
Operands of the '/' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
781: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
783: |
An 'else' statement in a function 'get_stack_limits' shall be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
783: |
Operands of the '*' operator have different essential types: 'signed char' and 'unsigned long' |
MISRAC2012-RULE_10_4-a-2 |
|
783: |
Operands of the '+' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
783: |
Operands of the '/' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
783: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
784: |
Operands of the '*' operator have different essential types: 'signed char' and 'unsigned long' |
MISRAC2012-RULE_10_4-a-2 |
|
784: |
Operands of the '/' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
784: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
784: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
786: |
Provide 'else' after the last 'else-if' construct |
MISRAC2012-RULE_15_7-a-2 |
|
786: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
787: |
Conditional statement 'if' in a function 'get_stack_limits' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
787: |
The operands of a logical '||' in function 'get_stack_limits' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
787: |
The operands of a logical '||' in function 'get_stack_limits' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
788: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
791: |
Operands of the '-' operator have different essential types: 'unsigned long' and 'short' |
MISRAC2012-RULE_10_4-a-2 |
|
792: |
Conditional statement 'if' in a function 'get_stack_limits' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
793: |
Operands of the '+=' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
805: |
Operands of the '&' operator have different essential types: 'unsigned int' and 'int' |
MISRAC2012-RULE_10_4-a-2 |
|
805: |
The expression of the 'essentially unsigned' type is returned from function 'thread_is_from_abort_mode' with the 'essentially
Boolean' type
|
MISRAC2012-RULE_10_3-b-2 |
|
805: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
805: |
The right hand operand of the '&' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
818: |
The argument number '1' ('essentially signed' type) is passed to the function 'thread_mask_exceptions' as a parameter with
the 'essentially unsigned' type
|
MISRAC2012-RULE_10_3-b-2 |
|
818: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
818: |
The left hand operand of the '>>' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
827: |
Operands of the '&' operator have different essential types: 'unsigned int' and 'int' |
MISRAC2012-RULE_10_4-a-2 |
|
827: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
827: |
The operand of the '~' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
827: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
827: |
The operands of a logical '&&' in function 'thread_is_in_normal_mode' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
827: |
The right hand operand of the '&' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
834: |
The names of the identifiers 'thread_state_free' and 'THREAD_STATE_FREE' (line: 19 in the 'thread_private.h' file) differ
only in capitalization
|
MISRAC2012-DIR_4_5-a-4 |
|
837: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
839: |
Potential macro 'THREAD_ID_INVALID' used as '1' parameter of potential macro 'assert' |
MISRAC2012-RULE_20_12-a-2 |
|
843: |
Arithmetic type 'unsigned long' should not be converted to pointer to void type |
MISRAC2012-RULE_11_6-a-2 |
|
843: |
Operands of the '-' operator have different essential types: 'unsigned long' and 'short' |
MISRAC2012-RULE_10_4-a-2 |
|
880: |
Parameter 'thr' is not used in function 'release_unused_kernel_stack' |
MISRAC2012-RULE_2_7-a-4 |
|
880: |
Pass parameter "thr" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
881: |
Parameter 'cpsr' is not used in function 'release_unused_kernel_stack' |
MISRAC2012-RULE_2_7-a-4 |
|
886: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
889: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
891: |
Potential macro 'THREAD_ID_INVALID' used as '1' parameter of potential macro 'assert' |
MISRAC2012-RULE_20_12-a-2 |
|
893: |
Conditional statement 'if' in a function 'thread_state_suspend' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
898: |
The variable 'threads' used as the left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
917: |
Conditional statement 'if' in a function 'thread_state_suspend' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
917: |
Operands of the '&' operator have different essential types: 'unsigned int' and 'int' |
MISRAC2012-RULE_10_4-a-2 |
|
917: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
917: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
917: |
The right hand operand of the '&' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
967: |
Identifiers given in declaration of 'thread_init_stack' function (file: 'thread.h', line: '296') are: 'stack_id' not: 'thread_id' |
MISRAC2012-RULE_8_3-b-2 |
|
967: |
The function 'thread_init_stack' is referenced only in the translation unit where it is defined |
MISRAC2012-RULE_8_7-a-4 |
|
969: |
Conditional statement 'if' in a function 'thread_init_stack' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
969: |
Operands of the '>=' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
970: |
Provide only one exit point in 'thread_init_stack' function |
MISRAC2012-RULE_15_5-a-4 |
|
972: |
Provide only one exit point in 'thread_init_stack' function |
MISRAC2012-RULE_15_5-a-4 |
|
975: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
980: |
The argument number '1' ('essentially signed' type) is passed to the function 'thread_mask_exceptions' as a parameter with
the 'essentially unsigned' type
|
MISRAC2012-RULE_10_3-b-2 |
|
980: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
980: |
The left hand operand of the '>>' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
982: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
988: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
990: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
993: |
The 'switch' statement contains less than two switch-clauses |
MISRAC2012-RULE_16_6-a-2 |
|
993: |
The 'switch' statement contains less than two switch-clauses |
MISRAC2012-RULE_16_1-h-2 |
|
993: |
The result of comparison is always true or always false |
MISRAC2012-RULE_14_3-i-2 |
|
994: |
Potential macro 'CFG_NUM_THREADS' used as '1' parameter of potential macro 'assert' |
MISRAC2012-RULE_20_12-a-2 |
|
994: |
The operands of a logical '&&' in function 'thread_get_id' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
994: |
The operands of a logical '&&' in function 'thread_get_id' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
1042: |
Operands of the '<' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
1043: |
Conditional statement 'if' in a function 'init_thread_stacks' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1043: |
Operands of the '*' operator have different essential types: 'signed char' and 'unsigned long' |
MISRAC2012-RULE_10_4-a-2 |
|
1043: |
Operands of the '/' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
1043: |
The argument number '1' (8 byte essential type) is passed to the function 'thread_init_stack' as a parameter with a narrower
essential type (4 byte)
|
MISRAC2012-RULE_10_3-a-2 |
|
1043: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
1043: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
1052: |
Pointer to function 'void (*)(void)' should not be cast to other type |
MISRAC2012-RULE_11_1-a-2 |
|
1053: |
Pointer to function 'void (*)(void)' should not be cast to other type |
MISRAC2012-RULE_11_1-a-2 |
|
1055: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
1055: |
Operands of the '-' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
1056: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
1056: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
1056: |
Operands of the '-' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
1056: |
Operands of the '-' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
1060: |
The expression of the 'essentially unsigned' type is assigned to an object with the 'essentially signed' type |
MISRAC2012-RULE_10_3-b-2 |
|
1069: |
The expression of the 'essentially unsigned' type is assigned to an object with the 'essentially signed' type |
MISRAC2012-RULE_10_3-b-2 |
|
1074: |
The function 'thread_init_threads' is referenced only in the translation unit where it is defined |
MISRAC2012-RULE_8_7-a-4 |
|
1084: |
Operands of the '<' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
1095: |
Operands of the '<' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
1097: |
The expression of the 'essentially signed' type is assigned to an object with the 'essentially unsigned' type |
MISRAC2012-RULE_10_3-b-2 |
|
1097: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
1100: |
Operands of the '*' operator have different essential types: 'signed char' and 'unsigned long' |
MISRAC2012-RULE_10_4-a-2 |
|
1100: |
Operands of the '/' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
1100: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
1100: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
1111: |
Parameter 'pos' is not used in function 'init_sec_mon_stack' |
MISRAC2012-RULE_2_7-a-4 |
|
1121: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
1121: |
Operands of the '-' operator have different essential types: 'unsigned char' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
1127: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
1127: |
Operands of the '-' operator have different essential types: 'unsigned char' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
1135: |
Integer constant '0x80000000' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
1135: |
The expression of the 'essentially unsigned' type is assigned to an object with the 'essentially signed' type |
MISRAC2012-RULE_10_3-b-2 |
|
1136: |
Conditional statement 'if' in a function 'probe_workaround_available' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1137: |
Provide only one exit point in 'probe_workaround_available' function |
MISRAC2012-RULE_15_5-a-4 |
|
1138: |
Conditional statement 'if' in a function 'probe_workaround_available' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1139: |
Provide only one exit point in 'probe_workaround_available' function |
MISRAC2012-RULE_15_5-a-4 |
|
1142: |
Integer constant '0x80000001' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
1142: |
Integer constant '0x80008000' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
1142: |
The expression of the 'essentially unsigned' type is assigned to an object with the 'essentially signed' type |
MISRAC2012-RULE_10_3-b-2 |
|
1143: |
Provide only one exit point in 'probe_workaround_available' function |
MISRAC2012-RULE_15_5-a-4 |
|
1152: |
Provide only one exit point in 'select_vector' function |
MISRAC2012-RULE_15_5-a-4 |
|
1158: |
Pointer to function 'void (*)(void)' should not be cast to other type |
MISRAC2012-RULE_11_1-a-2 |
|
1158: |
Provide only one exit point in 'select_vector' function |
MISRAC2012-RULE_15_5-a-4 |
|
1170: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with a narrower essential type (4 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
1172: |
Conditional statement 'if' in a function 'get_excp_vect' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1172: |
Operands of the '!=' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
1173: |
Pointer to function 'void (*)(void)' should not be cast to other type |
MISRAC2012-RULE_11_1-a-2 |
|
1173: |
Provide only one exit point in 'get_excp_vect' function |
MISRAC2012-RULE_15_5-a-4 |
|
1175: |
Unreachable code detected after 'switch' statement |
MISRAC2012-RULE_2_1-f-2 |
|
1185: |
Pointer to function 'void (*)(void)' should not be cast to other type |
MISRAC2012-RULE_11_1-a-2 |
|
1185: |
Provide only one exit point in 'get_excp_vect' function |
MISRAC2012-RULE_15_5-a-4 |
|
1191: |
Pointer to function 'void (*)(void)' should not be cast to other type |
MISRAC2012-RULE_11_1-a-2 |
|
1191: |
Provide only one exit point in 'get_excp_vect' function |
MISRAC2012-RULE_15_5-a-4 |
|
1195: |
Pointer to function 'void (*)(void)' should not be cast to other type |
MISRAC2012-RULE_11_1-a-2 |
|
1195: |
Provide only one exit point in 'get_excp_vect' function |
MISRAC2012-RULE_15_5-a-4 |
|
1205: |
Operands of the '*' operator have different essential types: 'signed char' and 'unsigned long' |
MISRAC2012-RULE_10_4-a-2 |
|
1205: |
Operands of the '-' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
1205: |
Operands of the '/' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
1205: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
1205: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
1206: |
Operands of the '*' operator have different essential types: 'signed char' and 'unsigned long' |
MISRAC2012-RULE_10_4-a-2 |
|
1206: |
Operands of the '/' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
1206: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
1206: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
1225: |
The function 'thread_get_ctx_regs' is referenced only in the translation unit where it is defined |
MISRAC2012-RULE_8_7-a-4 |
|
1229: |
Potential macro 'THREAD_ID_INVALID' used as '1' parameter of potential macro 'assert' |
MISRAC2012-RULE_20_12-a-2 |
|
1236: |
The argument number '1' ('essentially signed' type) is passed to the function 'thread_mask_exceptions' as a parameter with
the 'essentially unsigned' type
|
MISRAC2012-RULE_10_3-b-2 |
|
1236: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
1236: |
The left hand operand of the '>>' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
1241: |
Potential macro 'THREAD_ID_INVALID' used as '1' parameter of potential macro 'assert' |
MISRAC2012-RULE_20_12-a-2 |
|
1244: |
Operands of the '|=' operator have different essential types: 'unsigned int' and 'int' |
MISRAC2012-RULE_10_4-a-2 |
|
1244: |
The right hand operand of the '|=' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
1245: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
1246: |
Operands of the '&' operator have different essential types: 'unsigned int' and 'int' |
MISRAC2012-RULE_10_4-a-2 |
|
1246: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
1246: |
The left hand operand of the '>>' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
1246: |
The operand of the '~' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
1246: |
The right hand operand of the '&' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
1252: |
Operands of the '&=' operator have different essential types: 'unsigned int' and 'int' |
MISRAC2012-RULE_10_4-a-2 |
|
1252: |
The right hand operand of the '&=' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
1253: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
1253: |
The operand of the '~' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
1257: |
The function 'thread_restore_foreign_intr' is referenced only in the translation unit where it is defined |
MISRAC2012-RULE_8_7-a-4 |
|
1260: |
The argument number '1' ('essentially signed' type) is passed to the function 'thread_mask_exceptions' as a parameter with
the 'essentially unsigned' type
|
MISRAC2012-RULE_10_3-b-2 |
|
1260: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
1260: |
The left hand operand of the '>>' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
1265: |
Potential macro 'THREAD_ID_INVALID' used as '1' parameter of potential macro 'assert' |
MISRAC2012-RULE_20_12-a-2 |
|
1267: |
Conditional statement 'if' in a function 'thread_restore_foreign_intr' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1267: |
Operands of the '&' operator have different essential types: 'unsigned int' and 'int' |
MISRAC2012-RULE_10_4-a-2 |
|
1267: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
1267: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
1267: |
The right hand operand of the '&' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
1268: |
Operands of the '&' operator have different essential types: 'unsigned int' and 'int' |
MISRAC2012-RULE_10_4-a-2 |
|
1268: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
1268: |
The left hand operand of the '>>' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
1268: |
The operand of the '~' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
1268: |
The right hand operand of the '&' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
1274: |
The argument number '1' ('essentially signed' type) is passed to the function 'thread_mask_exceptions' as a parameter with
the 'essentially unsigned' type
|
MISRAC2012-RULE_10_3-b-2 |
|
1274: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
1274: |
The left hand operand of the '>>' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
1275: |
The variable 'threads' used as the left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
1285: |
The operands of a logical '&&' in function 'thread_kernel_enable_vfp' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
1293: |
Provide 'else' after the last 'else-if' construct |
MISRAC2012-RULE_15_7-a-2 |
|
1293: |
The left hand operand of the logical operator '&&' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
1293: |
The operands of a logical '&&' in function 'thread_kernel_enable_vfp' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
1314: |
Operands of the '&' operator have different essential types: 'unsigned int' and 'int' |
MISRAC2012-RULE_10_4-a-2 |
|
1314: |
Potential macro 'THREAD_EXCP_FOREIGN_INTR' used as '1' parameter of potential macro 'assert' |
MISRAC2012-RULE_20_12-a-2 |
|
1314: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
1314: |
The left hand operand of the '>>' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
1314: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
1314: |
The right hand operand of the '&' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
1315: |
Operands of the '&=' operator have different essential types: 'unsigned int' and 'int' |
MISRAC2012-RULE_10_4-a-2 |
|
1315: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
1315: |
The left hand operand of the '>>' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
1315: |
The operand of the '~' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
1315: |
The right hand operand of the '&=' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
1316: |
Operands of the '&' operator have different essential types: 'unsigned int' and 'int' |
MISRAC2012-RULE_10_4-a-2 |
|
1316: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
1316: |
The left hand operand of the '>>' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
1316: |
The right hand operand of the '&' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
1322: |
The variable 'threads' used as the left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
1324: |
Operands of the '&' operator have different essential types: 'unsigned int' and 'int' |
MISRAC2012-RULE_10_4-a-2 |
|
1324: |
Potential macro 'THREAD_EXCP_FOREIGN_INTR' used as '1' parameter of potential macro 'assert' |
MISRAC2012-RULE_20_12-a-2 |
|
1324: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
1324: |
The left hand operand of the '>>' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
1324: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
1324: |
The right hand operand of the '&' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
1333: |
The variable 'threads' used as the left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
1335: |
Operands of the '&' operator have different essential types: 'unsigned int' and 'int' |
MISRAC2012-RULE_10_4-a-2 |
|
1335: |
Potential macro 'THREAD_EXCP_FOREIGN_INTR' used as '1' parameter of potential macro 'assert' |
MISRAC2012-RULE_20_12-a-2 |
|
1335: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
1335: |
The left hand operand of the '>>' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
1335: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
1335: |
The right hand operand of the '&' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
1347: |
The variable 'threads' used as the left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
1350: |
Operands of the '&' operator have different essential types: 'unsigned int' and 'int' |
MISRAC2012-RULE_10_4-a-2 |
|
1350: |
Potential macro 'THREAD_EXCP_FOREIGN_INTR' used as '1' parameter of potential macro 'assert' |
MISRAC2012-RULE_20_12-a-2 |
|
1350: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
1350: |
The left hand operand of the '>>' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
1350: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
1350: |
The right hand operand of the '&' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
1357: |
Provide 'else' after the last 'else-if' construct |
MISRAC2012-RULE_15_7-a-2 |
|
1357: |
The left hand operand of the logical operator '&&' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
1357: |
The operands of a logical '&&' in function 'thread_user_enable_vfp' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
1358: |
The operands of a logical '&&' in function 'thread_user_enable_vfp' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
1365: |
Conditional statement 'if' in a function 'thread_user_enable_vfp' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1374: |
The function 'thread_user_save_vfp' is referenced only in the translation unit where it is defined |
MISRAC2012-RULE_8_7-a-4 |
|
1376: |
The variable 'threads' used as the left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
1379: |
Operands of the '&' operator have different essential types: 'unsigned int' and 'int' |
MISRAC2012-RULE_10_4-a-2 |
|
1379: |
Potential macro 'THREAD_EXCP_FOREIGN_INTR' used as '1' parameter of potential macro 'assert' |
MISRAC2012-RULE_20_12-a-2 |
|
1379: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
1379: |
The left hand operand of the '>>' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
1379: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
1379: |
The right hand operand of the '&' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
1380: |
Conditional statement 'if' in a function 'thread_user_save_vfp' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1381: |
'return' statement should be at the end of the 'thread_user_save_vfp' function |
MISRAC2012-RULE_15_5-a-4 |
|
1383: |
The left hand operand of the logical operator '&&' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
1383: |
The operands of a logical '&&' in function 'thread_user_save_vfp' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
1383: |
The operands of a logical '&&' in function 'thread_user_save_vfp' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
1391: |
The variable 'threads' used as the left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
1393: |
Conditional statement 'if' in a function 'thread_user_clear_vfp' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1401: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
1419: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
1424: |
Operands of the '&' operator have different essential types: 'unsigned int' and 'int' |
MISRAC2012-RULE_10_4-a-2 |
|
1424: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
1424: |
The right hand operand of the '&' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
1425: |
Operands of the '|=' operator have different essential types: 'unsigned int' and 'int' |
MISRAC2012-RULE_10_4-a-2 |
|
1425: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
1425: |
The right hand operand of the '|=' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
1426: |
Operands of the '&' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
1426: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with a narrower essential type (4 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
1426: |
The right hand operand of the '&' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
1428: |
Operands of the '&' operator have different essential types: 'unsigned int' and 'int' |
MISRAC2012-RULE_10_4-a-2 |
|
1428: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
1428: |
The right hand operand of the '&' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
1436: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
1437: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
1437: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
1437: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
1438: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
1438: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
1470: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
1470: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
1470: |
The names of the identifiers 'thread_enter_user_mode' and '__thread_enter_user_mode' (line: 144 in the 'thread_private.h'
file) differ only in the presence/absence of the underscore character
|
MISRAC2012-DIR_4_5-a-4 |
|
1471: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
1471: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
1471: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
1472: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
1485: |
Integer constant '0xbadbadba' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
1486: |
Provide only one exit point in 'thread_enter_user_mode' function |
MISRAC2012-RULE_15_5-a-4 |
|
1489: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
1489: |
The argument number '1' ('essentially signed' type) is passed to the function 'thread_mask_exceptions' as a parameter with
the 'essentially unsigned' type
|
MISRAC2012-RULE_10_3-b-2 |
|
1489: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
1489: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
1489: |
The left hand operand of the '>>' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
1489: |
The left hand operand of the '>>' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
1489: |
The left hand operand of the '|' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
1489: |
The right hand operand of the '|' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
1500: |
Provide only one exit point in 'thread_enter_user_mode' function |
MISRAC2012-RULE_15_5-a-4 |
|
1504: |
A tag name 'mobj' is reused |
MISRAC2012-RULE_5_7-a-2 |
|
1504: |
Identifier 'mobj' is hiding an identifier from global or namespace scope |
MISRAC2012-RULE_5_3-a-2 |
|
1516: |
A tag name 'mobj' is reused |
MISRAC2012-RULE_5_7-a-2 |
|
1516: |
Identifier 'mobj' is hiding an identifier from global or namespace scope |
MISRAC2012-RULE_5_3-a-2 |
|
1536: |
Pointer to function 'void (*)(uint32_t, uint32_t, uint32_t)' should not be cast to other type |
MISRAC2012-RULE_11_1-a-2 |
|
1537: |
The expression of the 'essentially signed' type is assigned to an object with the 'essentially unsigned' type |
MISRAC2012-RULE_10_3-b-2 |
|
1537: |
The left hand operand of the '&' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
1537: |
The left hand operand of the '&' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
1537: |
The left hand operand of the '&' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
1537: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
1537: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
1537: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
1537: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
1537: |
The left hand operand of the '|' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
1537: |
The right hand operand of the '&' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
1537: |
The right hand operand of the '&' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
1537: |
The right hand operand of the '&' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
1537: |
The right hand operand of the '|' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
1537: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
1537: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
1537: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
1537: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
1546: |
Pointer to object type 'struct thread_svc_regs *' should not be converted to integral type 'unsigned long' |
MISRAC2012-RULE_11_4-a-4 |
|
1546: |
The variable 'regs' used as the left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
1550: |
Parameter 's' is not used in function 'gprof_set_status' |
MISRAC2012-RULE_2_7-a-4 |
|
1550: |
Pass parameter "s" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
1551: |
Parameter 'status' is not used in function 'gprof_set_status' |
MISRAC2012-RULE_2_7-a-4 |
|
1570: |
Operands of the '&' operator have different essential types: 'unsigned int' and 'int' |
MISRAC2012-RULE_10_4-a-2 |
|
1570: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
1570: |
The left hand operand of the '>>' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
1570: |
The operand of the '~' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
| +
|
1570: |
The return value of the "thread_get_exceptions" method is not checked. It is checked at least 80% times in the testing scope |
MISRAC2012-DIR_4_7-a-2 |
| |
|
Example path
misc.h (22): assert(thread_get_exceptions() & THREAD_EXCP_FOREIGN_INTR); *** Method call *** Example of checking
Violation path
Method call
thread.c (1569): state = thread_get_exceptions();
Point by which returned value should be checked
thread.c (1570): thread_unmask_exceptions(state & ~THREAD_EXCP_NATIVE_INTR); |
|
|
1570: |
The right hand operand of the '&' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
1584: |
The left hand operand of the logical operator '&&' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
1584: |
The right hand operand of the logical operator '&&' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
1598: |
Provide only one exit point in 'alloc_shm' function |
MISRAC2012-RULE_15_5-a-4 |
|
1600: |
Provide only one exit point in 'alloc_shm' function |
MISRAC2012-RULE_15_5-a-4 |
|
1602: |
Provide only one exit point in 'alloc_shm' function |
MISRAC2012-RULE_15_5-a-4 |
|
1604: |
Provide only one exit point in 'alloc_shm' function |
MISRAC2012-RULE_15_5-a-4 |
|
1610: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
1636: |
'for' statement in a function 'get_shm_cache_entry' should be followed by a block |
MISRAC2012-RULE_15_6-a-2 |
|
1636: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
1637: |
Conditional statement 'if' in a function 'get_shm_cache_entry' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1638: |
Provide only one exit point in 'get_shm_cache_entry' function |
MISRAC2012-RULE_15_5-a-4 |
|
1640: |
'calloc' function should not be used |
MISRAC2012-RULE_21_3-a-2 |
|
1640: |
'calloc' function should not be used |
MISRAC2012-DIR_4_12-a-2 |
|
1640: |
Pointer to void type should not be converted to pointer to object type 'struct thread_shm_cache_entry *' |
MISRAC2012-RULE_11_5-a-4 |
|
1641: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
1646: |
Provide only one exit point in 'get_shm_cache_entry' function |
MISRAC2012-RULE_15_5-a-4 |
|
1651: |
A tag name 'mobj' is reused |
MISRAC2012-RULE_5_7-a-2 |
|
1651: |
Identifier 'mobj' is hiding an identifier from global or namespace scope |
MISRAC2012-RULE_5_3-a-2 |
|
1658: |
Conditional statement 'if' in a function 'thread_rpc_shm_cache_alloc' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1658: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
1659: |
Provide only one exit point in 'thread_rpc_shm_cache_alloc' function |
MISRAC2012-RULE_15_5-a-4 |
|
1662: |
Conditional statement 'if' in a function 'thread_rpc_shm_cache_alloc' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1662: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
1663: |
Provide only one exit point in 'thread_rpc_shm_cache_alloc' function |
MISRAC2012-RULE_15_5-a-4 |
|
1669: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
1669: |
Operands of the '-' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
1669: |
Operands of the '-' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
1671: |
The operands of a logical '||' in function 'thread_rpc_shm_cache_alloc' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
1671: |
The operands of a logical '||' in function 'thread_rpc_shm_cache_alloc' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
1675: |
Conditional statement 'if' in a function 'thread_rpc_shm_cache_alloc' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1675: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
1676: |
Provide only one exit point in 'thread_rpc_shm_cache_alloc' function |
MISRAC2012-RULE_15_5-a-4 |
|
1678: |
Conditional statement 'if' in a function 'thread_rpc_shm_cache_alloc' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1678: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
1679: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
1681: |
Conditional statement 'if' in a function 'thread_rpc_shm_cache_alloc' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1681: |
Do not use the '_Alignof' operator |
MISRAC2012-RULE_1_4-h-2 |
|
1681: |
Operands of the '==' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
1682: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
1685: |
Conditional statement 'if' in a function 'thread_rpc_shm_cache_alloc' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1685: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
1686: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
1692: |
Conditional statement 'if' in a function 'thread_rpc_shm_cache_alloc' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1692: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
1693: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
1697: |
Provide only one exit point in 'thread_rpc_shm_cache_alloc' function |
MISRAC2012-RULE_15_5-a-4 |
|
1700: |
Provide only one exit point in 'thread_rpc_shm_cache_alloc' function |
MISRAC2012-RULE_15_5-a-4 |
|
1708: |
Conditional statement 'if' in a function 'thread_rpc_shm_cache_clear' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1708: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
1712: |
'free' function should not be used |
MISRAC2012-RULE_21_3-a-2 |
|
1712: |
'free' function should not be used |
MISRAC2012-DIR_4_12-a-2 |
|
1721: |
Parameter 'a0' is not used in function 'thread_cpu_off_handler' |
MISRAC2012-RULE_2_7-a-4 |
|
1721: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
1721: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
1721: |
The function 'thread_cpu_off_handler' is referenced only in the translation unit where it is defined |
MISRAC2012-RULE_8_7-a-4 |
|
1722: |
Parameter 'a1' is not used in function 'thread_cpu_off_handler' |
MISRAC2012-RULE_2_7-a-4 |
|
1722: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
1726: |
Declaration of object '____keep_pager_thread_cpu_off_handler_core_arch_arm_kernel_thread_c' does not precede its definition |
MISRAC2012-RULE_8_4-a-2 |
|
1726: |
Pointer to function 'unsigned long (*)(unsigned long, unsigned long)' should not be cast to other type |
MISRAC2012-RULE_11_1-a-2 |
|
1726: |
Reserved name '____keep_pager_thread_cpu_off_handler' used |
MISRAC2012-RULE_21_2-a-2 |
|
1726: |
Reserved name '____keep_pager_thread_cpu_off_handler_core_arch_arm_kernel_thread_c' used |
MISRAC2012-RULE_21_2-a-2 |
|
1726: |
The '____keep_pager_thread_cpu_off_handler' object has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
1726: |
The identifier '____keep_pager_thread_cpu_off_handler_core_arch_arm_kernel_thread_c' has the same first 31 characters of the
name as the identifier '____keep_pager_thread_cpu_off_handler' defined in the 'thread.c' file in line '1726'
|
MISRAC2012-RULE_5_1-a-2 |
|
1728: |
Parameter 'a0' is not used in function 'thread_cpu_suspend_handler' |
MISRAC2012-RULE_2_7-a-4 |
|
1728: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
1728: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
1728: |
The function 'thread_cpu_suspend_handler' is referenced only in the translation unit where it is defined |
MISRAC2012-RULE_8_7-a-4 |
|
1729: |
Parameter 'a1' is not used in function 'thread_cpu_suspend_handler' |
MISRAC2012-RULE_2_7-a-4 |
|
1729: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
1733: |
Declaration of object '____keep_pager_thread_cpu_suspend_handler_core_arch_arm_kernel_thread_c' does not precede its definition |
MISRAC2012-RULE_8_4-a-2 |
|
1733: |
Pointer to function 'unsigned long (*)(unsigned long, unsigned long)' should not be cast to other type |
MISRAC2012-RULE_11_1-a-2 |
|
1733: |
Reserved name '____keep_pager_thread_cpu_suspend_handler' used |
MISRAC2012-RULE_21_2-a-2 |
|
1733: |
Reserved name '____keep_pager_thread_cpu_suspend_handler_core_arch_arm_kernel_thread_c' used |
MISRAC2012-RULE_21_2-a-2 |
|
1733: |
The '____keep_pager_thread_cpu_suspend_handler' object has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
1733: |
The identifier '____keep_pager_thread_cpu_suspend_handler_core_arch_arm_kernel_thread_c' has the same first 31 characters
of the name as the identifier '____keep_pager_thread_cpu_suspend_handler' defined in the 'thread.c' file in line '1733'
|
MISRAC2012-RULE_5_1-a-2 |
|
1735: |
Parameter 'a0' is not used in function 'thread_cpu_resume_handler' |
MISRAC2012-RULE_2_7-a-4 |
|
1735: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
1735: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
1735: |
The function 'thread_cpu_resume_handler' is referenced only in the translation unit where it is defined |
MISRAC2012-RULE_8_7-a-4 |
|
1736: |
Parameter 'a1' is not used in function 'thread_cpu_resume_handler' |
MISRAC2012-RULE_2_7-a-4 |
|
1736: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
1740: |
Declaration of object '____keep_pager_thread_cpu_resume_handler_core_arch_arm_kernel_thread_c' does not precede its definition |
MISRAC2012-RULE_8_4-a-2 |
|
1740: |
Pointer to function 'unsigned long (*)(unsigned long, unsigned long)' should not be cast to other type |
MISRAC2012-RULE_11_1-a-2 |
|
1740: |
Reserved name '____keep_pager_thread_cpu_resume_handler' used |
MISRAC2012-RULE_21_2-a-2 |
|
1740: |
Reserved name '____keep_pager_thread_cpu_resume_handler_core_arch_arm_kernel_thread_c' used |
MISRAC2012-RULE_21_2-a-2 |
|
1740: |
The '____keep_pager_thread_cpu_resume_handler' object has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
1740: |
The identifier '____keep_pager_thread_cpu_resume_handler_core_arch_arm_kernel_thread_c' has the same first 31 characters of
the name as the identifier '____keep_pager_thread_cpu_resume_handler' defined in the 'thread.c' file in line '1740'
|
MISRAC2012-RULE_5_1-a-2 |
|
1742: |
Parameter 'a0' is not used in function 'thread_system_off_handler' |
MISRAC2012-RULE_2_7-a-4 |
|
1742: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
1742: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
1742: |
The function 'thread_system_off_handler' is referenced only in the translation unit where it is defined |
MISRAC2012-RULE_8_7-a-4 |
|
1743: |
Parameter 'a1' is not used in function 'thread_system_off_handler' |
MISRAC2012-RULE_2_7-a-4 |
|
1743: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
1747: |
Declaration of object '____keep_pager_thread_system_off_handler_core_arch_arm_kernel_thread_c' does not precede its definition |
MISRAC2012-RULE_8_4-a-2 |
|
1747: |
Pointer to function 'unsigned long (*)(unsigned long, unsigned long)' should not be cast to other type |
MISRAC2012-RULE_11_1-a-2 |
|
1747: |
Reserved name '____keep_pager_thread_system_off_handler' used |
MISRAC2012-RULE_21_2-a-2 |
|
1747: |
Reserved name '____keep_pager_thread_system_off_handler_core_arch_arm_kernel_thread_c' used |
MISRAC2012-RULE_21_2-a-2 |
|
1747: |
The '____keep_pager_thread_system_off_handler' object has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
1747: |
The identifier '____keep_pager_thread_system_off_handler_core_arch_arm_kernel_thread_c' has the same first 31 characters of
the name as the identifier '____keep_pager_thread_system_off_handler' defined in the 'thread.c' file in line '1747'
|
MISRAC2012-RULE_5_1-a-2 |
|
1749: |
Parameter 'a0' is not used in function 'thread_system_reset_handler' |
MISRAC2012-RULE_2_7-a-4 |
|
1749: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
1749: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
1749: |
The function 'thread_system_reset_handler' is referenced only in the translation unit where it is defined |
MISRAC2012-RULE_8_7-a-4 |
|
1750: |
Parameter 'a1' is not used in function 'thread_system_reset_handler' |
MISRAC2012-RULE_2_7-a-4 |
|
1750: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
1754: |
Declaration of object '____keep_pager_thread_system_reset_handler_core_arch_arm_kernel_thread_c' does not precede its definition |
MISRAC2012-RULE_8_4-a-2 |
|
1754: |
Pointer to function 'unsigned long (*)(unsigned long, unsigned long)' should not be cast to other type |
MISRAC2012-RULE_11_1-a-2 |
|
1754: |
Reserved name '____keep_pager_thread_system_reset_handler' used |
MISRAC2012-RULE_21_2-a-2 |
|
1754: |
Reserved name '____keep_pager_thread_system_reset_handler_core_arch_arm_kernel_thread_c' used |
MISRAC2012-RULE_21_2-a-2 |
|
1754: |
The '____keep_pager_thread_system_reset_handler' object has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
1754: |
The identifier '____keep_pager_thread_system_reset_handler_core_arch_arm_kernel_thread_c' has the same first 31 characters
of the name as the identifier '____keep_pager_thread_system_reset_handler' defined in the 'thread.c' file in line '1754'
|
MISRAC2012-RULE_5_1-a-2 |
| /optee_os_MISRA/optee_os_ruchi393_core/arch/arm/kernel/thread_optee_smc.c |
|
28: |
Global variable 'thread_rpc_pnum' is being used only in a single function 'thread_rpc_cmd' |
MISRAC2012-RULE_8_9-a-4 |
|
28: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
47: |
Unused label was found: out |
MISRAC2012-RULE_2_6-a-4 |
|
49: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
49: |
Operands of the '==' operator have different essential types: 'unsigned int' and 'int' |
MISRAC2012-RULE_10_4-a-2 |
|
49: |
Potential macro 'THREAD_EXCP_ALL' used as '1' parameter of potential macro 'assert' |
MISRAC2012-RULE_20_12-a-2 |
|
49: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
49: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
49: |
The left hand operand of the '>>' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
49: |
The left hand operand of the '>>' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
49: |
The left hand operand of the '|' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
49: |
The right hand operand of the '|' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
54: |
Parameter 'a6' is not used in function 'thread_handle_std_smc' |
MISRAC2012-RULE_2_7-a-4 |
|
54: |
Parameter 'a7' is not used in function 'thread_handle_std_smc' |
MISRAC2012-RULE_2_7-a-4 |
|
70: |
Operands of the '==' operator have different essential types: 'unsigned int' and 'int' |
MISRAC2012-RULE_10_4-a-2 |
|
70: |
The left hand operand of the '&' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
70: |
The left hand operand of the '&' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
70: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
70: |
The left hand operand of the '|' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
70: |
The left hand operand of the '|' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
70: |
The right hand operand of the '&' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
70: |
The right hand operand of the '&' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
70: |
The right hand operand of the '|' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
70: |
The right hand operand of the '|' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
92: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
93: |
The array of type 'uint32_t [4]' shall not be partially initialized |
MISRAC2012-RULE_9_3-a-2 |
|
94: |
Integer constant '0xFFFF0000' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
94: |
Operands of the '|' operator have different essential types: 'signed char' and 'unsigned int' |
MISRAC2012-RULE_10_4-a-2 |
|
94: |
The left hand operand of the '|' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
97: |
The variable 'rpc_args' used as the left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
97: |
The variable 'rpc_args' used as the left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
107: |
Pointer to void type should not be converted to pointer to object type 'struct optee_msg_arg *' |
MISRAC2012-RULE_11_5-a-4 |
|
108: |
Conditional statement 'if' in a function 'get_cmd_buffer' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
108: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
109: |
Provide only one exit point in 'get_cmd_buffer' function |
MISRAC2012-RULE_15_5-a-4 |
|
112: |
Conditional statement 'if' in a function 'get_cmd_buffer' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
112: |
Operands of the '-' operator have different essential types: 'short' and 'unsigned long' |
MISRAC2012-RULE_10_4-a-2 |
|
113: |
Provide only one exit point in 'get_cmd_buffer' function |
MISRAC2012-RULE_15_5-a-4 |
|
115: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
117: |
Provide only one exit point in 'get_cmd_buffer' function |
MISRAC2012-RULE_15_5-a-4 |
|
123: |
A tag name 'mobj' is reused |
MISRAC2012-RULE_5_7-a-2 |
|
123: |
Identifier 'mobj' is hiding an identifier from global or namespace scope |
MISRAC2012-RULE_5_3-a-2 |
|
127: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
127: |
Operands of the '-' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
127: |
Potential macro 'SMALL_PAGE_MASK' used as '1' parameter of potential macro 'assert' |
MISRAC2012-RULE_20_12-a-2 |
|
127: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
130: |
Conditional statement 'if' in a function 'map_cmd_buffer' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
130: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
131: |
Provide only one exit point in 'map_cmd_buffer' function |
MISRAC2012-RULE_15_5-a-4 |
|
133: |
Pointer to void type should not be converted to pointer to object type 'struct optee_msg_arg *' |
MISRAC2012-RULE_11_5-a-4 |
|
134: |
Conditional statement 'if' in a function 'map_cmd_buffer' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
134: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
135: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
138: |
Conditional statement 'if' in a function 'map_cmd_buffer' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
138: |
Operands of the '-' operator have different essential types: 'short' and 'unsigned long' |
MISRAC2012-RULE_10_4-a-2 |
|
139: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
141: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
142: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
144: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
147: |
Provide only one exit point in 'map_cmd_buffer' function |
MISRAC2012-RULE_15_5-a-4 |
|
150: |
Provide only one exit point in 'map_cmd_buffer' function |
MISRAC2012-RULE_15_5-a-4 |
|
161: |
Parameter 'a3' is not used in function 'std_smc_entry' |
MISRAC2012-RULE_2_7-a-4 |
|
166: |
A tag name 'mobj' is reused |
MISRAC2012-RULE_5_7-a-2 |
|
166: |
Identifier 'mobj' is hiding an identifier from global or namespace scope |
MISRAC2012-RULE_5_3-a-2 |
|
169: |
Operands of the '!=' operator have different essential types: 'unsigned int' and 'int' |
MISRAC2012-RULE_10_4-a-2 |
|
169: |
The left hand operand of the '&' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
169: |
The left hand operand of the '&' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
169: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
169: |
The left hand operand of the '|' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
169: |
The left hand operand of the '|' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
169: |
The right hand operand of the '&' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
169: |
The right hand operand of the '&' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
169: |
The right hand operand of the '|' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
169: |
The right hand operand of the '|' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
172: |
Provide only one exit point in 'std_smc_entry' function |
MISRAC2012-RULE_15_5-a-4 |
|
177: |
The argument number '1' ('essentially Enum' type) is passed to the function 'core_pbuf_is' as a parameter with the 'essentially
unsigned' type
|
MISRAC2012-RULE_10_3-b-2 |
|
181: |
Conditional statement 'if' in a function 'std_smc_entry' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
181: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
181: |
Operands of the '-' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
181: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
182: |
Provide only one exit point in 'std_smc_entry' function |
MISRAC2012-RULE_15_5-a-4 |
|
186: |
Do not use the '_Alignof' operator |
MISRAC2012-RULE_1_4-h-2 |
|
186: |
Operands of the '==' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
186: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
186: |
The operands of a logical '||' in function 'std_smc_entry' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
186: |
The operands of a logical '||' in function 'std_smc_entry' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
189: |
Provide only one exit point in 'std_smc_entry' function |
MISRAC2012-RULE_15_5-a-4 |
|
192: |
Pointer to void type should not be converted to pointer to object type 'struct optee_msg_arg *' |
MISRAC2012-RULE_11_5-a-4 |
|
193: |
The left hand operand of the logical operator '&&' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
193: |
The operands of a logical '&&' in function 'std_smc_entry' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
197: |
Provide only one exit point in 'std_smc_entry' function |
MISRAC2012-RULE_15_5-a-4 |
|
206: |
Reserved name '__thread_std_smc_entry' used |
MISRAC2012-RULE_21_2-a-2 |
|
206: |
The '__thread_std_smc_entry' function is also defined in other translation units |
MISRAC2012-RULE_8_6-a-2 |
|
206: |
The names of the identifiers '__thread_std_smc_entry' and 'thread_std_smc_entry' (line: 128 in the 'thread_private.h' file)
differ only in the presence/absence of the underscore character
|
MISRAC2012-DIR_4_5-a-4 |
|
216: |
Operands of the '==' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
217: |
The variable 'threads' used as the left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
223: |
'0' is assigned to expression of pointer type |
MISRAC2012-RULE_11_9-a-2 |
|
223: |
'0' is assigned to expression of pointer type |
MISRAC2012-RULE_11_9-b-2 |
|
235: |
The argument number '1' ('essentially signed' type) is passed to the function 'thread_mask_exceptions' as a parameter with
the 'essentially unsigned' type
|
MISRAC2012-RULE_10_3-b-2 |
|
235: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
235: |
The left hand operand of the '>>' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
239: |
Operands of the '<' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
242: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
247: |
Operands of the '<' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
248: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
252: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
268: |
The argument number '1' ('essentially signed' type) is passed to the function 'thread_mask_exceptions' as a parameter with
the 'essentially unsigned' type
|
MISRAC2012-RULE_10_3-b-2 |
|
268: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
268: |
The left hand operand of the '>>' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
272: |
Operands of the '<' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
275: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
290: |
Conditional statement 'if' in a function 'rpc_shm_mobj_alloc' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
290: |
The argument number '1' ('essentially Enum' type) is passed to the function 'core_pbuf_is' as a parameter with the 'essentially
unsigned' type
|
MISRAC2012-RULE_10_3-b-2 |
|
291: |
Provide only one exit point in 'rpc_shm_mobj_alloc' function |
MISRAC2012-RULE_15_5-a-4 |
|
293: |
Conditional statement 'if' in a function 'rpc_shm_mobj_alloc' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
294: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
294: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
294: |
Operands of the '-' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
294: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
294: |
The operands of a logical '&&' in function 'rpc_shm_mobj_alloc' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
294: |
The operands of a logical '&&' in function 'rpc_shm_mobj_alloc' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
295: |
Provide only one exit point in 'rpc_shm_mobj_alloc' function |
MISRAC2012-RULE_15_5-a-4 |
|
297: |
Provide only one exit point in 'rpc_shm_mobj_alloc' function |
MISRAC2012-RULE_15_5-a-4 |
|
311: |
The array of type 'uint32_t [4]' shall not be partially initialized |
MISRAC2012-RULE_9_3-a-2 |
|
312: |
Integer constant '0xFFFF0000' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
312: |
Operands of the '|' operator have different essential types: 'signed char' and 'unsigned int' |
MISRAC2012-RULE_10_4-a-2 |
|
312: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with narrower essential type (4 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
312: |
The left hand operand of the '|' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
314: |
A tag name 'mobj' is reused |
MISRAC2012-RULE_5_7-a-2 |
|
314: |
Identifier 'mobj' is hiding an identifier from global or namespace scope |
MISRAC2012-RULE_5_3-a-2 |
|
323: |
Conditional statement 'if' in a function 'thread_rpc_alloc_arg' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
323: |
Do not use the '_Alignof' operator |
MISRAC2012-RULE_1_4-h-2 |
|
323: |
Operands of the '==' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
324: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
327: |
Conditional statement 'if' in a function 'thread_rpc_alloc_arg' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
327: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
328: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
330: |
Provide only one exit point in 'thread_rpc_alloc_arg' function |
MISRAC2012-RULE_15_5-a-4 |
|
334: |
Provide only one exit point in 'thread_rpc_alloc_arg' function |
MISRAC2012-RULE_15_5-a-4 |
|
340: |
Operands of the '+' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
340: |
The left hand operand of the '-' operator has essentially enum type: thread_param_attr |
MISRAC2012-RULE_10_1-d-2 |
|
340: |
The right hand operand of the '-' operator has essentially enum type: thread_param_attr |
MISRAC2012-RULE_10_1-d-2 |
|
340: |
The value of a composite expression (32 bit essential type) is assigned to an object with wider essential type (64 bit) |
MISRAC2012-RULE_10_6-a-2 |
|
340: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
344: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
346: |
Conditional statement 'if' in a function 'set_rmem' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
346: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
347: |
Provide only one exit point in 'set_rmem' function |
MISRAC2012-RULE_15_5-a-4 |
|
352: |
Provide only one exit point in 'set_rmem' function |
MISRAC2012-RULE_15_5-a-4 |
|
356: |
Pass parameter "tpm" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
360: |
A tag name 'mobj' is reused |
MISRAC2012-RULE_5_7-a-2 |
|
360: |
Identifier 'mobj' is hiding an identifier from global or namespace scope |
MISRAC2012-RULE_5_3-a-2 |
|
362: |
Operands of the '+' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
362: |
The left hand operand of the '-' operator has essentially enum type: thread_param_attr |
MISRAC2012-RULE_10_1-d-2 |
|
362: |
The right hand operand of the '-' operator has essentially enum type: thread_param_attr |
MISRAC2012-RULE_10_1-d-2 |
|
362: |
The value of a composite expression (32 bit essential type) is assigned to an object with wider essential type (64 bit) |
MISRAC2012-RULE_10_6-a-2 |
|
362: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
364: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
366: |
Conditional statement 'if' in a function 'set_tmem' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
366: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
367: |
Provide only one exit point in 'set_tmem' function |
MISRAC2012-RULE_15_5-a-4 |
|
368: |
Conditional statement 'if' in a function 'set_tmem' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
368: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
369: |
Provide only one exit point in 'set_tmem' function |
MISRAC2012-RULE_15_5-a-4 |
|
376: |
Provide only one exit point in 'set_tmem' function |
MISRAC2012-RULE_15_5-a-4 |
|
383: |
The variable 'threads' used as the left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
384: |
Pointer to void type should not be converted to pointer to object type 'struct optee_msg_arg *' |
MISRAC2012-RULE_11_5-a-4 |
|
385: |
Operands of the '*' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
385: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
387: |
Conditional statement 'if' in a function 'get_rpc_arg' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
387: |
Operands of the '>' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
388: |
Integer constant '0xFFFF0006' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
388: |
Provide only one exit point in 'get_rpc_arg' function |
MISRAC2012-RULE_15_5-a-4 |
|
390: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
391: |
A tag name 'mobj' is reused |
MISRAC2012-RULE_5_7-a-2 |
|
391: |
Identifier 'mobj' is hiding an identifier from global or namespace scope |
MISRAC2012-RULE_5_3-a-2 |
|
393: |
Conditional statement 'if' in a function 'get_rpc_arg' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
393: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
394: |
Integer constant '0xFFFF000C' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
394: |
Provide only one exit point in 'get_rpc_arg' function |
MISRAC2012-RULE_15_5-a-4 |
|
396: |
Pointer to void type should not be converted to pointer to object type 'struct optee_msg_arg *' |
MISRAC2012-RULE_11_5-a-4 |
|
397: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
399: |
Integer constant '0xFFFF000C' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
399: |
Provide only one exit point in 'get_rpc_arg' function |
MISRAC2012-RULE_15_5-a-4 |
|
406: |
Unused function's "memset" return value |
MISRAC2012-RULE_17_7-a-2 |
|
406: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
408: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with a narrower essential type (4 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
409: |
Integer constant '0xFFFF0000' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
419: |
Operands of the '+' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
419: |
The left hand operand of the '-' operator has essentially enum type: thread_param_attr |
MISRAC2012-RULE_10_1-d-2 |
|
419: |
The right hand operand of the '-' operator has essentially enum type: thread_param_attr |
MISRAC2012-RULE_10_1-d-2 |
|
419: |
The value of a composite expression (32 bit essential type) is assigned to an object with wider essential type (64 bit) |
MISRAC2012-RULE_10_6-a-2 |
|
419: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
429: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
429: |
The operands of a logical '||' in function 'get_rpc_arg' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
430: |
The operands of a logical '||' in function 'get_rpc_arg' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
432: |
Conditional statement 'if' in a function 'get_rpc_arg' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
432: |
The left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
432: |
The variable 'params' used as the left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
433: |
Integer constant '0xFFFF0006' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
433: |
Provide only one exit point in 'get_rpc_arg' function |
MISRAC2012-RULE_15_5-a-4 |
|
436: |
Conditional statement 'if' in a function 'get_rpc_arg' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
436: |
The left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
436: |
The variable 'params' used as the left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
437: |
Integer constant '0xFFFF0006' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
437: |
Provide only one exit point in 'get_rpc_arg' function |
MISRAC2012-RULE_15_5-a-4 |
|
439: |
Integer constant '0xFFFF0006' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
439: |
Provide only one exit point in 'get_rpc_arg' function |
MISRAC2012-RULE_15_5-a-4 |
|
443: |
Integer constant '0xFFFF0006' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
443: |
Provide only one exit point in 'get_rpc_arg' function |
MISRAC2012-RULE_15_5-a-4 |
|
450: |
Provide only one exit point in 'get_rpc_arg' function |
MISRAC2012-RULE_15_5-a-4 |
|
453: |
Pass parameter "arg" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
473: |
Missing statement or comment before terminating 'break' |
MISRAC2012-RULE_16_4-b-2 |
|
473: |
Missing statement or comment before terminating 'break' |
MISRAC2012-RULE_16_1-f-2 |
|
483: |
Integer constant '0xFFFF0000' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
483: |
Operands of the '|' operator have different essential types: 'signed char' and 'unsigned int' |
MISRAC2012-RULE_10_4-a-2 |
|
483: |
The array of type 'uint32_t [4]' shall not be partially initialized |
MISRAC2012-RULE_9_3-a-2 |
|
483: |
The left hand operand of the '|' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
485: |
Reserved name 'carg' used |
MISRAC2012-RULE_21_2-c-2 |
|
493: |
Conditional statement 'if' in a function 'thread_rpc_cmd' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
493: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
494: |
Provide only one exit point in 'thread_rpc_cmd' function |
MISRAC2012-RULE_15_5-a-4 |
|
496: |
The variable 'rpc_args' used as the left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
496: |
The variable 'rpc_args' used as the left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
499: |
Pointer to void type should not be converted to pointer to object type 'struct optee_msg_arg *' in function's argument |
MISRAC2012-RULE_11_5-a-4 |
|
499: |
Provide only one exit point in 'thread_rpc_cmd' function |
MISRAC2012-RULE_15_5-a-4 |
|
511: |
A tag name 'mobj' is reused |
MISRAC2012-RULE_5_7-a-2 |
|
511: |
Identifier 'mobj' is hiding an identifier from global or namespace scope |
MISRAC2012-RULE_5_3-a-2 |
|
511: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
513: |
Integer constant '0xFFFF0000' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
513: |
Operands of the '|' operator have different essential types: 'signed char' and 'unsigned int' |
MISRAC2012-RULE_10_4-a-2 |
|
513: |
The array of type 'uint32_t [4]' shall not be partially initialized |
MISRAC2012-RULE_9_3-a-2 |
|
513: |
The left hand operand of the '|' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
515: |
Reserved name 'carg' used |
MISRAC2012-RULE_21_2-c-2 |
|
522: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
523: |
The variable 'rpc_args' used as the left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
523: |
The variable 'rpc_args' used as the left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
528: |
Pass parameter "arg" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
529: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
531: |
A tag name 'mobj' is reused |
MISRAC2012-RULE_5_7-a-2 |
|
531: |
Identifier 'mobj' is hiding an identifier from global or namespace scope |
MISRAC2012-RULE_5_3-a-2 |
|
536: |
Conditional statement 'if' in a function 'get_rpc_alloc_res' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
536: |
Operands of the '!=' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
536: |
The left hand operand of the logical operator '||' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
536: |
The operands of a logical '||' in function 'get_rpc_alloc_res' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
537: |
Provide only one exit point in 'get_rpc_alloc_res' function |
MISRAC2012-RULE_15_5-a-4 |
|
539: |
Conditional statement 'if' in a function 'get_rpc_alloc_res' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
539: |
Operands of the '!=' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
539: |
The operands of a logical '&&' in function 'get_rpc_alloc_res' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
540: |
Operands of the '|' operator have different essential types: 'signed char' and 'unsigned char' |
MISRAC2012-RULE_10_4-a-2 |
|
540: |
The left hand operand of the '|' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
540: |
The operands of a logical '&&' in function 'get_rpc_alloc_res' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
541: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
542: |
Provide only one exit point in 'get_rpc_alloc_res' function |
MISRAC2012-RULE_15_5-a-4 |
|
548: |
Conditional statement 'if' in a function 'get_rpc_alloc_res' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
548: |
Operands of the '==' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
551: |
An 'else' statement in a function 'get_rpc_alloc_res' shall be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
553: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
555: |
Provide only one exit point in 'get_rpc_alloc_res' function |
MISRAC2012-RULE_15_5-a-4 |
|
560: |
Provide only one exit point in 'get_rpc_alloc_res' function |
MISRAC2012-RULE_15_5-a-4 |
|
572: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
574: |
Integer constant '0xFFFF0000' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
574: |
Operands of the '|' operator have different essential types: 'signed char' and 'unsigned int' |
MISRAC2012-RULE_10_4-a-2 |
|
574: |
The array of type 'uint32_t [4]' shall not be partially initialized |
MISRAC2012-RULE_9_3-a-2 |
|
574: |
The left hand operand of the '|' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
576: |
Reserved name 'carg' used |
MISRAC2012-RULE_21_2-c-2 |
|
581: |
Conditional statement 'if' in a function 'thread_rpc_alloc' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
581: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
582: |
Provide only one exit point in 'thread_rpc_alloc' function |
MISRAC2012-RULE_15_5-a-4 |
|
584: |
The variable 'rpc_args' used as the left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
584: |
The variable 'rpc_args' used as the left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
587: |
Pointer to void type should not be converted to pointer to object type 'struct optee_msg_arg *' in function's argument |
MISRAC2012-RULE_11_5-a-4 |
|
587: |
Provide only one exit point in 'thread_rpc_alloc' function |
MISRAC2012-RULE_15_5-a-4 |
|
602: |
Conditional statement 'if' in a function 'thread_rpc_alloc_kernel_payload' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
602: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
602: |
The operands of a logical '&&' in function 'thread_rpc_alloc_kernel_payload' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
603: |
Provide only one exit point in 'thread_rpc_alloc_kernel_payload' function |
MISRAC2012-RULE_15_5-a-4 |
|
605: |
Provide only one exit point in 'thread_rpc_alloc_kernel_payload' function |
MISRAC2012-RULE_15_5-a-4 |
|
608: |
A tag name 'mobj' is reused |
MISRAC2012-RULE_5_7-a-2 |
|
608: |
Identifier 'mobj' is hiding an identifier from global or namespace scope |
MISRAC2012-RULE_5_3-a-2 |
|
613: |
A tag name 'mobj' is reused |
MISRAC2012-RULE_5_7-a-2 |
|
613: |
Identifier 'mobj' is hiding an identifier from global or namespace scope |
MISRAC2012-RULE_5_3-a-2 |
|
624: |
A tag name 'mobj' is reused |
MISRAC2012-RULE_5_7-a-2 |
|
624: |
Identifier 'mobj' is hiding an identifier from global or namespace scope |
MISRAC2012-RULE_5_3-a-2 |
| /optee_os_MISRA/optee_os_ruchi393_core/arch/arm/kernel/thread_private.h |
|
46: |
Consider hiding the implementation of the structure 'thread_shm_cache_entry' in a translation unit 'abort.c' |
MISRAC2012-DIR_4_8-a-4 |
|
46: |
Consider hiding the implementation of the structure 'thread_shm_cache_entry' in a translation unit 'asm-defines.c' |
MISRAC2012-DIR_4_8-a-4 |
|
46: |
Consider hiding the implementation of the structure 'thread_shm_cache_entry' in a translation unit 'link_dummies_paged.c' |
MISRAC2012-DIR_4_8-a-4 |
|
46: |
Consider hiding the implementation of the structure 'thread_shm_cache_entry' in a translation unit 'spin_lock_debug.c' |
MISRAC2012-DIR_4_8-a-4 |
|
46: |
Consider hiding the implementation of the structure 'thread_shm_cache_entry' in a translation unit 'thread_optee_smc.c' |
MISRAC2012-DIR_4_8-a-4 |
|
47: |
A tag name 'mobj' is reused |
MISRAC2012-RULE_5_7-a-2 |
|
67: |
A tag name 'vfp_state' is reused |
MISRAC2012-RULE_5_7-a-2 |
|
102: |
'threads ' array size should be stated explicitly or defined implicitly by initialisation |
MISRAC2012-RULE_8_11-a-4 |
|
115: |
The 'thread_init_vbar' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
117: |
The 'thread_excp_vect' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
118: |
The 'thread_excp_vect_workaround' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
119: |
The 'thread_excp_vect_workaround_a15' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
120: |
The 'thread_excp_vect_end' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
128: |
The 'thread_std_smc_entry' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
129: |
Reserved name '__thread_std_smc_entry' used |
MISRAC2012-RULE_21_2-a-2 |
|
129: |
The names of the identifiers '__thread_std_smc_entry' and 'thread_std_smc_entry' (line: 128 in the 'thread_private.h' file)
differ only in the presence/absence of the underscore character
|
MISRAC2012-DIR_4_5-a-4 |
|
132: |
The 'thread_sp_alloc_and_run' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
142: |
The 'thread_resume' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
144: |
Reserved name '__thread_enter_user_mode' used |
MISRAC2012-RULE_21_2-a-2 |
|
144: |
The '__thread_enter_user_mode' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
144: |
The names of the identifiers '__thread_enter_user_mode' and 'thread_enter_user_mode' (line: 499 in the 'thread.h' file) differ
only in the presence/absence of the underscore character
|
MISRAC2012-DIR_4_5-a-4 |
|
160: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
165: |
The names of the identifiers 'thread_state_free' and 'THREAD_STATE_FREE' (line: 19 in the 'thread_private.h' file) differ
only in capitalization
|
MISRAC2012-DIR_4_5-a-4 |
|
207: |
The 'union' keyword shall not be used |
MISRAC2012-RULE_19_2-a-4 |
|
225: |
The 'thread_rpc' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
| /optee_os_MISRA/optee_os_ruchi393_core/arch/arm/kernel/timer_a64.c |
|
10: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
15: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
15: |
The argument number '1' ('essentially signed' type) is passed to the function 'thread_mask_exceptions' as a parameter with
the 'essentially unsigned' type
|
MISRAC2012-RULE_10_3-b-2 |
|
15: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
15: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
15: |
The left hand operand of the '>>' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
15: |
The left hand operand of the '>>' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
15: |
The left hand operand of the '|' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
15: |
The right hand operand of the '|' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
20: |
Conditional statement 'if' in a function 'generic_timer_start' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
21: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
24: |
Operands of the '/' operator have different essential types: 'unsigned int' and 'short' |
MISRAC2012-RULE_10_4-a-2 |
|
39: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
39: |
The argument number '1' ('essentially signed' type) is passed to the function 'thread_mask_exceptions' as a parameter with
the 'essentially unsigned' type
|
MISRAC2012-RULE_10_3-b-2 |
|
39: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
39: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
39: |
The left hand operand of the '>>' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
39: |
The left hand operand of the '>>' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
39: |
The left hand operand of the '|' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
39: |
The right hand operand of the '|' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
57: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
63: |
Operands of the '/' operator have different essential types: 'unsigned int' and 'short' |
MISRAC2012-RULE_10_4-a-2 |
| /optee_os_MISRA/optee_os_ruchi393_core/arch/arm/kernel/trace_ext.c |
|
12: |
The 'trace_ext_prefix' object is also defined in other translation units |
MISRAC2012-RULE_8_6-a-2 |
|
13: |
The 'trace_level' object is also defined in other translation units |
MISRAC2012-RULE_8_6-a-2 |
|
13: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
14: |
Global variable 'puts_lock' is being used only in a single function 'trace_ext_puts' |
MISRAC2012-RULE_8_9-a-4 |
|
14: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
16: |
Parameter 'str' is not used in function 'plat_trace_ext_puts' |
MISRAC2012-RULE_2_7-a-4 |
|
16: |
The function 'plat_trace_ext_puts' is referenced only in the translation unit where it is defined |
MISRAC2012-RULE_8_7-a-4 |
|
20: |
The 'trace_ext_puts' function is also defined in other translation units |
MISRAC2012-RULE_8_6-a-2 |
|
22: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
22: |
The argument number '1' ('essentially signed' type) is passed to the function 'thread_mask_exceptions' as a parameter with
the 'essentially unsigned' type
|
MISRAC2012-RULE_10_3-b-2 |
|
22: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
22: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
22: |
The left hand operand of the '>>' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
22: |
The left hand operand of the '>>' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
22: |
The left hand operand of the '|' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
22: |
The right hand operand of the '|' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
27: |
The operands of a logical '&&' in function 'trace_ext_puts' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
36: |
Conditional statement 'if' in a function 'trace_ext_puts' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
37: |
The argument number '1' ('essentially character' type) is passed to the function 'console_putc' as a parameter with the 'essentially
signed' type
|
MISRAC2012-RULE_10_3-b-2 |
|
39: |
'for' statement in a function 'trace_ext_puts' should be followed by a block |
MISRAC2012-RULE_15_6-a-2 |
|
39: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
40: |
The argument number '1' ('essentially character' type) is passed to the function 'console_putc' as a parameter with the 'essentially
signed' type
|
MISRAC2012-RULE_10_3-b-2 |
|
44: |
Conditional statement 'if' in a function 'trace_ext_puts' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
50: |
The 'trace_ext_get_thread_id' function is also defined in other translation units |
MISRAC2012-RULE_8_6-a-2 |
|
50: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
| /optee_os_MISRA/optee_os_ruchi393_core/arch/arm/kernel/unwind_arm64.c |
|
54: |
Operands of the '+' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
54: |
Pointer to void type should not be converted to pointer to object type 'vaddr_t *' |
MISRAC2012-RULE_11_5-a-4 |
|
55: |
Conditional statement 'if' in a function 'unw_get_kernel_stack' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
55: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
56: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
62: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
63: |
Operands of the '+' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
63: |
Pointer to void type should not be converted to pointer to object type 'vaddr_t *' |
MISRAC2012-RULE_11_5-a-4 |
|
64: |
Conditional statement 'if' in a function 'unw_get_kernel_stack' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
64: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
65: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
70: |
Provide only one exit point in 'unw_get_kernel_stack' function |
MISRAC2012-RULE_15_5-a-4 |
|
73: |
'free' function should not be used |
MISRAC2012-RULE_21_3-a-2 |
|
73: |
'free' function should not be used |
MISRAC2012-DIR_4_12-a-2 |
|
74: |
Provide only one exit point in 'unw_get_kernel_stack' function |
MISRAC2012-RULE_15_5-a-4 |
|
89: |
Unused function's "get_stack_hard_limits" return value |
MISRAC2012-RULE_17_7-a-2 |
| /optee_os_MISRA/optee_os_ruchi393_core/arch/arm/kernel/unwind_private.h |
|
1: |
Multiple include guard should appear as first #ifndef or #if preprocessor directive |
MISRAC2012-DIR_4_10-a-2 |
|
14: |
Conditional statement 'if' in a function 'unw_grow' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
15: |
Provide only one exit point in 'unw_grow' function |
MISRAC2012-RULE_15_5-a-4 |
|
17: |
Operands of the '*' operator have different essential types: 'signed char' and 'unsigned long' |
MISRAC2012-RULE_10_4-a-2 |
|
17: |
Operands of the '-' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
17: |
Operands of the '-' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
18: |
'realloc' function should not be used |
MISRAC2012-RULE_21_3-a-2 |
|
18: |
'realloc' function should not be used |
MISRAC2012-DIR_4_12-a-2 |
|
20: |
Conditional statement 'if' in a function 'unw_grow' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
20: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
22: |
Provide only one exit point in 'unw_grow' function |
MISRAC2012-RULE_15_5-a-4 |
| /optee_os_MISRA/optee_os_ruchi393_core/arch/arm/kernel/vfp.c |
|
40: |
Potential macro 'FPEXC_EN' used as '1' parameter of potential macro 'assert' |
MISRAC2012-RULE_20_12-a-2 |
|
70: |
Operands of the '&' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
70: |
Operands of the '&' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
70: |
The expression of the 'essentially unsigned' type is returned from function 'vfp_is_enabled' with the 'essentially Boolean'
type
|
MISRAC2012-RULE_10_3-b-2 |
|
70: |
The right hand operand of the '&' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
70: |
The right hand operand of the '&' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
70: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
77: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
77: |
Operands of the '|=' operator have different essential types: 'unsigned int' and 'int' |
MISRAC2012-RULE_10_4-a-2 |
|
77: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
77: |
The right hand operand of the '|=' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
86: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
86: |
Operands of the '&=' operator have different essential types: 'unsigned int' and 'int' |
MISRAC2012-RULE_10_4-a-2 |
|
86: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
86: |
The operand of the '~' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
86: |
The right hand operand of the '&=' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
99: |
Operands of the '&' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
99: |
Operands of the '&' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
99: |
The left hand operand of the logical operator '||' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
99: |
The right hand operand of the '&' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
99: |
The right hand operand of the '&' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
99: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
110: |
Pass parameter "state" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
| /optee_os_MISRA/optee_os_ruchi393_core/arch/arm/kernel/vfp_private.h |
|
11: |
The 'vfp_save_extension_regs' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
12: |
The 'vfp_restore_extension_regs' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
13: |
The 'vfp_clear_extension_regs' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
| /optee_os_MISRA/optee_os_ruchi393_core/arch/arm/mm/core_mmu.c |
|
51: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
52: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
66: |
Do not define function-like macro: MEMACCESS_AREA |
MISRAC2012-DIR_4_9-a-4 |
|
66: |
Each instance of parameter: 'a' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
66: |
Each instance of parameter: 's' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
86: |
Potential macro 'TEE_SDP_TEST_MEM_BASE' used as '1' parameter of potential macro 'register_sdp_mem' |
MISRAC2012-RULE_20_12-a-2 |
|
91: |
Declaration of object '____keep_init___scattered_array_0phys_mem_map_core_arch_arm_mm_core_mmu_c' does not precede its definition |
MISRAC2012-RULE_8_4-a-2 |
|
91: |
Identifier '__scattered_array_0phys_mem_map' is being reused |
MISRAC2012-RULE_5_9-b-4 |
|
91: |
Operands of the '-' operator have different essential types: 'unsigned long' and 'int' |
MISRAC2012-RULE_10_4-a-2 |
|
91: |
Pointer to object type 'const struct core_mmu_phys_mem *' should not be converted to integral type 'unsigned long' |
MISRAC2012-RULE_11_4-a-4 |
|
91: |
Potential macro 'TEE_RAM_START' used as '2' parameter of potential macro 'register_phys_mem_ul' |
MISRAC2012-RULE_20_12-a-2 |
|
91: |
Reserved name '____keep_init___scattered_array_0phys_mem_map_core_arch_arm_mm_core_mmu_c' used |
MISRAC2012-RULE_21_2-a-2 |
|
91: |
Reserved name '____keep_init___scattered_array_0phys_mem_mapcore_arch_arm_mm_core_mmu_c' used |
MISRAC2012-RULE_21_2-a-2 |
|
91: |
Reserved name '__scattered_array_0phys_mem_map' used |
MISRAC2012-RULE_21_2-a-2 |
|
91: |
Reserved name '__scattered_array_0phys_mem_map' used |
MISRAC2012-RULE_21_2-a-2 |
|
91: |
The '____keep_init___scattered_array_0phys_mem_mapcore_arch_arm_mm_core_mmu_c' object has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
91: |
The identifier '____keep_init___scattered_array_0phys_mem_map_core_arch_arm_mm_core_mmu_c' has the same first 31 characters
of the name as the identifier '____keep_init___scattered_array_0phys_mem_mapcore_arch_arm_mm_core_mmu_c' defined in the 'core_mmu.c'
file in line '91'
|
MISRAC2012-RULE_5_1-a-2 |
|
91: |
The names of the identifiers '____keep_init___scattered_array_0phys_mem_map_core_arch_arm_mm_core_mmu_c' and '____keep_init___scattered_array_0phys_mem_mapcore_arch_arm_mm_core_mmu_c'
(line: 91 in the 'core_mmu.c' file) differ only in the presence/absence of the underscore character
|
MISRAC2012-DIR_4_5-a-4 |
|
93: |
Declaration of object '____keep_init___scattered_array_1phys_mem_map_core_arch_arm_mm_core_mmu_c' does not precede its definition |
MISRAC2012-RULE_8_4-a-2 |
|
93: |
Identifier '__scattered_array_1phys_mem_map' is being reused |
MISRAC2012-RULE_5_9-b-4 |
|
93: |
Pointer to object type 'const struct core_mmu_phys_mem *' should not be converted to integral type 'unsigned long' |
MISRAC2012-RULE_11_4-a-4 |
|
93: |
Potential macro 'VCORE_UNPG_RX_PA' used as '2' parameter of potential macro 'register_phys_mem_ul' |
MISRAC2012-RULE_20_12-a-2 |
|
93: |
Reserved name '____keep_init___scattered_array_1phys_mem_map_core_arch_arm_mm_core_mmu_c' used |
MISRAC2012-RULE_21_2-a-2 |
|
93: |
Reserved name '____keep_init___scattered_array_1phys_mem_mapcore_arch_arm_mm_core_mmu_c' used |
MISRAC2012-RULE_21_2-a-2 |
|
93: |
Reserved name '__scattered_array_1phys_mem_map' used |
MISRAC2012-RULE_21_2-a-2 |
|
93: |
Reserved name '__scattered_array_1phys_mem_map' used |
MISRAC2012-RULE_21_2-a-2 |
|
93: |
The '____keep_init___scattered_array_1phys_mem_mapcore_arch_arm_mm_core_mmu_c' object has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
93: |
The identifier '____keep_init___scattered_array_1phys_mem_map_core_arch_arm_mm_core_mmu_c' has the same first 31 characters
of the name as the identifier '____keep_init___scattered_array_0phys_mem_map_core_arch_arm_mm_core_mmu_c' defined in the 'core_mmu.c'
file in line '91'
|
MISRAC2012-RULE_5_1-a-2 |
|
93: |
The identifier '____keep_init___scattered_array_1phys_mem_map_core_arch_arm_mm_core_mmu_c' has the same first 31 characters
of the name as the identifier '____keep_init___scattered_array_0phys_mem_mapcore_arch_arm_mm_core_mmu_c' defined in the 'core_mmu.c'
file in line '91'
|
MISRAC2012-RULE_5_1-a-2 |
|
93: |
The identifier '____keep_init___scattered_array_1phys_mem_map_core_arch_arm_mm_core_mmu_c' has the same first 31 characters
of the name as the identifier '____keep_init___scattered_array_1phys_mem_mapcore_arch_arm_mm_core_mmu_c' defined in the 'core_mmu.c'
file in line '93'
|
MISRAC2012-RULE_5_1-a-2 |
|
93: |
The identifier '____keep_init___scattered_array_1phys_mem_mapcore_arch_arm_mm_core_mmu_c' has the same first 31 characters
of the name as the identifier '____keep_init___scattered_array_0phys_mem_map_core_arch_arm_mm_core_mmu_c' defined in the 'core_mmu.c'
file in line '91'
|
MISRAC2012-RULE_5_1-a-2 |
|
93: |
The identifier '____keep_init___scattered_array_1phys_mem_mapcore_arch_arm_mm_core_mmu_c' has the same first 31 characters
of the name as the identifier '____keep_init___scattered_array_0phys_mem_mapcore_arch_arm_mm_core_mmu_c' defined in the 'core_mmu.c'
file in line '91'
|
MISRAC2012-RULE_5_1-a-2 |
|
93: |
The names of the identifiers '____keep_init___scattered_array_1phys_mem_map_core_arch_arm_mm_core_mmu_c' and '____keep_init___scattered_array_1phys_mem_mapcore_arch_arm_mm_core_mmu_c'
(line: 93 in the 'core_mmu.c' file) differ only in the presence/absence of the underscore character
|
MISRAC2012-DIR_4_5-a-4 |
|
95: |
Declaration of object '____keep_init___scattered_array_2phys_mem_map_core_arch_arm_mm_core_mmu_c' does not precede its definition |
MISRAC2012-RULE_8_4-a-2 |
|
95: |
Identifier '__scattered_array_2phys_mem_map' is being reused |
MISRAC2012-RULE_5_9-b-4 |
|
95: |
Pointer to object type 'const struct core_mmu_phys_mem *' should not be converted to integral type 'unsigned long' |
MISRAC2012-RULE_11_4-a-4 |
|
95: |
Potential macro 'VCORE_UNPG_RO_PA' used as '2' parameter of potential macro 'register_phys_mem_ul' |
MISRAC2012-RULE_20_12-a-2 |
|
95: |
Reserved name '____keep_init___scattered_array_2phys_mem_map_core_arch_arm_mm_core_mmu_c' used |
MISRAC2012-RULE_21_2-a-2 |
|
95: |
Reserved name '____keep_init___scattered_array_2phys_mem_mapcore_arch_arm_mm_core_mmu_c' used |
MISRAC2012-RULE_21_2-a-2 |
|
95: |
Reserved name '__scattered_array_2phys_mem_map' used |
MISRAC2012-RULE_21_2-a-2 |
|
95: |
Reserved name '__scattered_array_2phys_mem_map' used |
MISRAC2012-RULE_21_2-a-2 |
|
95: |
The '____keep_init___scattered_array_2phys_mem_mapcore_arch_arm_mm_core_mmu_c' object has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
95: |
The identifier '____keep_init___scattered_array_2phys_mem_map_core_arch_arm_mm_core_mmu_c' has the same first 31 characters
of the name as the identifier '____keep_init___scattered_array_0phys_mem_map_core_arch_arm_mm_core_mmu_c' defined in the 'core_mmu.c'
file in line '91'
|
MISRAC2012-RULE_5_1-a-2 |
|
95: |
The identifier '____keep_init___scattered_array_2phys_mem_map_core_arch_arm_mm_core_mmu_c' has the same first 31 characters
of the name as the identifier '____keep_init___scattered_array_0phys_mem_mapcore_arch_arm_mm_core_mmu_c' defined in the 'core_mmu.c'
file in line '91'
|
MISRAC2012-RULE_5_1-a-2 |
|
95: |
The identifier '____keep_init___scattered_array_2phys_mem_map_core_arch_arm_mm_core_mmu_c' has the same first 31 characters
of the name as the identifier '____keep_init___scattered_array_1phys_mem_map_core_arch_arm_mm_core_mmu_c' defined in the 'core_mmu.c'
file in line '93'
|
MISRAC2012-RULE_5_1-a-2 |
|
95: |
The identifier '____keep_init___scattered_array_2phys_mem_map_core_arch_arm_mm_core_mmu_c' has the same first 31 characters
of the name as the identifier '____keep_init___scattered_array_1phys_mem_mapcore_arch_arm_mm_core_mmu_c' defined in the 'core_mmu.c'
file in line '93'
|
MISRAC2012-RULE_5_1-a-2 |
|
95: |
The identifier '____keep_init___scattered_array_2phys_mem_map_core_arch_arm_mm_core_mmu_c' has the same first 31 characters
of the name as the identifier '____keep_init___scattered_array_2phys_mem_mapcore_arch_arm_mm_core_mmu_c' defined in the 'core_mmu.c'
file in line '95'
|
MISRAC2012-RULE_5_1-a-2 |
|
95: |
The identifier '____keep_init___scattered_array_2phys_mem_mapcore_arch_arm_mm_core_mmu_c' has the same first 31 characters
of the name as the identifier '____keep_init___scattered_array_0phys_mem_map_core_arch_arm_mm_core_mmu_c' defined in the 'core_mmu.c'
file in line '91'
|
MISRAC2012-RULE_5_1-a-2 |
|
95: |
The identifier '____keep_init___scattered_array_2phys_mem_mapcore_arch_arm_mm_core_mmu_c' has the same first 31 characters
of the name as the identifier '____keep_init___scattered_array_0phys_mem_mapcore_arch_arm_mm_core_mmu_c' defined in the 'core_mmu.c'
file in line '91'
|
MISRAC2012-RULE_5_1-a-2 |
|
95: |
The identifier '____keep_init___scattered_array_2phys_mem_mapcore_arch_arm_mm_core_mmu_c' has the same first 31 characters
of the name as the identifier '____keep_init___scattered_array_1phys_mem_map_core_arch_arm_mm_core_mmu_c' defined in the 'core_mmu.c'
file in line '93'
|
MISRAC2012-RULE_5_1-a-2 |
|
95: |
The identifier '____keep_init___scattered_array_2phys_mem_mapcore_arch_arm_mm_core_mmu_c' has the same first 31 characters
of the name as the identifier '____keep_init___scattered_array_1phys_mem_mapcore_arch_arm_mm_core_mmu_c' defined in the 'core_mmu.c'
file in line '93'
|
MISRAC2012-RULE_5_1-a-2 |
|
95: |
The names of the identifiers '____keep_init___scattered_array_2phys_mem_map_core_arch_arm_mm_core_mmu_c' and '____keep_init___scattered_array_2phys_mem_mapcore_arch_arm_mm_core_mmu_c'
(line: 95 in the 'core_mmu.c' file) differ only in the presence/absence of the underscore character
|
MISRAC2012-DIR_4_5-a-4 |
|
99: |
Potential macro 'VCORE_UNPG_RW_PA' used as '2' parameter of potential macro 'register_phys_mem_ul' |
MISRAC2012-RULE_20_12-a-2 |
|
101: |
Potential macro 'VCORE_NEX_RW_PA' used as '2' parameter of potential macro 'register_phys_mem_ul' |
MISRAC2012-RULE_20_12-a-2 |
|
104: |
Declaration of object '____keep_init___scattered_array_3phys_mem_map_core_arch_arm_mm_core_mmu_c' does not precede its definition |
MISRAC2012-RULE_8_4-a-2 |
|
104: |
Identifier '__scattered_array_3phys_mem_map' is being reused |
MISRAC2012-RULE_5_9-b-4 |
|
104: |
Pointer to object type 'const struct core_mmu_phys_mem *' should not be converted to integral type 'unsigned long' |
MISRAC2012-RULE_11_4-a-4 |
|
104: |
Potential macro 'VCORE_UNPG_RW_PA' used as '2' parameter of potential macro 'register_phys_mem_ul' |
MISRAC2012-RULE_20_12-a-2 |
|
104: |
Reserved name '____keep_init___scattered_array_3phys_mem_map_core_arch_arm_mm_core_mmu_c' used |
MISRAC2012-RULE_21_2-a-2 |
|
104: |
Reserved name '____keep_init___scattered_array_3phys_mem_mapcore_arch_arm_mm_core_mmu_c' used |
MISRAC2012-RULE_21_2-a-2 |
|
104: |
Reserved name '__scattered_array_3phys_mem_map' used |
MISRAC2012-RULE_21_2-a-2 |
|
104: |
Reserved name '__scattered_array_3phys_mem_map' used |
MISRAC2012-RULE_21_2-a-2 |
|
104: |
The '____keep_init___scattered_array_3phys_mem_mapcore_arch_arm_mm_core_mmu_c' object has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
104: |
The identifier '____keep_init___scattered_array_3phys_mem_map_core_arch_arm_mm_core_mmu_c' has the same first 31 characters
of the name as the identifier '____keep_init___scattered_array_0phys_mem_map_core_arch_arm_mm_core_mmu_c' defined in the 'core_mmu.c'
file in line '91'
|
MISRAC2012-RULE_5_1-a-2 |
|
104: |
The identifier '____keep_init___scattered_array_3phys_mem_map_core_arch_arm_mm_core_mmu_c' has the same first 31 characters
of the name as the identifier '____keep_init___scattered_array_0phys_mem_mapcore_arch_arm_mm_core_mmu_c' defined in the 'core_mmu.c'
file in line '91'
|
MISRAC2012-RULE_5_1-a-2 |
|
104: |
The identifier '____keep_init___scattered_array_3phys_mem_map_core_arch_arm_mm_core_mmu_c' has the same first 31 characters
of the name as the identifier '____keep_init___scattered_array_1phys_mem_map_core_arch_arm_mm_core_mmu_c' defined in the 'core_mmu.c'
file in line '93'
|
MISRAC2012-RULE_5_1-a-2 |
|
104: |
The identifier '____keep_init___scattered_array_3phys_mem_map_core_arch_arm_mm_core_mmu_c' has the same first 31 characters
of the name as the identifier '____keep_init___scattered_array_1phys_mem_mapcore_arch_arm_mm_core_mmu_c' defined in the 'core_mmu.c'
file in line '93'
|
MISRAC2012-RULE_5_1-a-2 |
|
104: |
The identifier '____keep_init___scattered_array_3phys_mem_map_core_arch_arm_mm_core_mmu_c' has the same first 31 characters
of the name as the identifier '____keep_init___scattered_array_2phys_mem_map_core_arch_arm_mm_core_mmu_c' defined in the 'core_mmu.c'
file in line '95'
|
MISRAC2012-RULE_5_1-a-2 |
|
104: |
The identifier '____keep_init___scattered_array_3phys_mem_map_core_arch_arm_mm_core_mmu_c' has the same first 31 characters
of the name as the identifier '____keep_init___scattered_array_2phys_mem_mapcore_arch_arm_mm_core_mmu_c' defined in the 'core_mmu.c'
file in line '95'
|
MISRAC2012-RULE_5_1-a-2 |
|
104: |
The identifier '____keep_init___scattered_array_3phys_mem_map_core_arch_arm_mm_core_mmu_c' has the same first 31 characters
of the name as the identifier '____keep_init___scattered_array_3phys_mem_mapcore_arch_arm_mm_core_mmu_c' defined in the 'core_mmu.c'
file in line '104'
|
MISRAC2012-RULE_5_1-a-2 |
|
104: |
The identifier '____keep_init___scattered_array_3phys_mem_mapcore_arch_arm_mm_core_mmu_c' has the same first 31 characters
of the name as the identifier '____keep_init___scattered_array_0phys_mem_map_core_arch_arm_mm_core_mmu_c' defined in the 'core_mmu.c'
file in line '91'
|
MISRAC2012-RULE_5_1-a-2 |
|
104: |
The identifier '____keep_init___scattered_array_3phys_mem_mapcore_arch_arm_mm_core_mmu_c' has the same first 31 characters
of the name as the identifier '____keep_init___scattered_array_0phys_mem_mapcore_arch_arm_mm_core_mmu_c' defined in the 'core_mmu.c'
file in line '91'
|
MISRAC2012-RULE_5_1-a-2 |
|
104: |
The identifier '____keep_init___scattered_array_3phys_mem_mapcore_arch_arm_mm_core_mmu_c' has the same first 31 characters
of the name as the identifier '____keep_init___scattered_array_1phys_mem_map_core_arch_arm_mm_core_mmu_c' defined in the 'core_mmu.c'
file in line '93'
|
MISRAC2012-RULE_5_1-a-2 |
|
104: |
The identifier '____keep_init___scattered_array_3phys_mem_mapcore_arch_arm_mm_core_mmu_c' has the same first 31 characters
of the name as the identifier '____keep_init___scattered_array_1phys_mem_mapcore_arch_arm_mm_core_mmu_c' defined in the 'core_mmu.c'
file in line '93'
|
MISRAC2012-RULE_5_1-a-2 |
|
104: |
The identifier '____keep_init___scattered_array_3phys_mem_mapcore_arch_arm_mm_core_mmu_c' has the same first 31 characters
of the name as the identifier '____keep_init___scattered_array_2phys_mem_map_core_arch_arm_mm_core_mmu_c' defined in the 'core_mmu.c'
file in line '95'
|
MISRAC2012-RULE_5_1-a-2 |
|
104: |
The identifier '____keep_init___scattered_array_3phys_mem_mapcore_arch_arm_mm_core_mmu_c' has the same first 31 characters
of the name as the identifier '____keep_init___scattered_array_2phys_mem_mapcore_arch_arm_mm_core_mmu_c' defined in the 'core_mmu.c'
file in line '95'
|
MISRAC2012-RULE_5_1-a-2 |
|
104: |
The names of the identifiers '____keep_init___scattered_array_3phys_mem_map_core_arch_arm_mm_core_mmu_c' and '____keep_init___scattered_array_3phys_mem_mapcore_arch_arm_mm_core_mmu_c'
(line: 104 in the 'core_mmu.c' file) differ only in the presence/absence of the underscore character
|
MISRAC2012-DIR_4_5-a-4 |
|
109: |
Potential macro 'VCORE_INIT_RX_PA' used as '2' parameter of potential macro 'register_phys_mem_ul' |
MISRAC2012-RULE_20_12-a-2 |
|
111: |
Potential macro 'VCORE_INIT_RO_PA' used as '2' parameter of potential macro 'register_phys_mem_ul' |
MISRAC2012-RULE_20_12-a-2 |
|
115: |
Potential macro 'TEE_RAM_START' used as '2' parameter of potential macro 'register_phys_mem' |
MISRAC2012-RULE_20_12-a-2 |
|
119: |
Potential macro 'TZDRAM_BASE' used as '2' parameter of potential macro 'register_phys_mem' |
MISRAC2012-RULE_20_12-a-2 |
|
124: |
Potential macro 'ASAN_MAP_PA' used as '2' parameter of potential macro 'register_phys_mem_ul' |
MISRAC2012-RULE_20_12-a-2 |
|
129: |
Declaration of object '____keep_init___scattered_array_4phys_mem_map_core_arch_arm_mm_core_mmu_c' does not precede its definition |
MISRAC2012-RULE_8_4-a-2 |
|
129: |
Identifier '__scattered_array_4phys_mem_map' is being reused |
MISRAC2012-RULE_5_9-b-4 |
|
129: |
Operands of the '+' operator have different essential types: 'int' and 'unsigned char' |
MISRAC2012-RULE_10_4-a-2 |
|
129: |
Operands of the '-' operator have different essential types: 'int' and 'unsigned int' |
MISRAC2012-RULE_10_4-a-2 |
|
129: |
Operands of the '-' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
129: |
Pointer to object type 'const struct core_mmu_phys_mem *' should not be converted to integral type 'unsigned long' |
MISRAC2012-RULE_11_4-a-4 |
|
129: |
Potential macro 'TA_RAM_START' used as '2' parameter of potential macro 'register_phys_mem' |
MISRAC2012-RULE_20_12-a-2 |
|
129: |
Reserved name '____keep_init___scattered_array_4phys_mem_map_core_arch_arm_mm_core_mmu_c' used |
MISRAC2012-RULE_21_2-a-2 |
|
129: |
Reserved name '____keep_init___scattered_array_4phys_mem_mapcore_arch_arm_mm_core_mmu_c' used |
MISRAC2012-RULE_21_2-a-2 |
|
129: |
Reserved name '__scattered_array_4phys_mem_map' used |
MISRAC2012-RULE_21_2-a-2 |
|
129: |
Reserved name '__scattered_array_4phys_mem_map' used |
MISRAC2012-RULE_21_2-a-2 |
|
129: |
The '____keep_init___scattered_array_4phys_mem_mapcore_arch_arm_mm_core_mmu_c' object has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
129: |
The identifier '____keep_init___scattered_array_4phys_mem_map_core_arch_arm_mm_core_mmu_c' has the same first 31 characters
of the name as the identifier '____keep_init___scattered_array_0phys_mem_map_core_arch_arm_mm_core_mmu_c' defined in the 'core_mmu.c'
file in line '91'
|
MISRAC2012-RULE_5_1-a-2 |
|
129: |
The identifier '____keep_init___scattered_array_4phys_mem_map_core_arch_arm_mm_core_mmu_c' has the same first 31 characters
of the name as the identifier '____keep_init___scattered_array_0phys_mem_mapcore_arch_arm_mm_core_mmu_c' defined in the 'core_mmu.c'
file in line '91'
|
MISRAC2012-RULE_5_1-a-2 |
|
129: |
The identifier '____keep_init___scattered_array_4phys_mem_map_core_arch_arm_mm_core_mmu_c' has the same first 31 characters
of the name as the identifier '____keep_init___scattered_array_1phys_mem_map_core_arch_arm_mm_core_mmu_c' defined in the 'core_mmu.c'
file in line '93'
|
MISRAC2012-RULE_5_1-a-2 |
|
129: |
The identifier '____keep_init___scattered_array_4phys_mem_map_core_arch_arm_mm_core_mmu_c' has the same first 31 characters
of the name as the identifier '____keep_init___scattered_array_1phys_mem_mapcore_arch_arm_mm_core_mmu_c' defined in the 'core_mmu.c'
file in line '93'
|
MISRAC2012-RULE_5_1-a-2 |
|
129: |
The identifier '____keep_init___scattered_array_4phys_mem_map_core_arch_arm_mm_core_mmu_c' has the same first 31 characters
of the name as the identifier '____keep_init___scattered_array_2phys_mem_map_core_arch_arm_mm_core_mmu_c' defined in the 'core_mmu.c'
file in line '95'
|
MISRAC2012-RULE_5_1-a-2 |
|
129: |
The identifier '____keep_init___scattered_array_4phys_mem_map_core_arch_arm_mm_core_mmu_c' has the same first 31 characters
of the name as the identifier '____keep_init___scattered_array_2phys_mem_mapcore_arch_arm_mm_core_mmu_c' defined in the 'core_mmu.c'
file in line '95'
|
MISRAC2012-RULE_5_1-a-2 |
|
129: |
The identifier '____keep_init___scattered_array_4phys_mem_map_core_arch_arm_mm_core_mmu_c' has the same first 31 characters
of the name as the identifier '____keep_init___scattered_array_3phys_mem_map_core_arch_arm_mm_core_mmu_c' defined in the 'core_mmu.c'
file in line '104'
|
MISRAC2012-RULE_5_1-a-2 |
|
129: |
The identifier '____keep_init___scattered_array_4phys_mem_map_core_arch_arm_mm_core_mmu_c' has the same first 31 characters
of the name as the identifier '____keep_init___scattered_array_3phys_mem_mapcore_arch_arm_mm_core_mmu_c' defined in the 'core_mmu.c'
file in line '104'
|
MISRAC2012-RULE_5_1-a-2 |
|
129: |
The identifier '____keep_init___scattered_array_4phys_mem_map_core_arch_arm_mm_core_mmu_c' has the same first 31 characters
of the name as the identifier '____keep_init___scattered_array_4phys_mem_mapcore_arch_arm_mm_core_mmu_c' defined in the 'core_mmu.c'
file in line '129'
|
MISRAC2012-RULE_5_1-a-2 |
|
129: |
The identifier '____keep_init___scattered_array_4phys_mem_mapcore_arch_arm_mm_core_mmu_c' has the same first 31 characters
of the name as the identifier '____keep_init___scattered_array_0phys_mem_map_core_arch_arm_mm_core_mmu_c' defined in the 'core_mmu.c'
file in line '91'
|
MISRAC2012-RULE_5_1-a-2 |
|
129: |
The identifier '____keep_init___scattered_array_4phys_mem_mapcore_arch_arm_mm_core_mmu_c' has the same first 31 characters
of the name as the identifier '____keep_init___scattered_array_0phys_mem_mapcore_arch_arm_mm_core_mmu_c' defined in the 'core_mmu.c'
file in line '91'
|
MISRAC2012-RULE_5_1-a-2 |
|
129: |
The identifier '____keep_init___scattered_array_4phys_mem_mapcore_arch_arm_mm_core_mmu_c' has the same first 31 characters
of the name as the identifier '____keep_init___scattered_array_1phys_mem_map_core_arch_arm_mm_core_mmu_c' defined in the 'core_mmu.c'
file in line '93'
|
MISRAC2012-RULE_5_1-a-2 |
|
129: |
The identifier '____keep_init___scattered_array_4phys_mem_mapcore_arch_arm_mm_core_mmu_c' has the same first 31 characters
of the name as the identifier '____keep_init___scattered_array_1phys_mem_mapcore_arch_arm_mm_core_mmu_c' defined in the 'core_mmu.c'
file in line '93'
|
MISRAC2012-RULE_5_1-a-2 |
|
129: |
The identifier '____keep_init___scattered_array_4phys_mem_mapcore_arch_arm_mm_core_mmu_c' has the same first 31 characters
of the name as the identifier '____keep_init___scattered_array_2phys_mem_map_core_arch_arm_mm_core_mmu_c' defined in the 'core_mmu.c'
file in line '95'
|
MISRAC2012-RULE_5_1-a-2 |
|
129: |
The identifier '____keep_init___scattered_array_4phys_mem_mapcore_arch_arm_mm_core_mmu_c' has the same first 31 characters
of the name as the identifier '____keep_init___scattered_array_2phys_mem_mapcore_arch_arm_mm_core_mmu_c' defined in the 'core_mmu.c'
file in line '95'
|
MISRAC2012-RULE_5_1-a-2 |
|
129: |
The identifier '____keep_init___scattered_array_4phys_mem_mapcore_arch_arm_mm_core_mmu_c' has the same first 31 characters
of the name as the identifier '____keep_init___scattered_array_3phys_mem_map_core_arch_arm_mm_core_mmu_c' defined in the 'core_mmu.c'
file in line '104'
|
MISRAC2012-RULE_5_1-a-2 |
|
129: |
The identifier '____keep_init___scattered_array_4phys_mem_mapcore_arch_arm_mm_core_mmu_c' has the same first 31 characters
of the name as the identifier '____keep_init___scattered_array_3phys_mem_mapcore_arch_arm_mm_core_mmu_c' defined in the 'core_mmu.c'
file in line '104'
|
MISRAC2012-RULE_5_1-a-2 |
|
129: |
The left hand operand of the '&' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
129: |
The names of the identifiers '____keep_init___scattered_array_4phys_mem_map_core_arch_arm_mm_core_mmu_c' and '____keep_init___scattered_array_4phys_mem_mapcore_arch_arm_mm_core_mmu_c'
(line: 129 in the 'core_mmu.c' file) differ only in the presence/absence of the underscore character
|
MISRAC2012-DIR_4_5-a-4 |
|
129: |
The operand of the '~' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
129: |
The right hand operand of the '&' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
132: |
Declaration of object '____keep_init___scattered_array_5phys_mem_map_core_arch_arm_mm_core_mmu_c' does not precede its definition |
MISRAC2012-RULE_8_4-a-2 |
|
132: |
Identifier '__scattered_array_5phys_mem_map' is being reused |
MISRAC2012-RULE_5_9-b-4 |
|
132: |
Pointer to object type 'const struct core_mmu_phys_mem *' should not be converted to integral type 'unsigned long' |
MISRAC2012-RULE_11_4-a-4 |
|
132: |
Potential macro 'TEE_SHMEM_START' used as '2' parameter of potential macro 'register_phys_mem' |
MISRAC2012-RULE_20_12-a-2 |
|
132: |
Reserved name '____keep_init___scattered_array_5phys_mem_map_core_arch_arm_mm_core_mmu_c' used |
MISRAC2012-RULE_21_2-a-2 |
|
132: |
Reserved name '____keep_init___scattered_array_5phys_mem_mapcore_arch_arm_mm_core_mmu_c' used |
MISRAC2012-RULE_21_2-a-2 |
|
132: |
Reserved name '__scattered_array_5phys_mem_map' used |
MISRAC2012-RULE_21_2-a-2 |
|
132: |
Reserved name '__scattered_array_5phys_mem_map' used |
MISRAC2012-RULE_21_2-a-2 |
|
132: |
The '____keep_init___scattered_array_5phys_mem_mapcore_arch_arm_mm_core_mmu_c' object has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
132: |
The identifier '____keep_init___scattered_array_5phys_mem_map_core_arch_arm_mm_core_mmu_c' has the same first 31 characters
of the name as the identifier '____keep_init___scattered_array_0phys_mem_map_core_arch_arm_mm_core_mmu_c' defined in the 'core_mmu.c'
file in line '91'
|
MISRAC2012-RULE_5_1-a-2 |
|
132: |
The identifier '____keep_init___scattered_array_5phys_mem_map_core_arch_arm_mm_core_mmu_c' has the same first 31 characters
of the name as the identifier '____keep_init___scattered_array_0phys_mem_mapcore_arch_arm_mm_core_mmu_c' defined in the 'core_mmu.c'
file in line '91'
|
MISRAC2012-RULE_5_1-a-2 |
|
132: |
The identifier '____keep_init___scattered_array_5phys_mem_map_core_arch_arm_mm_core_mmu_c' has the same first 31 characters
of the name as the identifier '____keep_init___scattered_array_1phys_mem_map_core_arch_arm_mm_core_mmu_c' defined in the 'core_mmu.c'
file in line '93'
|
MISRAC2012-RULE_5_1-a-2 |
|
132: |
The identifier '____keep_init___scattered_array_5phys_mem_map_core_arch_arm_mm_core_mmu_c' has the same first 31 characters
of the name as the identifier '____keep_init___scattered_array_1phys_mem_mapcore_arch_arm_mm_core_mmu_c' defined in the 'core_mmu.c'
file in line '93'
|
MISRAC2012-RULE_5_1-a-2 |
|
132: |
The identifier '____keep_init___scattered_array_5phys_mem_map_core_arch_arm_mm_core_mmu_c' has the same first 31 characters
of the name as the identifier '____keep_init___scattered_array_2phys_mem_map_core_arch_arm_mm_core_mmu_c' defined in the 'core_mmu.c'
file in line '95'
|
MISRAC2012-RULE_5_1-a-2 |
|
132: |
The identifier '____keep_init___scattered_array_5phys_mem_map_core_arch_arm_mm_core_mmu_c' has the same first 31 characters
of the name as the identifier '____keep_init___scattered_array_2phys_mem_mapcore_arch_arm_mm_core_mmu_c' defined in the 'core_mmu.c'
file in line '95'
|
MISRAC2012-RULE_5_1-a-2 |
|
132: |
The identifier '____keep_init___scattered_array_5phys_mem_map_core_arch_arm_mm_core_mmu_c' has the same first 31 characters
of the name as the identifier '____keep_init___scattered_array_3phys_mem_map_core_arch_arm_mm_core_mmu_c' defined in the 'core_mmu.c'
file in line '104'
|
MISRAC2012-RULE_5_1-a-2 |
|
132: |
The identifier '____keep_init___scattered_array_5phys_mem_map_core_arch_arm_mm_core_mmu_c' has the same first 31 characters
of the name as the identifier '____keep_init___scattered_array_3phys_mem_mapcore_arch_arm_mm_core_mmu_c' defined in the 'core_mmu.c'
file in line '104'
|
MISRAC2012-RULE_5_1-a-2 |
|
132: |
The identifier '____keep_init___scattered_array_5phys_mem_map_core_arch_arm_mm_core_mmu_c' has the same first 31 characters
of the name as the identifier '____keep_init___scattered_array_4phys_mem_map_core_arch_arm_mm_core_mmu_c' defined in the 'core_mmu.c'
file in line '129'
|
MISRAC2012-RULE_5_1-a-2 |
|
132: |
The identifier '____keep_init___scattered_array_5phys_mem_map_core_arch_arm_mm_core_mmu_c' has the same first 31 characters
of the name as the identifier '____keep_init___scattered_array_4phys_mem_mapcore_arch_arm_mm_core_mmu_c' defined in the 'core_mmu.c'
file in line '129'
|
MISRAC2012-RULE_5_1-a-2 |
|
132: |
The identifier '____keep_init___scattered_array_5phys_mem_map_core_arch_arm_mm_core_mmu_c' has the same first 31 characters
of the name as the identifier '____keep_init___scattered_array_5phys_mem_mapcore_arch_arm_mm_core_mmu_c' defined in the 'core_mmu.c'
file in line '132'
|
MISRAC2012-RULE_5_1-a-2 |
|
132: |
The identifier '____keep_init___scattered_array_5phys_mem_mapcore_arch_arm_mm_core_mmu_c' has the same first 31 characters
of the name as the identifier '____keep_init___scattered_array_0phys_mem_map_core_arch_arm_mm_core_mmu_c' defined in the 'core_mmu.c'
file in line '91'
|
MISRAC2012-RULE_5_1-a-2 |
|
132: |
The identifier '____keep_init___scattered_array_5phys_mem_mapcore_arch_arm_mm_core_mmu_c' has the same first 31 characters
of the name as the identifier '____keep_init___scattered_array_0phys_mem_mapcore_arch_arm_mm_core_mmu_c' defined in the 'core_mmu.c'
file in line '91'
|
MISRAC2012-RULE_5_1-a-2 |
|
132: |
The identifier '____keep_init___scattered_array_5phys_mem_mapcore_arch_arm_mm_core_mmu_c' has the same first 31 characters
of the name as the identifier '____keep_init___scattered_array_1phys_mem_map_core_arch_arm_mm_core_mmu_c' defined in the 'core_mmu.c'
file in line '93'
|
MISRAC2012-RULE_5_1-a-2 |
|
132: |
The identifier '____keep_init___scattered_array_5phys_mem_mapcore_arch_arm_mm_core_mmu_c' has the same first 31 characters
of the name as the identifier '____keep_init___scattered_array_1phys_mem_mapcore_arch_arm_mm_core_mmu_c' defined in the 'core_mmu.c'
file in line '93'
|
MISRAC2012-RULE_5_1-a-2 |
|
132: |
The identifier '____keep_init___scattered_array_5phys_mem_mapcore_arch_arm_mm_core_mmu_c' has the same first 31 characters
of the name as the identifier '____keep_init___scattered_array_2phys_mem_map_core_arch_arm_mm_core_mmu_c' defined in the 'core_mmu.c'
file in line '95'
|
MISRAC2012-RULE_5_1-a-2 |
|
132: |
The identifier '____keep_init___scattered_array_5phys_mem_mapcore_arch_arm_mm_core_mmu_c' has the same first 31 characters
of the name as the identifier '____keep_init___scattered_array_2phys_mem_mapcore_arch_arm_mm_core_mmu_c' defined in the 'core_mmu.c'
file in line '95'
|
MISRAC2012-RULE_5_1-a-2 |
|
132: |
The identifier '____keep_init___scattered_array_5phys_mem_mapcore_arch_arm_mm_core_mmu_c' has the same first 31 characters
of the name as the identifier '____keep_init___scattered_array_3phys_mem_map_core_arch_arm_mm_core_mmu_c' defined in the 'core_mmu.c'
file in line '104'
|
MISRAC2012-RULE_5_1-a-2 |
|
132: |
The identifier '____keep_init___scattered_array_5phys_mem_mapcore_arch_arm_mm_core_mmu_c' has the same first 31 characters
of the name as the identifier '____keep_init___scattered_array_3phys_mem_mapcore_arch_arm_mm_core_mmu_c' defined in the 'core_mmu.c'
file in line '104'
|
MISRAC2012-RULE_5_1-a-2 |
|
132: |
The identifier '____keep_init___scattered_array_5phys_mem_mapcore_arch_arm_mm_core_mmu_c' has the same first 31 characters
of the name as the identifier '____keep_init___scattered_array_4phys_mem_map_core_arch_arm_mm_core_mmu_c' defined in the 'core_mmu.c'
file in line '129'
|
MISRAC2012-RULE_5_1-a-2 |
|
132: |
The identifier '____keep_init___scattered_array_5phys_mem_mapcore_arch_arm_mm_core_mmu_c' has the same first 31 characters
of the name as the identifier '____keep_init___scattered_array_4phys_mem_mapcore_arch_arm_mm_core_mmu_c' defined in the 'core_mmu.c'
file in line '129'
|
MISRAC2012-RULE_5_1-a-2 |
|
132: |
The names of the identifiers '____keep_init___scattered_array_5phys_mem_map_core_arch_arm_mm_core_mmu_c' and '____keep_init___scattered_array_5phys_mem_mapcore_arch_arm_mm_core_mmu_c'
(line: 132 in the 'core_mmu.c' file) differ only in the presence/absence of the underscore character
|
MISRAC2012-DIR_4_5-a-4 |
|
144: |
The left hand operand of the '>>' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
145: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
147: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
171: |
Pass parameter "a" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
171: |
Reserved name '_pbuf_intersects' used |
MISRAC2012-RULE_21_2-a-2 |
|
176: |
'for' statement in a function '_pbuf_intersects' should be followed by a block |
MISRAC2012-RULE_15_6-a-2 |
|
177: |
Conditional statement 'if' in a function '_pbuf_intersects' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
178: |
Provide only one exit point in '_pbuf_intersects' function |
MISRAC2012-RULE_15_5-a-4 |
|
179: |
Provide only one exit point in '_pbuf_intersects' function |
MISRAC2012-RULE_15_5-a-4 |
|
181: |
Do not define function-like macro: pbuf_intersects |
MISRAC2012-DIR_4_9-a-4 |
|
184: |
Pass parameter "a" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
184: |
Reserved name '_pbuf_is_inside' used |
MISRAC2012-RULE_21_2-a-2 |
|
189: |
'for' statement in a function '_pbuf_is_inside' should be followed by a block |
MISRAC2012-RULE_15_6-a-2 |
|
190: |
Conditional statement 'if' in a function '_pbuf_is_inside' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
191: |
Provide only one exit point in '_pbuf_is_inside' function |
MISRAC2012-RULE_15_5-a-4 |
|
192: |
Provide only one exit point in '_pbuf_is_inside' function |
MISRAC2012-RULE_15_5-a-4 |
|
194: |
Do not define function-like macro: pbuf_is_inside |
MISRAC2012-DIR_4_9-a-4 |
|
197: |
Pass parameter "map" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
199: |
Conditional statement 'if' in a function 'pa_is_in_map' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
199: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
200: |
Provide only one exit point in 'pa_is_in_map' function |
MISRAC2012-RULE_15_5-a-4 |
|
201: |
Operands of the '-' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
201: |
Provide only one exit point in 'pa_is_in_map' function |
MISRAC2012-RULE_15_5-a-4 |
|
201: |
The operands of a logical '&&' in function 'pa_is_in_map' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
201: |
The operands of a logical '&&' in function 'pa_is_in_map' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
201: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
204: |
Pass parameter "map" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
206: |
Conditional statement 'if' in a function 'va_is_in_map' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
206: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
207: |
Provide only one exit point in 'va_is_in_map' function |
MISRAC2012-RULE_15_5-a-4 |
|
208: |
Operands of the '-' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
208: |
Provide only one exit point in 'va_is_in_map' function |
MISRAC2012-RULE_15_5-a-4 |
|
208: |
The operands of a logical '&&' in function 'va_is_in_map' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
208: |
The operands of a logical '&&' in function 'va_is_in_map' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
208: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
212: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
213: |
Pass parameter "map" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
222: |
'for' statement in a function 'find_map_by_type' should be followed by a block |
MISRAC2012-RULE_15_6-a-2 |
|
223: |
Conditional statement 'if' in a function 'find_map_by_type' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
223: |
Operands of the '==' operator have different essential types: 'unsigned int' and 'teecore_memtypes' |
MISRAC2012-RULE_10_4-a-2 |
|
224: |
Provide only one exit point in 'find_map_by_type' function |
MISRAC2012-RULE_15_5-a-4 |
|
225: |
Provide only one exit point in 'find_map_by_type' function |
MISRAC2012-RULE_15_5-a-4 |
|
234: |
Conditional statement 'if' in a function 'find_map_by_type_and_pa' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
234: |
Operands of the '!=' operator have different essential types: 'unsigned int' and 'teecore_memtypes' |
MISRAC2012-RULE_10_4-a-2 |
|
236: |
Conditional statement 'if' in a function 'find_map_by_type_and_pa' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
237: |
Provide only one exit point in 'find_map_by_type_and_pa' function |
MISRAC2012-RULE_15_5-a-4 |
|
239: |
Provide only one exit point in 'find_map_by_type_and_pa' function |
MISRAC2012-RULE_15_5-a-4 |
|
242: |
Pass parameter "va" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
245: |
Pointer to void type should not be converted to arithmetic type 'unsigned long' |
MISRAC2012-RULE_11_6-a-2 |
|
245: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
245: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
248: |
Conditional statement 'if' in a function 'find_map_by_va' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
248: |
Operands of the '-' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
248: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
249: |
Provide only one exit point in 'find_map_by_va' function |
MISRAC2012-RULE_15_5-a-4 |
|
252: |
Provide only one exit point in 'find_map_by_va' function |
MISRAC2012-RULE_15_5-a-4 |
|
255: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
260: |
Conditional statement 'if' in a function 'find_map_by_pa' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
261: |
Provide only one exit point in 'find_map_by_pa' function |
MISRAC2012-RULE_15_5-a-4 |
|
264: |
Provide only one exit point in 'find_map_by_pa' function |
MISRAC2012-RULE_15_5-a-4 |
|
270: |
The names of the identifiers 'end' and '__end' (line: 80 in the 'linker.h' file) differ only in the presence/absence of the
underscore character
|
MISRAC2012-DIR_4_5-a-4 |
|
275: |
Conditional statement 'if' in a function 'pbuf_is_special_mem' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
276: |
Provide only one exit point in 'pbuf_is_special_mem' function |
MISRAC2012-RULE_15_5-a-4 |
|
279: |
Provide only one exit point in 'pbuf_is_special_mem' function |
MISRAC2012-RULE_15_5-a-4 |
|
294: |
'return' statement should be at the end of the 'carve_out_phys_mem' function |
MISRAC2012-RULE_15_5-a-4 |
|
296: |
Conditional statement 'if' in a function 'carve_out_phys_mem' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
298: |
Conditional statement 'if' in a function 'carve_out_phys_mem' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
303: |
The operands of a logical '&&' in function 'carve_out_phys_mem' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
303: |
The operands of a logical '&&' in function 'carve_out_phys_mem' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
306: |
The left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
306: |
The variable 'm' used as the left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
306: |
The variable 'm' used as the left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
306: |
Unused function's "memmove" return value |
MISRAC2012-RULE_17_7-a-2 |
|
307: |
'realloc' function should not be used |
MISRAC2012-RULE_21_3-a-2 |
|
307: |
'realloc' function should not be used |
MISRAC2012-DIR_4_12-a-2 |
|
307: |
Pointer to void type should not be converted to pointer to object type 'struct core_mmu_phys_mem *' |
MISRAC2012-RULE_11_5-a-4 |
|
308: |
Conditional statement 'if' in a function 'carve_out_phys_mem' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
308: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
318: |
'realloc' function should not be used |
MISRAC2012-RULE_21_3-a-2 |
|
318: |
'realloc' function should not be used |
MISRAC2012-DIR_4_12-a-2 |
|
318: |
Operands of the '+' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
318: |
Pointer to void type should not be converted to pointer to object type 'struct core_mmu_phys_mem *' |
MISRAC2012-RULE_11_5-a-4 |
|
319: |
Conditional statement 'if' in a function 'carve_out_phys_mem' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
319: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
322: |
The left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
322: |
The variable 'm' used as the left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
322: |
The variable 'm' used as the left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
322: |
Unused function's "memmove" return value |
MISRAC2012-RULE_17_7-a-2 |
|
325: |
Operands of the '+' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
326: |
Operands of the '+' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
330: |
Pass parameter "start" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
332: |
Pass parameter "map" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
351: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
353: |
Pointer to void type should not be converted to pointer to object type 'const struct core_mmu_phys_mem *' |
MISRAC2012-RULE_11_5-a-4 |
|
354: |
Pointer to void type should not be converted to pointer to object type 'const struct core_mmu_phys_mem *' |
MISRAC2012-RULE_11_5-a-4 |
|
356: |
Reserved name '_a' used |
MISRAC2012-RULE_21_2-a-2 |
|
356: |
Reserved name '_b' used |
MISRAC2012-RULE_21_2-a-2 |
|
356: |
The names of the identifiers '_a' and 'a' (line: 351 in the 'core_mmu.c' file) differ only in the presence/absence of the
underscore character
|
MISRAC2012-DIR_4_5-a-4 |
|
356: |
The names of the identifiers '_b' and 'b' (line: 351 in the 'core_mmu.c' file) differ only in the presence/absence of the
underscore character
|
MISRAC2012-DIR_4_5-a-4 |
|
356: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
| +
|
364: |
Value of "map" is never used |
MISRAC2012-RULE_2_2-b-2 |
| |
|
Point where value is declared
Point where value is declared
core_mmu.c (364): struct tee_mmap_region *map = static_memory_map;
Point(s) where value is overwritten
Point(s) where value is overwritten
core_mmu.c (392): for (map = static_memory_map; !core_mmap_is_end_of_table(map); map++) { |
|
| +
|
365: |
Value of "pmem" is never used |
MISRAC2012-RULE_2_2-b-2 |
| |
|
Point where value is declared
Point where value is declared
core_mmu.c (365): const struct core_mmu_phys_mem __maybe_unused *pmem; |
|
|
367: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
368: |
The left hand operand of the logical operator '&&' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
368: |
The right hand operand of the logical operator '&&' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
370: |
Usage of 'qsort' function is not allowed |
MISRAC2012-RULE_21_9-a-2 |
|
389: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
390: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
390: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
390: |
Operands of the '+' operator have different essential types: 'int' and 'unsigned char' |
MISRAC2012-RULE_10_4-a-2 |
|
390: |
Operands of the '+' operator have different essential types: 'int' and 'unsigned char' |
MISRAC2012-RULE_10_4-a-2 |
|
390: |
Operands of the '-' operator have different essential types: 'int' and 'unsigned int' |
MISRAC2012-RULE_10_4-a-2 |
|
390: |
Operands of the '-' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
390: |
The left hand operand of the '&' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
390: |
The operand of the '~' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
390: |
The right hand operand of the '&' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
394: |
The expression of the 'essentially Enum' type in a switch statement's case label is converted to the 'essentially unsigned'
type
|
MISRAC2012-RULE_10_3-b-2 |
|
397: |
The expression of the 'essentially Enum' type in a switch statement's case label is converted to the 'essentially unsigned'
type
|
MISRAC2012-RULE_10_3-b-2 |
|
403: |
Every non empty default clause in a switch statement shall be terminated with a break statement |
MISRAC2012-RULE_16_1-d-2 |
|
403: |
Every non empty default clause in a switch statement shall be terminated with a break statement |
MISRAC2012-RULE_16_3-b-2 |
|
411: |
Conditional statement 'if' in a function 'core_mmu_set_discovered_nsec_ddr' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
411: |
Operands of the '-' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
412: |
Operands of the '-' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
417: |
The names of the identifiers 'end' and '__end' (line: 80 in the 'linker.h' file) differ only in the presence/absence of the
underscore character
|
MISRAC2012-DIR_4_5-a-4 |
|
419: |
Conditional statement 'if' in a function 'get_discovered_nsec_ddr' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
419: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
420: |
Provide only one exit point in 'get_discovered_nsec_ddr' function |
MISRAC2012-RULE_15_5-a-4 |
|
423: |
The variable 'discovered_nsec_ddr_start' used as the left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
425: |
Provide only one exit point in 'get_discovered_nsec_ddr' function |
MISRAC2012-RULE_15_5-a-4 |
|
431: |
The names of the identifiers 'end' and '__end' (line: 80 in the 'linker.h' file) differ only in the presence/absence of the
underscore character
|
MISRAC2012-DIR_4_5-a-4 |
|
433: |
Conditional statement 'if' in a function 'pbuf_is_nsec_ddr' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
434: |
Provide only one exit point in 'pbuf_is_nsec_ddr' function |
MISRAC2012-RULE_15_5-a-4 |
|
436: |
Provide only one exit point in 'pbuf_is_nsec_ddr' function |
MISRAC2012-RULE_15_5-a-4 |
|
442: |
The names of the identifiers 'end' and '__end' (line: 80 in the 'linker.h' file) differ only in the presence/absence of the
underscore character
|
MISRAC2012-DIR_4_5-a-4 |
|
444: |
Conditional statement 'if' in a function 'core_mmu_nsec_ddr_is_defined' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
445: |
Provide only one exit point in 'core_mmu_nsec_ddr_is_defined' function |
MISRAC2012-RULE_15_5-a-4 |
|
447: |
Provide only one exit point in 'core_mmu_nsec_ddr_is_defined' function |
MISRAC2012-RULE_15_5-a-4 |
|
456: |
Do not define function-like macro: MSG_MEM_INSTERSECT |
MISRAC2012-DIR_4_9-a-4 |
|
458: |
Each instance of parameter: 'pa1' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
458: |
Each instance of parameter: 'pa1' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
458: |
Each instance of parameter: 'pa2' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
458: |
Each instance of parameter: 'pa2' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
458: |
Each instance of parameter: 'sz1' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
458: |
Each instance of parameter: 'sz2' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
472: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
491: |
Parameter 'len' is not used in function 'pbuf_is_sdp_mem' |
MISRAC2012-RULE_2_7-a-4 |
|
491: |
Parameter 'pbuf' is not used in function 'pbuf_is_sdp_mem' |
MISRAC2012-RULE_2_7-a-4 |
|
502: |
The names of the identifiers 'end' and '__end' (line: 80 in the 'linker.h' file) differ only in the presence/absence of the
underscore character
|
MISRAC2012-DIR_4_5-a-4 |
|
503: |
Parameter 'area_name' is not used in function 'verify_special_mem_areas' |
MISRAC2012-RULE_2_7-a-4 |
|
512: |
'return' statement should be at the end of the 'verify_special_mem_areas' function |
MISRAC2012-RULE_15_5-a-4 |
|
515: |
'for' statement in a function 'verify_special_mem_areas' should be followed by a block |
MISRAC2012-RULE_15_6-a-2 |
|
520: |
The variable 'mem' used as the left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
520: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
521: |
The variable 'mem' used as the left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
536: |
Disallowed comma operator is used in function 'verify_special_mem_areas' |
MISRAC2012-RULE_12_3-a-4 |
|
536: |
Disallowed comma operator is used in function 'verify_special_mem_areas' |
MISRAC2012-RULE_12_3-a-4 |
|
536: |
Improper expression is used in the first clause of a 'for' statement |
MISRAC2012-RULE_14_2-b-2 |
|
536: |
The '++' operator should cause the only side effect in an expression |
MISRAC2012-RULE_13_3-a-4 |
|
536: |
The third clause of a 'for' statement should not contain a comma operator |
MISRAC2012-RULE_14_2-d-2 |
|
566: |
Only one 'break' statement in loop is allowed. This loop contains 'breaks' in lines: 572, 586 |
MISRAC2012-RULE_15_4-a-4 |
|
567: |
Operands of the '-' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
571: |
Conditional statement 'if' in a function 'add_phys_mem' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
575: |
Operands of the '==' operator have different essential types: 'teecore_memtypes' and 'unsigned int' |
MISRAC2012-RULE_10_4-a-2 |
|
575: |
The operands of a logical '&&' in function 'add_phys_mem' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
576: |
Operands of the '-' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
577: |
Operands of the '-' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
579: |
Reserved name '_a' used |
MISRAC2012-RULE_21_2-a-2 |
|
579: |
Reserved name '_b' used |
MISRAC2012-RULE_21_2-a-2 |
|
579: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
580: |
Reserved name '_a' used |
MISRAC2012-RULE_21_2-a-2 |
|
580: |
Reserved name '_b' used |
MISRAC2012-RULE_21_2-a-2 |
|
580: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
582: |
'return' statement should be at the end of the 'add_phys_mem' function |
MISRAC2012-RULE_15_5-a-4 |
|
584: |
Conditional statement 'if' in a function 'add_phys_mem' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
584: |
Operands of the '<' operator have different essential types: 'teecore_memtypes' and 'unsigned int' |
MISRAC2012-RULE_10_4-a-2 |
|
584: |
The operands of a logical '||' in function 'add_phys_mem' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
585: |
Operands of the '==' operator have different essential types: 'teecore_memtypes' and 'unsigned int' |
MISRAC2012-RULE_10_4-a-2 |
|
585: |
The operands of a logical '&&' in function 'add_phys_mem' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
585: |
The operands of a logical '&&' in function 'add_phys_mem' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
590: |
The left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
| +
|
590: |
The number of bytes to process by the "memmove" function is not positive and equals 0 |
MISRAC2012-RULE_21_18-a-1 |
| |
|
core_mmu.c (550): size_t n = 0;
core_mmu.c (551): paddr_t pa;
core_mmu.c (552): paddr_size_t size;
core_mmu.c (566): while (true) { *** Loop condition evaluation: 1 (true) *** Entering the loop
core_mmu.c (567): if (n >= (num_elems - 1)) { *** Condition evaluation: (n >= num_elems - 1) (assuming false)
Point where number of bytes to process is defined
core_mmu.c (571): if (n == *last) *** Buffer: tee_mmap_region memory_map + n + 1[] *** Condition evaluation: (n == *last) (assuming true)
core_mmu.c (572): break; *** Exit the loop
core_mmu.c (590): memmove(memory_map + n + 1, memory_map + n,
core_mmu.c (591): sizeof(struct tee_mmap_region) * (*last - n));
Point where buffer is passed to the function
core_mmu.c (590): memmove(memory_map + n + 1, memory_map + n, *** Number of bytes to process: 40 * *last - n == 0 *** Buffer: tee_mmap_region memory_map + n + 1[] |
|
|
590: |
The variable 'memory_map' used as the left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
590: |
The variable 'memory_map' used as the left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
590: |
Unused function's "memmove" return value |
MISRAC2012-RULE_17_7-a-2 |
|
593: |
The variable 'memory_map' used as the left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
593: |
Unused function's "memset" return value |
MISRAC2012-RULE_17_7-a-2 |
|
594: |
The expression of the 'essentially Enum' type is assigned to an object with the 'essentially unsigned' type |
MISRAC2012-RULE_10_3-b-2 |
|
605: |
Only one 'break' statement in loop is allowed. This loop contains 'breaks' in lines: 611, 613 |
MISRAC2012-RULE_15_4-a-4 |
|
606: |
Operands of the '-' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
610: |
Conditional statement 'if' in a function 'add_va_space' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
612: |
Conditional statement 'if' in a function 'add_va_space' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
612: |
Operands of the '<' operator have different essential types: 'teecore_memtypes' and 'unsigned int' |
MISRAC2012-RULE_10_4-a-2 |
|
617: |
The left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
| +
|
617: |
The number of bytes to process by the "memmove" function is not positive and equals 0 |
MISRAC2012-RULE_21_18-a-1 |
| |
|
core_mmu.c (602): size_t n = 0;
core_mmu.c (605): while (true) { *** Loop condition evaluation: 1 (true) *** Entering the loop
core_mmu.c (606): if (n >= (num_elems - 1)) { *** Condition evaluation: (n >= num_elems - 1) (assuming false)
Point where number of bytes to process is defined
core_mmu.c (610): if (n == *last) *** Buffer: tee_mmap_region memory_map + n + 1[] *** Condition evaluation: (n == *last) (assuming true)
core_mmu.c (611): break; *** Exit the loop
core_mmu.c (617): memmove(memory_map + n + 1, memory_map + n,
core_mmu.c (618): sizeof(struct tee_mmap_region) * (*last - n));
Point where buffer is passed to the function
core_mmu.c (617): memmove(memory_map + n + 1, memory_map + n, *** Number of bytes to process: 40 * *last - n == 0 *** Buffer: tee_mmap_region memory_map + n + 1[] |
|
|
617: |
The variable 'memory_map' used as the left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
617: |
The variable 'memory_map' used as the left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
617: |
Unused function's "memmove" return value |
MISRAC2012-RULE_17_7-a-2 |
|
620: |
The variable 'memory_map' used as the left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
620: |
Unused function's "memset" return value |
MISRAC2012-RULE_17_7-a-2 |
|
621: |
The expression of the 'essentially Enum' type is assigned to an object with the 'essentially unsigned' type |
MISRAC2012-RULE_10_3-b-2 |
|
625: |
Function 'core_mmu_type_to_attr' should have return at the end of each execution path |
MISRAC2012-RULE_17_4-a-1 |
|
628: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
628: |
The expression of the 'essentially signed' type is assigned to an object with the 'essentially unsigned' type |
MISRAC2012-RULE_10_3-b-2 |
|
628: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
629: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
629: |
The expression of the 'essentially signed' type is assigned to an object with the 'essentially unsigned' type |
MISRAC2012-RULE_10_3-b-2 |
|
629: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
634: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
634: |
Provide only one exit point in 'core_mmu_type_to_attr' function |
MISRAC2012-RULE_15_5-a-4 |
|
637: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
637: |
Provide only one exit point in 'core_mmu_type_to_attr' function |
MISRAC2012-RULE_15_5-a-4 |
|
639: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
639: |
Provide only one exit point in 'core_mmu_type_to_attr' function |
MISRAC2012-RULE_15_5-a-4 |
|
643: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
643: |
Provide only one exit point in 'core_mmu_type_to_attr' function |
MISRAC2012-RULE_15_5-a-4 |
|
645: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
645: |
Provide only one exit point in 'core_mmu_type_to_attr' function |
MISRAC2012-RULE_15_5-a-4 |
|
647: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
647: |
Provide only one exit point in 'core_mmu_type_to_attr' function |
MISRAC2012-RULE_15_5-a-4 |
|
649: |
Provide only one exit point in 'core_mmu_type_to_attr' function |
MISRAC2012-RULE_15_5-a-4 |
|
652: |
Provide only one exit point in 'core_mmu_type_to_attr' function |
MISRAC2012-RULE_15_5-a-4 |
|
654: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
654: |
Provide only one exit point in 'core_mmu_type_to_attr' function |
MISRAC2012-RULE_15_5-a-4 |
|
656: |
Provide only one exit point in 'core_mmu_type_to_attr' function |
MISRAC2012-RULE_15_5-a-4 |
|
659: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
659: |
Provide only one exit point in 'core_mmu_type_to_attr' function |
MISRAC2012-RULE_15_5-a-4 |
|
662: |
Provide only one exit point in 'core_mmu_type_to_attr' function |
MISRAC2012-RULE_15_5-a-4 |
|
664: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
664: |
Provide only one exit point in 'core_mmu_type_to_attr' function |
MISRAC2012-RULE_15_5-a-4 |
|
665: |
Every non empty default clause in a switch statement shall be terminated with a break statement |
MISRAC2012-RULE_16_1-d-2 |
|
665: |
Every non empty default clause in a switch statement shall be terminated with a break statement |
MISRAC2012-RULE_16_3-b-2 |
|
673: |
The expression of the 'essentially Enum' type in a switch statement's case label is converted to the 'essentially unsigned'
type
|
MISRAC2012-RULE_10_3-b-2 |
|
679: |
Provide only one exit point in 'map_is_tee_ram' function |
MISRAC2012-RULE_15_5-a-4 |
|
681: |
Provide only one exit point in 'map_is_tee_ram' function |
MISRAC2012-RULE_15_5-a-4 |
|
687: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
687: |
The argument number '1' ('essentially unsigned' type) is passed to the function 'core_mmu_type_to_attr' as a parameter with
the 'essentially Enum' type
|
MISRAC2012-RULE_10_3-b-2 |
|
687: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
692: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
695: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
697: |
Pointer to void type should not be converted to pointer to object type 'const struct tee_mmap_region *' |
MISRAC2012-RULE_11_5-a-4 |
|
698: |
Pointer to void type should not be converted to pointer to object type 'const struct tee_mmap_region *' |
MISRAC2012-RULE_11_5-a-4 |
|
700: |
Reserved name '_a' used |
MISRAC2012-RULE_21_2-a-2 |
|
700: |
Reserved name '_b' used |
MISRAC2012-RULE_21_2-a-2 |
|
700: |
The names of the identifiers '_a' and 'a' (line: 695 in the 'core_mmu.c' file) differ only in the presence/absence of the
underscore character
|
MISRAC2012-DIR_4_5-a-4 |
|
700: |
The names of the identifiers '_b' and 'b' (line: 695 in the 'core_mmu.c' file) differ only in the presence/absence of the
underscore character
|
MISRAC2012-DIR_4_5-a-4 |
|
700: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
710: |
Essential type of LHS operand (64 bit) is wider than essential type of composite expression in RHS operand (32 bit) |
MISRAC2012-RULE_10_7-a-2 |
|
710: |
Operands of the '-' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
| +
|
710: |
Value of "vstart" is never used |
MISRAC2012-RULE_2_2-b-2 |
| |
|
Point where value is declared
Point where value is declared
core_mmu.c (710): vstart = map->va + ((vaddr_t)map->pa & (map->region_size - 1));
Point(s) where value is overwritten
Point(s) where value is overwritten
core_mmu.c (708): vaddr_t __maybe_unused vstart; |
|
|
722: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
725: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
767: |
Parameter 'level' is not used in function 'dump_xlat_table' |
MISRAC2012-RULE_2_7-a-4 |
|
767: |
Parameter 'va' is not used in function 'dump_xlat_table' |
MISRAC2012-RULE_2_7-a-4 |
|
767: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
785: |
The names of the identifiers 'end' and '__end' (line: 80 in the 'linker.h' file) differ only in the presence/absence of the
underscore character
|
MISRAC2012-DIR_4_5-a-4 |
|
790: |
Operands of the '-' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
795: |
The variable 'mmap' used as the left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
796: |
The variable 'mmap' used as the left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
797: |
Conditional statement 'if' in a function 'add_pager_vaspace' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
797: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
799: |
Operands of the '+' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
| +
|
803: |
Integer overflow: value of (pos - 1) will be 18,446,744,073,709,551,615 instead of -1 (result type: 64 bits, unsigned, min:
0, max: 18,446,744,073,709,551,615)
|
MISRAC2012-DIR_4_1-k-2 |
| |
|
Start of the path
core_mmu.c (787): size_t pos = 0; *** Variable assignment: pos = 0
core_mmu.c (788): size_t n = 0;
core_mmu.c (790): if (*last >= (num_elems - 1)) { *** Condition evaluation: (*last >= num_elems - 1) (assuming false)
core_mmu.c (795): for (n = 0; !core_mmap_is_end_of_table(mmap + n); n++) { *** Loop condition evaluation: !core_mmap_is_end_of_table(...) (assuming false) *** Not entering the loop
Integer overflow point
core_mmu.c (803): end = mmap[pos - 1].pa + mmap[pos - 1].size; *** Variable assignment: tmp$0 = (pos - 1) -> tmp$0 = 18446744073709551615 |
|
|
803: |
Operands of the '-' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
803: |
Operands of the '-' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
804: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
805: |
Conditional statement 'if' in a function 'add_pager_vaspace' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
805: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
806: |
'return' statement should be at the end of the 'add_pager_vaspace' function |
MISRAC2012-RULE_15_5-a-4 |
|
809: |
The left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
809: |
The variable 'mmap' used as the left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
809: |
The variable 'mmap' used as the left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
809: |
Unused function's "memmove" return value |
MISRAC2012-RULE_17_7-a-2 |
|
812: |
The variable 'mmap' used as the left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
812: |
Unused function's "memset" return value |
MISRAC2012-RULE_17_7-a-2 |
|
813: |
The expression of the 'essentially Enum' type is assigned to an object with the 'essentially unsigned' type |
MISRAC2012-RULE_10_3-b-2 |
|
816: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
825: |
Conditional statement 'if' in a function 'check_sec_nsec_mem_config' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
837: |
More than one variable is declared in the first clause of a 'for' statement |
MISRAC2012-RULE_14_2-b-2 |
|
837: |
Pointer to void type should not be converted to pointer to object type 'const struct core_mmu_phys_mem *' |
MISRAC2012-RULE_11_5-a-4 |
|
837: |
Reserved name '__scattered_array_begin' used |
MISRAC2012-RULE_21_2-a-2 |
|
837: |
Reserved name '__scattered_array_end' used |
MISRAC2012-RULE_21_2-a-2 |
| +
|
837: |
Two unrelated pointers "mem" and "__scattered_array_end" are compared |
MISRAC2012-DIR_4_1-j-2 |
| |
|
Start of the path
core_mmu.c (831): static size_t collect_mem_ranges(struct tee_mmap_region *memory_map,
core_mmu.c (834): const struct core_mmu_phys_mem *mem = NULL;
core_mmu.c (835): size_t last = 0;
core_mmu.c (837): scattered_array_relax_ptr(...)
scattered_array.c (10): return p;
Point of comparison
core_mmu.c (837): for (mem = phys_mem_map_begin; mem < phys_mem_map_end; mem++) { |
|
| +
|
837: |
Two unrelated pointers "mem" and "__scattered_array_end" are compared |
MISRAC2012-RULE_18_3-a-2 |
| |
|
Start of the path
core_mmu.c (831): static size_t collect_mem_ranges(struct tee_mmap_region *memory_map,
core_mmu.c (834): const struct core_mmu_phys_mem *mem = NULL;
core_mmu.c (835): size_t last = 0;
core_mmu.c (837): scattered_array_relax_ptr(...)
scattered_array.c (10): return p;
Point of comparison
core_mmu.c (837): for (mem = phys_mem_map_begin; mem < phys_mem_map_end; mem++) { |
|
|
841: |
Conditional statement 'if' in a function 'collect_mem_ranges' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
841: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
845: |
The left hand operand of the logical operator '||' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
845: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
845: |
The operands of a logical '||' in function 'collect_mem_ranges' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
850: |
Conditional statement 'if' in a function 'collect_mem_ranges' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
850: |
Unreachable code inside 'if' block |
MISRAC2012-RULE_2_1-c-2 |
| +
|
851: |
The return value of the "scattered_array_relax_ptr" method is not checked. It is checked at least 80% times in the testing
scope
|
MISRAC2012-DIR_4_7-a-2 |
| |
|
Example path
boot.c (1149): assert(phys_ddr_overall_compat_begin == *** Method call *** Example of checking
Violation path
Method call
core_mmu.c (852): scattered_array_relax_ptr(...)
core_mmu.c (852): phys_sdp_mem_begin,
core_mmu.c (853): phys_sdp_mem_end, "SDP");
Point by which returned value should be checked
core_mmu.c (851): verify_special_mem_areas(memory_map, num_elems, |
|
|
852: |
Identifier '__scattered_array_begin' is being reused |
MISRAC2012-RULE_5_9-b-4 |
|
852: |
Pointer to void type should not be converted to pointer to object type 'const struct core_mmu_phys_mem *' |
MISRAC2012-RULE_11_5-a-4 |
|
852: |
Reserved name '__scattered_array_begin' used |
MISRAC2012-RULE_21_2-a-2 |
|
853: |
Identifier '__scattered_array_end' is being reused |
MISRAC2012-RULE_5_9-b-4 |
|
853: |
Reserved name '__scattered_array_end' used |
MISRAC2012-RULE_21_2-a-2 |
|
856: |
The argument number '4' ('essentially signed' type) is passed to the function 'add_va_space' as a parameter with the 'essentially
unsigned' type
|
MISRAC2012-RULE_10_3-b-2 |
|
859: |
The argument number '4' ('essentially signed' type) is passed to the function 'add_va_space' as a parameter with the 'essentially
unsigned' type
|
MISRAC2012-RULE_10_3-b-2 |
|
861: |
The expression of the 'essentially Enum' type is assigned to an object with the 'essentially unsigned' type |
MISRAC2012-RULE_10_3-b-2 |
|
877: |
Conditional statement 'if' in a function 'assign_mem_granularity' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
877: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
877: |
Operands of the '-' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
877: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
878: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
879: |
Conditional statement 'if' in a function 'assign_mem_granularity' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
879: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
879: |
Operands of the '-' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
879: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
880: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
882: |
An 'else' statement in a function 'assign_mem_granularity' shall be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
884: |
Conditional statement 'if' in a function 'assign_mem_granularity' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
885: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
889: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
892: |
Missing statement or comment before terminating 'break' |
MISRAC2012-RULE_16_4-b-2 |
|
892: |
Missing statement or comment before terminating 'break' |
MISRAC2012-RULE_16_1-f-2 |
|
892: |
The 'switch' statement contains less than two switch-clauses |
MISRAC2012-RULE_16_6-a-2 |
|
892: |
The 'switch' statement contains less than two switch-clauses |
MISRAC2012-RULE_16_1-h-2 |
|
892: |
The result of comparison is always true or always false |
MISRAC2012-RULE_14_3-i-2 |
|
893: |
Missing statement or comment before terminating 'break' |
MISRAC2012-RULE_16_4-b-2 |
|
893: |
Missing statement or comment before terminating 'break' |
MISRAC2012-RULE_16_1-f-2 |
|
893: |
The 'switch' statement contains less than two switch-clauses |
MISRAC2012-RULE_16_6-a-2 |
|
893: |
The 'switch' statement contains less than two switch-clauses |
MISRAC2012-RULE_16_1-h-2 |
|
893: |
The result of comparison is always true or always false |
MISRAC2012-RULE_14_3-i-2 |
|
894: |
Provide only one exit point in 'get_va_width' function |
MISRAC2012-RULE_15_5-a-4 |
|
896: |
Provide only one exit point in 'get_va_width' function |
MISRAC2012-RULE_15_5-a-4 |
|
907: |
'for' statement in a function 'assign_mem_va' should be followed by a block |
MISRAC2012-RULE_15_6-a-2 |
|
918: |
The operands of a logical '||' in function 'assign_mem_va' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
919: |
Operands of the '==' operator have different essential types: 'unsigned int' and 'teecore_memtypes' |
MISRAC2012-RULE_10_4-a-2 |
|
919: |
The operands of a logical '||' in function 'assign_mem_va' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
920: |
Essential type of LHS operand (64 bit) is wider than essential type of composite expression in RHS operand (32 bit) |
MISRAC2012-RULE_10_7-a-2 |
|
920: |
Operands of the '-' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
920: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
921: |
Essential type of LHS operand (64 bit) is wider than essential type of composite expression in RHS operand (32 bit) |
MISRAC2012-RULE_10_7-a-2 |
|
921: |
Operands of the '-' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
921: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
923: |
Conditional statement 'if' in a function 'assign_mem_va' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
924: |
Provide only one exit point in 'assign_mem_va' function |
MISRAC2012-RULE_15_5-a-4 |
|
925: |
Conditional statement 'if' in a function 'assign_mem_va' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
925: |
Shifting operation should be enclosed with if checking that RHS operand does not exceed the upper limit (one less than the
width in bits of the underlying type of the LHS operand)
|
MISRAC2012-RULE_12_2-a-2 |
|
925: |
The operands of a logical '&&' in function 'assign_mem_va' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
926: |
Provide only one exit point in 'assign_mem_va' function |
MISRAC2012-RULE_15_5-a-4 |
|
937: |
The argument number '1' ('essentially unsigned' type) is passed to the function 'core_mmu_type_to_attr' as a parameter with
the 'essentially Enum' type
|
MISRAC2012-RULE_10_3-b-2 |
|
938: |
Conditional statement 'if' in a function 'assign_mem_va' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
938: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
941: |
The operands of a logical '&&' in function 'assign_mem_va' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
942: |
The operands of a logical '&&' in function 'assign_mem_va' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
944: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
944: |
Operands of the '-' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
947: |
Conditional statement 'if' in a function 'assign_mem_va' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
948: |
Provide only one exit point in 'assign_mem_va' function |
MISRAC2012-RULE_15_5-a-4 |
|
949: |
Operands of the '-' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
955: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
955: |
Operands of the '*' operator have different essential types: 'signed char' and 'unsigned char' |
MISRAC2012-RULE_10_4-a-2 |
|
955: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
956: |
Conditional statement 'if' in a function 'assign_mem_va' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
956: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
957: |
Provide only one exit point in 'assign_mem_va' function |
MISRAC2012-RULE_15_5-a-4 |
|
958: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
958: |
Operands of the '-' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
968: |
The argument number '1' ('essentially unsigned' type) is passed to the function 'core_mmu_type_to_attr' as a parameter with
the 'essentially Enum' type
|
MISRAC2012-RULE_10_3-b-2 |
|
969: |
Conditional statement 'if' in a function 'assign_mem_va' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
969: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
972: |
The operands of a logical '&&' in function 'assign_mem_va' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
973: |
The operands of a logical '&&' in function 'assign_mem_va' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
975: |
Assignment operator '=' is used in improper context |
MISRAC2012-RULE_13_4-a-4 |
|
975: |
Conditional statement 'if' in a function 'assign_mem_va' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
975: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
975: |
Disallowed comma operator is used in function 'assign_mem_va' |
MISRAC2012-RULE_12_3-a-4 |
|
975: |
Operands of the '-' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
975: |
Reserved name '__roundup_mask' used |
MISRAC2012-RULE_21_2-a-2 |
|
975: |
Reserved name '__roundup_tmp' used |
MISRAC2012-RULE_21_2-a-2 |
|
975: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
975: |
Unused function's "__builtin_add_overflow" return value |
MISRAC2012-RULE_17_7-b-2 |
|
977: |
Provide only one exit point in 'assign_mem_va' function |
MISRAC2012-RULE_15_5-a-4 |
|
980: |
Assignment operator '=' is used in improper context |
MISRAC2012-RULE_13_4-a-4 |
|
980: |
Conditional statement 'if' in a function 'assign_mem_va' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
980: |
Disallowed comma operator is used in function 'assign_mem_va' |
MISRAC2012-RULE_12_3-a-4 |
|
980: |
Operands of the '-' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
980: |
Reserved name '__roundup_mask' used |
MISRAC2012-RULE_21_2-a-2 |
|
980: |
Reserved name '__roundup_tmp' used |
MISRAC2012-RULE_21_2-a-2 |
|
980: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
980: |
Unused function's "__builtin_add_overflow" return value |
MISRAC2012-RULE_17_7-b-2 |
|
981: |
Provide only one exit point in 'assign_mem_va' function |
MISRAC2012-RULE_15_5-a-4 |
|
987: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
987: |
Operands of the '*' operator have different essential types: 'signed char' and 'unsigned char' |
MISRAC2012-RULE_10_4-a-2 |
|
987: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
989: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
989: |
Operands of the '-' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
991: |
Conditional statement 'if' in a function 'assign_mem_va' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
992: |
Provide only one exit point in 'assign_mem_va' function |
MISRAC2012-RULE_15_5-a-4 |
|
996: |
Conditional statement 'if' in a function 'assign_mem_va' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
997: |
Provide only one exit point in 'assign_mem_va' function |
MISRAC2012-RULE_15_5-a-4 |
|
998: |
Conditional statement 'if' in a function 'assign_mem_va' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
998: |
Shifting operation should be enclosed with if checking that RHS operand does not exceed the upper limit (one less than the
width in bits of the underlying type of the LHS operand)
|
MISRAC2012-RULE_12_2-a-2 |
|
998: |
The operands of a logical '&&' in function 'assign_mem_va' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
999: |
Provide only one exit point in 'assign_mem_va' function |
MISRAC2012-RULE_15_5-a-4 |
|
1003: |
Provide only one exit point in 'assign_mem_va' function |
MISRAC2012-RULE_15_5-a-4 |
|
1006: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
1008: |
Pointer to void type should not be converted to pointer to object type 'const struct tee_mmap_region *' |
MISRAC2012-RULE_11_5-a-4 |
|
1009: |
Pointer to void type should not be converted to pointer to object type 'const struct tee_mmap_region *' |
MISRAC2012-RULE_11_5-a-4 |
|
1010: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
1012: |
Reserved name '_a' used |
MISRAC2012-RULE_21_2-a-2 |
|
1012: |
Reserved name '_b' used |
MISRAC2012-RULE_21_2-a-2 |
|
1012: |
The names of the identifiers '_a' and 'a' (line: 1006 in the 'core_mmu.c' file) differ only in the presence/absence of the
underscore character
|
MISRAC2012-DIR_4_5-a-4 |
|
1012: |
The names of the identifiers '_b' and 'b' (line: 1006 in the 'core_mmu.c' file) differ only in the presence/absence of the
underscore character
|
MISRAC2012-DIR_4_5-a-4 |
|
1012: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
1013: |
Conditional statement 'if' in a function 'cmp_init_mem_map' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1013: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
1014: |
Reserved name '_a' used |
MISRAC2012-RULE_21_2-a-2 |
|
1014: |
Reserved name '_b' used |
MISRAC2012-RULE_21_2-a-2 |
|
1014: |
The names of the identifiers '_a' and 'a' (line: 1006 in the 'core_mmu.c' file) differ only in the presence/absence of the
underscore character
|
MISRAC2012-DIR_4_5-a-4 |
|
1014: |
The names of the identifiers '_b' and 'b' (line: 1006 in the 'core_mmu.c' file) differ only in the presence/absence of the
underscore character
|
MISRAC2012-DIR_4_5-a-4 |
|
1014: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
1020: |
Conditional statement 'if' in a function 'cmp_init_mem_map' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1020: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
1020: |
The operands of a logical '&&' in function 'cmp_init_mem_map' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
1020: |
The operands of a logical '&&' in function 'cmp_init_mem_map' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
1021: |
Reserved name '_a' used |
MISRAC2012-RULE_21_2-a-2 |
|
1021: |
Reserved name '_b' used |
MISRAC2012-RULE_21_2-a-2 |
|
1021: |
The left hand operand of the '<' operator has essentially Boolean type |
MISRAC2012-RULE_10_1-b-2 |
|
1021: |
The left hand operand of the '>' operator has essentially Boolean type |
MISRAC2012-RULE_10_1-b-2 |
|
1021: |
The names of the identifiers '_a' and 'a' (line: 1006 in the 'core_mmu.c' file) differ only in the presence/absence of the
underscore character
|
MISRAC2012-DIR_4_5-a-4 |
|
1021: |
The names of the identifiers '_b' and 'b' (line: 1006 in the 'core_mmu.c' file) differ only in the presence/absence of the
underscore character
|
MISRAC2012-DIR_4_5-a-4 |
|
1021: |
The right hand operand of the '<' operator has essentially Boolean type |
MISRAC2012-RULE_10_1-b-2 |
|
1021: |
The right hand operand of the '>' operator has essentially Boolean type |
MISRAC2012-RULE_10_1-b-2 |
|
1021: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
1031: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
1031: |
Operands of the '-' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
1032: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
1032: |
Operands of the '-' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
1032: |
Operands of the '-' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
1032: |
The names of the identifiers 'end' and '__end' (line: 80 in the 'linker.h' file) differ only in the presence/absence of the
underscore character
|
MISRAC2012-DIR_4_5-a-4 |
|
1035: |
Operands of the '-' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
1035: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
1040: |
'for' statement in a function 'mem_map_add_id_map' should be followed by a block |
MISRAC2012-RULE_15_6-a-2 |
|
1041: |
Conditional statement 'if' in a function 'mem_map_add_id_map' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1042: |
Provide only one exit point in 'mem_map_add_id_map' function |
MISRAC2012-RULE_15_5-a-4 |
|
1045: |
The expression of the 'essentially Enum' type is assigned to an object with the 'essentially unsigned' type |
MISRAC2012-RULE_10_3-b-2 |
|
1051: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
1060: |
Provide only one exit point in 'mem_map_add_id_map' function |
MISRAC2012-RULE_15_5-a-4 |
|
1063: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
1064: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
1073: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
1083: |
Usage of 'qsort' function is not allowed |
MISRAC2012-RULE_21_9-a-2 |
|
1087: |
The right hand operand of the logical operator '&&' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
1088: |
Operands of the '+' operator have different essential types: 'int' and 'unsigned long' |
MISRAC2012-RULE_10_4-a-2 |
|
1089: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
1090: |
Operands of the '-' operator have different essential types: 'signed char' and 'unsigned int' |
MISRAC2012-RULE_10_4-a-2 |
|
1090: |
Operands of the '-' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
1090: |
Shifting operation should be enclosed with if checking that RHS operand does not exceed the upper limit (one less than the
width in bits of the underlying type of the LHS operand)
|
MISRAC2012-RULE_12_2-a-2 |
|
1095: |
Operands of the '<' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
1096: |
Conditional statement 'if' in a function 'init_mem_map' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1096: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
1097: |
Shifting operation should be enclosed with if checking that RHS operand does not exceed the upper limit (one less than the
width in bits of the underlying type of the LHS operand)
|
MISRAC2012-RULE_12_2-a-2 |
|
1099: |
The operands of a logical '&&' in function 'init_mem_map' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
1100: |
Function 'mem_map_add_id_map' called in the right-hand operand of a logical '&&' operator may cause side effect |
MISRAC2012-RULE_13_5-a-2 |
|
1100: |
The operands of a logical '&&' in function 'init_mem_map' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
1102: |
Operands of the '-' operator have different essential types: 'unsigned long' and 'int' |
MISRAC2012-RULE_10_4-a-2 |
|
1105: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
1113: |
Conditional statement 'if' in a function 'init_mem_map' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1117: |
Usage of 'qsort' function is not allowed |
MISRAC2012-RULE_21_9-a-2 |
|
1131: |
The expression of the 'essentially Enum' type in a switch statement's case label is converted to the 'essentially unsigned'
type
|
MISRAC2012-RULE_10_3-b-2 |
|
1137: |
Conditional statement 'if' in a function 'check_mem_map' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1140: |
The expression of the 'essentially Enum' type in a switch statement's case label is converted to the 'essentially unsigned'
type
|
MISRAC2012-RULE_10_3-b-2 |
|
1141: |
Conditional statement 'if' in a function 'check_mem_map' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1144: |
The expression of the 'essentially Enum' type in a switch statement's case label is converted to the 'essentially unsigned'
type
|
MISRAC2012-RULE_10_3-b-2 |
|
1145: |
Conditional statement 'if' in a function 'check_mem_map' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1148: |
The expression of the 'essentially Enum' type in a switch statement's case label is converted to the 'essentially unsigned'
type
|
MISRAC2012-RULE_10_3-b-2 |
|
1160: |
Every non empty default clause in a switch statement shall be terminated with a break statement |
MISRAC2012-RULE_16_1-d-2 |
|
1160: |
Every non empty default clause in a switch statement shall be terminated with a break statement |
MISRAC2012-RULE_16_3-b-2 |
|
1169: |
Pointer to void type should not be converted to pointer to object type 'struct tee_mmap_region *' |
MISRAC2012-RULE_11_5-a-4 |
|
1176: |
Unused function's "memset" return value |
MISRAC2012-RULE_17_7-a-2 |
|
1193: |
The 'core_init_mmu_map' function is also defined in other translation units |
MISRAC2012-RULE_8_6-a-2 |
|
1193: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
1196: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
1196: |
Operands of the '-' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
1201: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
1201: |
Operands of the '-' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
1201: |
Operands of the '-' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
1203: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
1212: |
The expression of the 'essentially Enum' type is assigned to an object with the 'essentially unsigned' type |
MISRAC2012-RULE_10_3-b-2 |
|
1213: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
1220: |
Missing statement or comment before terminating 'break' |
MISRAC2012-RULE_16_4-b-2 |
|
1220: |
Missing statement or comment before terminating 'break' |
MISRAC2012-RULE_16_1-f-2 |
|
1220: |
The 'switch' statement contains less than two switch-clauses |
MISRAC2012-RULE_16_6-a-2 |
|
1220: |
The 'switch' statement contains less than two switch-clauses |
MISRAC2012-RULE_16_1-h-2 |
|
1220: |
The result of comparison is always true or always false |
MISRAC2012-RULE_14_3-i-2 |
|
1228: |
Unused function's "memcpy" return value |
MISRAC2012-RULE_17_7-a-2 |
|
1238: |
Operands of the '&' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
1238: |
The right hand operand of the '&' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
1241: |
Provide only one exit point in 'core_mmu_mattr_is_ok' function |
MISRAC2012-RULE_15_5-a-4 |
|
1243: |
Provide only one exit point in 'core_mmu_mattr_is_ok' function |
MISRAC2012-RULE_15_5-a-4 |
|
1253: |
Identifiers given in declaration of 'core_pbuf_is' function (file: 'core_memprot.h', line: '61') are: 'flags' not: 'attr' |
MISRAC2012-RULE_8_3-b-2 |
|
1258: |
Conditional statement 'if' in a function 'core_pbuf_is' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1258: |
Operands of the '==' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
1259: |
Provide only one exit point in 'core_pbuf_is' function |
MISRAC2012-RULE_15_5-a-4 |
|
1262: |
The expression of the 'essentially Enum' type in a switch statement's case label is converted to the 'essentially unsigned'
type
|
MISRAC2012-RULE_10_3-b-2 |
|
1263: |
Provide only one exit point in 'core_pbuf_is' function |
MISRAC2012-RULE_15_5-a-4 |
|
1264: |
The expression of the 'essentially Enum' type in a switch statement's case label is converted to the 'essentially unsigned'
type
|
MISRAC2012-RULE_10_3-b-2 |
|
1265: |
Provide only one exit point in 'core_pbuf_is' function |
MISRAC2012-RULE_15_5-a-4 |
|
1265: |
The operands of a logical '||' in function 'core_pbuf_is' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
1266: |
Function 'pbuf_is_nsec_ddr' called in the right-hand operand of a logical '||' operator may cause side effect |
MISRAC2012-RULE_13_5-a-2 |
|
1266: |
The operands of a logical '||' in function 'core_pbuf_is' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
1267: |
The expression of the 'essentially Enum' type in a switch statement's case label is converted to the 'essentially unsigned'
type
|
MISRAC2012-RULE_10_3-b-2 |
|
1268: |
Provide only one exit point in 'core_pbuf_is' function |
MISRAC2012-RULE_15_5-a-4 |
|
1269: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
1270: |
The expression of the 'essentially Enum' type in a switch statement's case label is converted to the 'essentially unsigned'
type
|
MISRAC2012-RULE_10_3-b-2 |
|
1271: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
1271: |
Operands of the '+' operator have different essential types: 'int' and 'unsigned char' |
MISRAC2012-RULE_10_4-a-2 |
|
1271: |
Operands of the '-' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
1271: |
Provide only one exit point in 'core_pbuf_is' function |
MISRAC2012-RULE_15_5-a-4 |
|
1272: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
1272: |
Operands of the '+' operator have different essential types: 'int' and 'unsigned char' |
MISRAC2012-RULE_10_4-a-2 |
|
1272: |
Operands of the '-' operator have different essential types: 'int' and 'unsigned int' |
MISRAC2012-RULE_10_4-a-2 |
|
1272: |
Operands of the '-' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
1272: |
The left hand operand of the '&' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
1272: |
The operand of the '~' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
1272: |
The right hand operand of the '&' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
1274: |
The expression of the 'essentially Enum' type in a switch statement's case label is converted to the 'essentially unsigned'
type
|
MISRAC2012-RULE_10_3-b-2 |
|
1275: |
Provide only one exit point in 'core_pbuf_is' function |
MISRAC2012-RULE_15_5-a-4 |
|
1278: |
The expression of the 'essentially Enum' type in a switch statement's case label is converted to the 'essentially unsigned'
type
|
MISRAC2012-RULE_10_3-b-2 |
|
1279: |
Provide only one exit point in 'core_pbuf_is' function |
MISRAC2012-RULE_15_5-a-4 |
|
1280: |
The expression of the 'essentially Enum' type in a switch statement's case label is converted to the 'essentially unsigned'
type
|
MISRAC2012-RULE_10_3-b-2 |
|
1282: |
Conditional statement 'if' in a function 'core_pbuf_is' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1282: |
The operands of a logical '||' in function 'core_pbuf_is' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
1282: |
The operands of a logical '||' in function 'core_pbuf_is' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
1283: |
Provide only one exit point in 'core_pbuf_is' function |
MISRAC2012-RULE_15_5-a-4 |
|
1284: |
Operands of the '==' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
1284: |
Provide only one exit point in 'core_pbuf_is' function |
MISRAC2012-RULE_15_5-a-4 |
|
1284: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
1287: |
Provide only one exit point in 'core_pbuf_is' function |
MISRAC2012-RULE_15_5-a-4 |
|
1292: |
Identifiers given in declaration of 'core_vbuf_is' function (file: 'core_memprot.h', line: '67') are: 'flags' not: 'attr' |
MISRAC2012-RULE_8_3-b-2 |
|
1292: |
The function 'core_vbuf_is' is referenced only in the translation unit where it is defined |
MISRAC2012-RULE_8_7-a-4 |
|
1297: |
Conditional statement 'if' in a function 'core_vbuf_is' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1297: |
Operands of the '==' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
1298: |
Provide only one exit point in 'core_vbuf_is' function |
MISRAC2012-RULE_15_5-a-4 |
|
1300: |
Cast from 'const void *' removes 'const' qualifier |
MISRAC2012-RULE_11_8-a-2 |
|
1301: |
Conditional statement 'if' in a function 'core_vbuf_is' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1301: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
1302: |
Provide only one exit point in 'core_vbuf_is' function |
MISRAC2012-RULE_15_5-a-4 |
|
1304: |
Provide only one exit point in 'core_vbuf_is' function |
MISRAC2012-RULE_15_5-a-4 |
|
1308: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
1313: |
Conditional statement 'if' in a function 'core_va2pa_helper' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1313: |
Pointer to void type should not be converted to arithmetic type 'unsigned long' |
MISRAC2012-RULE_11_6-a-2 |
|
1314: |
Provide only one exit point in 'core_va2pa_helper' function |
MISRAC2012-RULE_15_5-a-4 |
|
1321: |
Conditional statement 'if' in a function 'core_va2pa_helper' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1321: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
1322: |
Pointer to void type should not be converted to arithmetic type 'unsigned long' |
MISRAC2012-RULE_11_6-a-2 |
|
1322: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
1324: |
An 'else' statement in a function 'core_va2pa_helper' shall be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1326: |
Provide only one exit point in 'core_va2pa_helper' function |
MISRAC2012-RULE_15_5-a-4 |
|
1331: |
Conditional statement 'if' in a function 'map_pa2va' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1332: |
Provide only one exit point in 'map_pa2va' function |
MISRAC2012-RULE_15_5-a-4 |
|
1334: |
Arithmetic type 'unsigned long' should not be converted to pointer to void type |
MISRAC2012-RULE_11_6-a-2 |
|
1334: |
Provide only one exit point in 'map_pa2va' function |
MISRAC2012-RULE_15_5-a-4 |
|
1334: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
1340: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
1342: |
The argument number '1' ('essentially unsigned' type) is passed to the function 'find_map_by_type' as a parameter with the
'essentially Enum' type
|
MISRAC2012-RULE_10_3-b-2 |
|
1344: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
1357: |
Conditional statement 'if' in a function 'core_mmu_get_type_by_pa' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1357: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
1358: |
Provide only one exit point in 'core_mmu_get_type_by_pa' function |
MISRAC2012-RULE_15_5-a-4 |
|
1359: |
Provide only one exit point in 'core_mmu_get_type_by_pa' function |
MISRAC2012-RULE_15_5-a-4 |
|
1359: |
The expression of the 'essentially unsigned' type is returned from function 'core_mmu_get_type_by_pa' with the 'essentially
Enum' type
|
MISRAC2012-RULE_10_3-b-2 |
|
1364: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
1364: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
1364: |
Potential macro 'CORE_MMU_PGDIR_SIZE' used as '1' parameter of potential macro 'assert' |
MISRAC2012-RULE_20_12-a-2 |
|
1364: |
Potential macro 'SMALL_PAGE_SIZE' used as '1' parameter of potential macro 'assert' |
MISRAC2012-RULE_20_12-a-2 |
|
1364: |
The operands of a logical '||' in function 'tlbi_mva_range' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
1364: |
The operands of a logical '||' in function 'tlbi_mva_range' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
1365: |
Operands of the '-' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
1365: |
Operands of the '-' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
1365: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
1365: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
1365: |
The operands of a logical '&&' in function 'tlbi_mva_range' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
1365: |
The operands of a logical '&&' in function 'tlbi_mva_range' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
1368: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
1370: |
Parameter 'len' is modified in function 'tlbi_mva_range' |
MISRAC2012-RULE_17_8-a-4 |
|
1371: |
Parameter 'va' is modified in function 'tlbi_mva_range' |
MISRAC2012-RULE_17_8-a-4 |
|
1379: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
1379: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
1379: |
Potential macro 'CORE_MMU_PGDIR_SIZE' used as '1' parameter of potential macro 'assert' |
MISRAC2012-RULE_20_12-a-2 |
|
1379: |
Potential macro 'SMALL_PAGE_SIZE' used as '1' parameter of potential macro 'assert' |
MISRAC2012-RULE_20_12-a-2 |
|
1379: |
The operands of a logical '||' in function 'tlbi_mva_range_asid' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
1379: |
The operands of a logical '||' in function 'tlbi_mva_range_asid' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
1380: |
Operands of the '-' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
1380: |
Operands of the '-' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
1380: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
1380: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
1380: |
The operands of a logical '&&' in function 'tlbi_mva_range_asid' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
1380: |
The operands of a logical '&&' in function 'tlbi_mva_range_asid' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
1383: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
1385: |
Parameter 'len' is modified in function 'tlbi_mva_range_asid' |
MISRAC2012-RULE_17_8-a-4 |
|
1386: |
Parameter 'va' is modified in function 'tlbi_mva_range_asid' |
MISRAC2012-RULE_17_8-a-4 |
|
1420: |
Integer constant '0xFFFF0009' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
1420: |
Provide only one exit point in 'cache_op_inner' function |
MISRAC2012-RULE_15_5-a-4 |
|
1422: |
Provide only one exit point in 'cache_op_inner' function |
MISRAC2012-RULE_15_5-a-4 |
|
1464: |
The basic numerical type 'unsigned' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
1464: |
The function 'core_mmu_set_entry' is referenced only in the translation unit where it is defined |
MISRAC2012-RULE_8_7-a-4 |
|
1472: |
Pass parameter "tbl_info" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
1472: |
The basic numerical type 'unsigned' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
1472: |
The function 'core_mmu_get_entry' is referenced only in the translation unit where it is defined |
MISRAC2012-RULE_8_7-a-4 |
|
1481: |
Pass parameter "region" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
1483: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
1483: |
The names of the identifiers 'end' and '__end' (line: 80 in the 'linker.h' file) differ only in the presence/absence of the
underscore character
|
MISRAC2012-DIR_4_5-a-4 |
|
1484: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
1487: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
1488: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
1489: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
1501: |
Pass parameter "region" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
1503: |
The basic numerical type 'unsigned' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
1503: |
The names of the identifiers 'end' and '__end' (line: 80 in the 'linker.h' file) differ only in the presence/absence of the
underscore character
|
MISRAC2012-DIR_4_5-a-4 |
|
1504: |
The basic numerical type 'unsigned' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
1508: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
1509: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
1510: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
1519: |
Operands of the '+=' operator have different essential types: 'unsigned long' and 'int' |
MISRAC2012-RULE_10_4-a-2 |
|
1519: |
Shifting operation should be enclosed with if checking that RHS operand does not exceed the upper limit (one less than the
width in bits of the underlying type of the LHS operand)
|
MISRAC2012-RULE_12_2-a-2 |
|
1519: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
1524: |
A tag name 'pgt' is reused |
MISRAC2012-RULE_5_7-a-2 |
|
1524: |
Identifier 'pgt' is hiding an identifier from global or namespace scope |
MISRAC2012-RULE_5_3-a-2 |
|
1532: |
The names of the identifiers 'end' and '__end' (line: 80 in the 'linker.h' file) differ only in the presence/absence of the
underscore character
|
MISRAC2012-DIR_4_5-a-4 |
|
1533: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
1536: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
1536: |
The operands of a logical '||' in function 'set_pg_region' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
1537: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
1537: |
The operands of a logical '||' in function 'set_pg_region' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
1541: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
1563: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
1573: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
1573: |
Reserved name '_a' used |
MISRAC2012-RULE_21_2-a-2 |
|
1573: |
Reserved name '_b' used |
MISRAC2012-RULE_21_2-a-2 |
|
1573: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
1577: |
Shifting operation should be enclosed with if checking that RHS operand does not exceed the upper limit (one less than the
width in bits of the underlying type of the LHS operand)
|
MISRAC2012-RULE_12_2-a-2 |
|
1577: |
The value of a composite expression (8 bit essential type) is assigned to an object with wider essential type (64 bit) |
MISRAC2012-RULE_10_6-a-2 |
|
1578: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
1580: |
Reserved name '_a' used |
MISRAC2012-RULE_21_2-a-2 |
|
1580: |
Reserved name '_b' used |
MISRAC2012-RULE_21_2-a-2 |
|
1580: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
1582: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
1582: |
Operands of the '-' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
1582: |
Operands of the '-' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
1584: |
Conditional statement 'if' in a function 'set_pg_region' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1584: |
Operands of the '!=' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
1595: |
Parameter 'mm' is not used in function 'can_map_at_level' |
MISRAC2012-RULE_2_7-a-4 |
|
1595: |
Pass parameter "mm" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
1599: |
Conditional statement 'if' in a function 'can_map_at_level' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1599: |
Operands of the '-' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
1599: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
1600: |
Provide only one exit point in 'can_map_at_level' function |
MISRAC2012-RULE_15_5-a-4 |
|
1603: |
Conditional statement 'if' in a function 'can_map_at_level' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1604: |
Provide only one exit point in 'can_map_at_level' function |
MISRAC2012-RULE_15_5-a-4 |
|
1615: |
Provide only one exit point in 'can_map_at_level' function |
MISRAC2012-RULE_15_5-a-4 |
|
1621: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
1624: |
The expression of the 'essentially unsigned' type is assigned to an object with the 'essentially signed' type |
MISRAC2012-RULE_10_3-b-2 |
|
1625: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
1629: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
1629: |
Operands of the '-' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
1629: |
Potential macro 'SMALL_PAGE_MASK' used as '1' parameter of potential macro 'assert' |
MISRAC2012-RULE_20_12-a-2 |
|
1629: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
1635: |
Potential macro 'CORE_MMU_PGDIR_LEVEL' used as '1' parameter of potential macro 'assert' |
MISRAC2012-RULE_20_12-a-2 |
|
1637: |
The argument number '3' ('essentially signed' type) is passed to the function 'core_mmu_find_table' as a parameter with the
'essentially unsigned' type
|
MISRAC2012-RULE_10_3-b-2 |
|
1639: |
Conditional statement 'if' in a function 'core_mmu_map_region' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1644: |
The argument number '3' ('essentially signed' type) is passed to the function 'can_map_at_level' as a parameter with the 'essentially
unsigned' type
|
MISRAC2012-RULE_10_3-b-2 |
|
1645: |
Shifting operation should be enclosed with if checking that RHS operand does not exceed the upper limit (one less than the
width in bits of the underlying type of the LHS operand)
|
MISRAC2012-RULE_12_2-a-2 |
|
1645: |
The argument number '4' ('essentially signed' type) is passed to the function 'can_map_at_level' as a parameter with the 'essentially
unsigned' type
|
MISRAC2012-RULE_10_3-b-2 |
|
1645: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
1650: |
Conditional statement 'if' in a function 'core_mmu_map_region' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1651: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
1651: |
The argument number '3' ('essentially unsigned' type) is passed to the function 'core_mmu_entry_to_finer_grained' as a parameter
with the 'essentially Boolean' type
|
MISRAC2012-RULE_10_3-b-2 |
|
1659: |
Conditional statement 'if' in a function 'core_mmu_map_region' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1659: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
1663: |
Operands of the '+=' operator have different essential types: 'unsigned long' and 'int' |
MISRAC2012-RULE_10_4-a-2 |
|
1663: |
Shifting operation should be enclosed with if checking that RHS operand does not exceed the upper limit (one less than the
width in bits of the underlying type of the LHS operand)
|
MISRAC2012-RULE_12_2-a-2 |
|
1663: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
1664: |
Operands of the '+=' operator have different essential types: 'unsigned long' and 'int' |
MISRAC2012-RULE_10_4-a-2 |
|
1664: |
Shifting operation should be enclosed with if checking that RHS operand does not exceed the upper limit (one less than the
width in bits of the underlying type of the LHS operand)
|
MISRAC2012-RULE_12_2-a-2 |
|
1664: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
1665: |
Essential type of LHS operand (64 bit) is wider than essential type of composite expression in RHS operand (32 bit) |
MISRAC2012-RULE_10_7-a-2 |
|
1665: |
Shifting operation should be enclosed with if checking that RHS operand does not exceed the upper limit (one less than the
width in bits of the underlying type of the LHS operand)
|
MISRAC2012-RULE_12_2-a-2 |
|
1665: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
1672: |
Pass parameter "pages" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
1678: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
1685: |
Potential macro 'TEE_MATTR_PX' used as '1' parameter of potential macro 'assert' |
MISRAC2012-RULE_20_12-a-2 |
|
1685: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
1687: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
1687: |
The expression of the 'essentially unsigned' type is assigned to an object with the 'essentially Boolean' type |
MISRAC2012-RULE_10_3-b-2 |
|
1689: |
Conditional statement 'if' in a function 'core_mmu_map_pages' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1689: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
1689: |
Operands of the '-' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
1689: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
1690: |
Integer constant '0xFFFF0006' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
1690: |
Provide only one exit point in 'core_mmu_map_pages' function |
MISRAC2012-RULE_15_5-a-4 |
|
1694: |
Arithmetic type 'unsigned long' should not be converted to pointer to void type |
MISRAC2012-RULE_11_6-a-2 |
|
1695: |
Conditional statement 'if' in a function 'core_mmu_map_pages' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1695: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
1695: |
Operands of the '-' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
1695: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
1695: |
The operands of a logical '||' in function 'core_mmu_map_pages' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
1695: |
The operands of a logical '||' in function 'core_mmu_map_pages' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
1695: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
1695: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
1698: |
Conditional statement 'if' in a function 'core_mmu_map_pages' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1702: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
1702: |
Operands of the '-' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
1702: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
1703: |
Integer constant '0xFFFF0006' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
1704: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
1708: |
Conditional statement 'if' in a function 'core_mmu_map_pages' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1708: |
Operands of the '*' operator have different essential types: 'int' and 'unsigned char' |
MISRAC2012-RULE_10_4-a-2 |
|
1708: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
1713: |
Conditional statement 'if' in a function 'core_mmu_map_pages' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1713: |
Operands of the '==' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
1717: |
Conditional statement 'if' in a function 'core_mmu_map_pages' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1723: |
Conditional statement 'if' in a function 'core_mmu_map_pages' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1723: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
1728: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
1739: |
Provide only one exit point in 'core_mmu_map_pages' function |
MISRAC2012-RULE_15_5-a-4 |
|
1743: |
Conditional statement 'if' in a function 'core_mmu_map_pages' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1743: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
1746: |
Provide only one exit point in 'core_mmu_map_pages' function |
MISRAC2012-RULE_15_5-a-4 |
|
1755: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
1763: |
Potential macro 'TEE_MATTR_PX' used as '1' parameter of potential macro 'assert' |
MISRAC2012-RULE_20_12-a-2 |
|
1763: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
1765: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
1765: |
The expression of the 'essentially unsigned' type is assigned to an object with the 'essentially Boolean' type |
MISRAC2012-RULE_10_3-b-2 |
|
1767: |
Conditional statement 'if' in a function 'core_mmu_map_contiguous_pages' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1767: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
1767: |
Operands of the '-' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
1767: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
1768: |
Integer constant '0xFFFF0006' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
1768: |
Provide only one exit point in 'core_mmu_map_contiguous_pages' function |
MISRAC2012-RULE_15_5-a-4 |
|
1772: |
Arithmetic type 'unsigned long' should not be converted to pointer to void type |
MISRAC2012-RULE_11_6-a-2 |
|
1773: |
Conditional statement 'if' in a function 'core_mmu_map_contiguous_pages' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1773: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
1773: |
Operands of the '-' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
1773: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
1773: |
The operands of a logical '||' in function 'core_mmu_map_contiguous_pages' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
1773: |
The operands of a logical '||' in function 'core_mmu_map_contiguous_pages' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
1773: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
1773: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
1776: |
Conditional statement 'if' in a function 'core_mmu_map_contiguous_pages' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1781: |
Conditional statement 'if' in a function 'core_mmu_map_contiguous_pages' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1781: |
Operands of the '*' operator have different essential types: 'int' and 'unsigned char' |
MISRAC2012-RULE_10_4-a-2 |
|
1781: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
1786: |
Conditional statement 'if' in a function 'core_mmu_map_contiguous_pages' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1786: |
Operands of the '==' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
1790: |
Conditional statement 'if' in a function 'core_mmu_map_contiguous_pages' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1796: |
Conditional statement 'if' in a function 'core_mmu_map_contiguous_pages' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1796: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
1801: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
1802: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
1813: |
Provide only one exit point in 'core_mmu_map_contiguous_pages' function |
MISRAC2012-RULE_15_5-a-4 |
|
1821: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
1826: |
Arithmetic type 'unsigned long' should not be converted to pointer to void type |
MISRAC2012-RULE_11_6-a-2 |
|
1827: |
Conditional statement 'if' in a function 'core_mmu_unmap_pages' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1827: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
1827: |
Operands of the '-' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
1827: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
1827: |
The operands of a logical '||' in function 'core_mmu_unmap_pages' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
1827: |
The operands of a logical '||' in function 'core_mmu_unmap_pages' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
1827: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
1827: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
1830: |
Conditional statement 'if' in a function 'core_mmu_unmap_pages' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1833: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
1833: |
Disallowed comma operator is used in function 'core_mmu_unmap_pages' |
MISRAC2012-RULE_12_3-a-4 |
|
1833: |
Parameter 'vstart' is modified in function 'core_mmu_unmap_pages' |
MISRAC2012-RULE_17_8-a-4 |
|
1833: |
The '++' operator should cause the only side effect in an expression |
MISRAC2012-RULE_13_3-a-4 |
|
1833: |
The third clause of a 'for' statement should not contain a comma operator |
MISRAC2012-RULE_14_2-d-2 |
|
1834: |
Conditional statement 'if' in a function 'core_mmu_unmap_pages' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1834: |
Operands of the '*' operator have different essential types: 'int' and 'unsigned char' |
MISRAC2012-RULE_10_4-a-2 |
|
1834: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
1837: |
Conditional statement 'if' in a function 'core_mmu_unmap_pages' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1837: |
Operands of the '!=' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
1852: |
A tag name 'pgt_cache' is reused |
MISRAC2012-RULE_5_7-a-2 |
|
1852: |
Identifier 'pgt_cache' is hiding an identifier from global or namespace scope |
MISRAC2012-RULE_5_3-a-2 |
|
1853: |
A tag name 'pgt' is reused |
MISRAC2012-RULE_5_7-a-2 |
|
1853: |
Identifier 'pgt' is hiding an identifier from global or namespace scope |
MISRAC2012-RULE_5_3-a-2 |
|
1859: |
Conditional statement 'if' in a function 'core_mmu_populate_user_map' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1859: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
1860: |
'return' statement should be at the end of the 'core_mmu_populate_user_map' function |
MISRAC2012-RULE_15_5-a-4 |
|
1861: |
Pointer to object type 'struct vm_region **' is cast to pointer to different object type 'struct vm_region_head *' |
MISRAC2012-RULE_11_3-a-2 |
|
1867: |
Operands of the '-' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
1867: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
1870: |
Operands of the '+' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
1872: |
'for' statement in a function 'core_mmu_populate_user_map' should be followed by a block |
MISRAC2012-RULE_15_6-a-2 |
|
1872: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
| +
|
1884: |
Value of "i" is never used |
MISRAC2012-RULE_2_2-b-2 |
| |
|
Point where value is declared
Point where value is declared
core_mmu.c (1884): ptrdiff_t i = 0; |
|
| +
|
1885: |
Value of "p" is never used |
MISRAC2012-RULE_2_2-b-2 |
| |
|
Point where value is declared
Point where value is declared
core_mmu.c (1885): paddr_t p = 0; |
|
| +
|
1886: |
Value of "l" is never used |
MISRAC2012-RULE_2_2-b-2 |
| |
|
Point where value is declared
Point where value is declared
core_mmu.c (1886): size_t l = 0; |
|
|
1889: |
Conditional statement 'if' in a function 'core_mmu_remove_mapping' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1889: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
1890: |
Integer constant '0xFFFF0000' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
1890: |
Provide only one exit point in 'core_mmu_remove_mapping' function |
MISRAC2012-RULE_15_5-a-4 |
|
1893: |
Conditional statement 'if' in a function 'core_mmu_remove_mapping' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1893: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
1894: |
Integer constant '0xFFFF0000' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
1894: |
Provide only one exit point in 'core_mmu_remove_mapping' function |
MISRAC2012-RULE_15_5-a-4 |
|
1895: |
Conditional statement 'if' in a function 'core_mmu_remove_mapping' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1895: |
Operands of the '*' operator have different essential types: 'int' and 'unsigned char' |
MISRAC2012-RULE_10_4-a-2 |
|
1895: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
1896: |
Integer constant '0xFFFF0000' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
1896: |
Provide only one exit point in 'core_mmu_remove_mapping' function |
MISRAC2012-RULE_15_5-a-4 |
|
1897: |
Shifting operation should be enclosed with if checking that RHS operand does not exceed the upper limit (one less than the
width in bits of the underlying type of the LHS operand)
|
MISRAC2012-RULE_12_2-a-2 |
|
1897: |
The value of a composite expression (8 bit essential type) is assigned to an object with wider essential type (64 bit) |
MISRAC2012-RULE_10_6-a-2 |
| +
|
1897: |
Value of "granule" is never used |
MISRAC2012-RULE_2_2-b-2 |
| |
|
Point where value is declared
Point where value is declared
core_mmu.c (1897): granule = BIT(tbl_info.shift); |
|
|
1899: |
Conditional statement 'if' in a function 'core_mmu_remove_mapping' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1899: |
The operands of a logical '||' in function 'core_mmu_remove_mapping' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
1900: |
The operands of a logical '||' in function 'core_mmu_remove_mapping' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
1900: |
The variable 'static_memory_map' used as the left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
1900: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
1901: |
Integer constant '0xFFFF0000' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
1901: |
Provide only one exit point in 'core_mmu_remove_mapping' function |
MISRAC2012-RULE_15_5-a-4 |
|
1905: |
Operands of the '-' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
1906: |
Operands of the '-' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
1906: |
Operands of the '-' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
1906: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
1907: |
Conditional statement 'if' in a function 'core_mmu_remove_mapping' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1907: |
The operands of a logical '||' in function 'core_mmu_remove_mapping' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
1907: |
The operands of a logical '||' in function 'core_mmu_remove_mapping' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
1908: |
Integer constant '0xFFFF0000' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
1908: |
Provide only one exit point in 'core_mmu_remove_mapping' function |
MISRAC2012-RULE_15_5-a-4 |
|
1914: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
1920: |
The variable 'map' used as the left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
1920: |
Unused function's "memmove" return value |
MISRAC2012-RULE_17_7-a-2 |
|
1921: |
Operands of the '-' operator have different essential types: 'unsigned long' and 'long' |
MISRAC2012-RULE_10_4-a-2 |
|
1921: |
Operands of the '-' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
1924: |
The left hand side operand of the '-' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
1924: |
The variable 'static_memory_map' used as the left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
1924: |
Unused function's "memset" return value |
MISRAC2012-RULE_17_7-a-2 |
|
1924: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
1927: |
Provide only one exit point in 'core_mmu_remove_mapping' function |
MISRAC2012-RULE_15_5-a-4 |
|
1939: |
Conditional statement 'if' in a function 'core_mmu_add_mapping' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1939: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
1940: |
Provide only one exit point in 'core_mmu_add_mapping' function |
MISRAC2012-RULE_15_5-a-4 |
|
1942: |
Conditional statement 'if' in a function 'core_mmu_add_mapping' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1943: |
Provide only one exit point in 'core_mmu_add_mapping' function |
MISRAC2012-RULE_15_5-a-4 |
|
1947: |
Conditional statement 'if' in a function 'core_mmu_add_mapping' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1947: |
The left hand operand of the logical operator '&&' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
1947: |
The operands of a logical '&&' in function 'core_mmu_add_mapping' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
1948: |
Provide only one exit point in 'core_mmu_add_mapping' function |
MISRAC2012-RULE_15_5-a-4 |
|
1952: |
Conditional statement 'if' in a function 'core_mmu_add_mapping' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1952: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
1953: |
Provide only one exit point in 'core_mmu_add_mapping' function |
MISRAC2012-RULE_15_5-a-4 |
|
1955: |
Conditional statement 'if' in a function 'core_mmu_add_mapping' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1955: |
Operands of the '*' operator have different essential types: 'int' and 'unsigned char' |
MISRAC2012-RULE_10_4-a-2 |
|
1955: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
1956: |
Provide only one exit point in 'core_mmu_add_mapping' function |
MISRAC2012-RULE_15_5-a-4 |
|
1958: |
Shifting operation should be enclosed with if checking that RHS operand does not exceed the upper limit (one less than the
width in bits of the underlying type of the LHS operand)
|
MISRAC2012-RULE_12_2-a-2 |
|
1958: |
The expression of the 'essentially signed' type is assigned to an object with the 'essentially unsigned' type |
MISRAC2012-RULE_10_3-b-2 |
|
1958: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
1959: |
Operands of the '-' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
1960: |
Operands of the '-' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
1960: |
Operands of the '-' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
1960: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
1963: |
Conditional statement 'if' in a function 'core_mmu_add_mapping' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1964: |
Provide only one exit point in 'core_mmu_add_mapping' function |
MISRAC2012-RULE_15_5-a-4 |
|
1971: |
Conditional statement 'if' in a function 'core_mmu_add_mapping' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
1972: |
Provide only one exit point in 'core_mmu_add_mapping' function |
MISRAC2012-RULE_15_5-a-4 |
|
1976: |
'while' statement in a function 'core_mmu_add_mapping' should be followed by a block |
MISRAC2012-RULE_15_6-a-2 |
|
1976: |
The variable 'static_memory_map' used as the left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
1979: |
Operands of the '-' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
1983: |
Operands of the '+' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
1983: |
The expression of the 'essentially Enum' type is assigned to an object with the 'essentially unsigned' type |
MISRAC2012-RULE_10_3-b-2 |
|
1986: |
The variable 'static_memory_map' used as the left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
1994: |
The expression of the 'essentially Enum' type is assigned to an object with the 'essentially unsigned' type |
MISRAC2012-RULE_10_3-b-2 |
|
1995: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with a narrower essential type (4 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
2004: |
Provide only one exit point in 'core_mmu_add_mapping' function |
MISRAC2012-RULE_15_5-a-4 |
|
2007: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
2010: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
2011: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
2013: |
'for' statement in a function 'asid_alloc' should be followed by a block |
MISRAC2012-RULE_15_6-a-2 |
|
2013: |
Conditional statement 'if' in a function 'asid_alloc' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
2013: |
Disallowed comma operator is used in function 'asid_alloc' |
MISRAC2012-RULE_12_3-a-4 |
|
2013: |
Left-hand operand of right-shift operator is an expression of ' int' type |
MISRAC2012-RULE_1_3-o-2 |
|
2013: |
Operands of the '!=' operator have different essential types: 'unsigned char' and 'short' |
MISRAC2012-RULE_10_4-a-2 |
|
2013: |
Operands of the '&' operator have different essential types: 'unsigned char' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
2013: |
Reserved name '_byte' used |
MISRAC2012-RULE_21_2-a-2 |
|
2013: |
Reserved name '_lb' used |
MISRAC2012-RULE_21_2-a-2 |
|
2013: |
Reserved name '_name' used |
MISRAC2012-RULE_21_2-a-2 |
|
2013: |
Reserved name '_nbits' used |
MISRAC2012-RULE_21_2-a-2 |
|
2013: |
Reserved name '_stopbyte' used |
MISRAC2012-RULE_21_2-a-2 |
|
2013: |
Reserved name '_value' used |
MISRAC2012-RULE_21_2-a-2 |
|
2013: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
2013: |
The '++' operator should cause the only side effect in an expression |
MISRAC2012-RULE_13_3-a-4 |
|
2013: |
The left hand operand of the '<<' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
2013: |
The left hand operand of the '>>' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
2013: |
The right hand operand of the '&' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
2013: |
The third clause of a 'for' statement should not contain a comma operator |
MISRAC2012-RULE_14_2-d-2 |
|
2017: |
Left-hand operand of right-shift operator is a variable 'i' of 'signed int' type |
MISRAC2012-RULE_1_3-o-2 |
|
2017: |
Operands of the '|=' operator have different essential types: 'unsigned char' and 'int' |
MISRAC2012-RULE_10_4-a-2 |
|
2017: |
Shifting operation should be enclosed with if checking that RHS operand lies between zero and one less than the width in bits
of the underlying type of the LHS operand
|
MISRAC2012-RULE_12_2-a-2 |
|
2017: |
The left hand operand of the '&' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
2017: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
2017: |
The left hand operand of the '>>' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
2017: |
The right hand operand of the '&' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
2017: |
The right hand operand of the '|=' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
2017: |
The right hand operand of the shift operator '<<' has essentially signed type 'int' |
MISRAC2012-RULE_10_1-f-2 |
|
2018: |
The expression of the 'essentially signed' type is assigned to an object with the 'essentially unsigned' type |
MISRAC2012-RULE_10_3-b-2 |
|
2025: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
2030: |
Operands of the '&' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
2030: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
2030: |
The right hand operand of the '&' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
2032: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
2033: |
Operands of the '-' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
2033: |
Operands of the '/' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
2033: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
2033: |
The expression of the 'essentially unsigned' type is assigned to an object with the 'essentially signed' type |
MISRAC2012-RULE_10_3-b-2 |
|
2035: |
Left-hand operand of right-shift operator is a variable 'i' of 'signed int' type |
MISRAC2012-RULE_1_3-o-2 |
|
2035: |
Operands of the '&' operator have different essential types: 'unsigned char' and 'int' |
MISRAC2012-RULE_10_4-a-2 |
|
2035: |
Potential macro 'MMU_NUM_ASID_PAIRS' used as '1' parameter of potential macro 'assert' |
MISRAC2012-RULE_20_12-a-2 |
|
2035: |
Potential macro 'bit_test' used as '1' parameter of potential macro 'assert' |
MISRAC2012-RULE_20_12-a-2 |
|
2035: |
Shifting operation should be enclosed with if checking that RHS operand lies between zero and one less than the width in bits
of the underlying type of the LHS operand
|
MISRAC2012-RULE_12_2-a-2 |
|
2035: |
The left hand operand of the '&' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
2035: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
2035: |
The left hand operand of the '>>' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
2035: |
The operands of a logical '&&' in function 'asid_free' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
2035: |
The right hand operand of the '&' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
2035: |
The right hand operand of the '&' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
2035: |
The right hand operand of the logical operator '&&' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
2035: |
The right hand operand of the shift operator '<<' has essentially signed type 'int' |
MISRAC2012-RULE_10_1-f-2 |
|
2036: |
Left-hand operand of right-shift operator is a variable 'i' of 'signed int' type |
MISRAC2012-RULE_1_3-o-2 |
|
2036: |
Operands of the '&=' operator have different essential types: 'unsigned char' and 'int' |
MISRAC2012-RULE_10_4-a-2 |
|
2036: |
Shifting operation should be enclosed with if checking that RHS operand lies between zero and one less than the width in bits
of the underlying type of the LHS operand
|
MISRAC2012-RULE_12_2-a-2 |
|
2036: |
The left hand operand of the '&' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
2036: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
2036: |
The left hand operand of the '>>' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
2036: |
The operand of the '~' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
2036: |
The right hand operand of the '&' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
2036: |
The right hand operand of the '&=' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
2036: |
The right hand operand of the shift operator '<<' has essentially signed type 'int' |
MISRAC2012-RULE_10_1-f-2 |
|
2044: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
2044: |
The argument number '1' ('essentially signed' type) is passed to the function 'thread_mask_exceptions' as a parameter with
the 'essentially unsigned' type
|
MISRAC2012-RULE_10_3-b-2 |
|
2044: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
2044: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
2044: |
The left hand operand of the '>>' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
2044: |
The left hand operand of the '>>' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
2044: |
The left hand operand of the '|' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
2044: |
The right hand operand of the '|' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
2062: |
Pointer to void type should not be converted to arithmetic type 'unsigned long' |
MISRAC2012-RULE_11_6-a-2 |
|
2065: |
Operands of the '-' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
2067: |
Conditional statement 'if' in a function 'arm_va2pa_helper' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
2067: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
2068: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
2070: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
2070: |
Operands of the '&' operator have different essential types: 'unsigned long' and 'int' |
MISRAC2012-RULE_10_4-a-2 |
|
2070: |
Pointer to void type should not be converted to arithmetic type 'unsigned long' |
MISRAC2012-RULE_11_6-a-2 |
|
2070: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
2070: |
The right hand operand of the '&' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
2089: |
Integer constant '0xFFFF0000' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
2090: |
Pointer to void type should not be converted to arithmetic type 'unsigned long' |
MISRAC2012-RULE_11_6-a-2 |
| +
|
2092: |
Value of "ti" is never used |
MISRAC2012-RULE_2_2-b-2 |
| |
|
Point where value is declared
Point where value is declared
core_mmu.c (2092): struct core_mmu_table_info ti __maybe_unused = { }; |
|
|
2099: |
The operands of a logical '&&' in function 'check_pa_matches_va' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
2100: |
Operands of the '-' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
2100: |
The operands of a logical '&&' in function 'check_pa_matches_va' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
2100: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
2102: |
Conditional statement 'if' in a function 'check_pa_matches_va' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
2102: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
2104: |
Provide only one exit point in 'check_pa_matches_va' function |
MISRAC2012-RULE_15_5-a-4 |
|
2109: |
Conditional statement 'if' in a function 'check_pa_matches_va' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
2109: |
Integer constant '0xFFFF000A' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
2110: |
Provide only one exit point in 'check_pa_matches_va' function |
MISRAC2012-RULE_15_5-a-4 |
|
2111: |
Conditional statement 'if' in a function 'check_pa_matches_va' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
2111: |
Operands of the '==' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
2111: |
The operands of a logical '&&' in function 'check_pa_matches_va' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
2111: |
The operands of a logical '&&' in function 'check_pa_matches_va' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
2113: |
Conditional statement 'if' in a function 'check_pa_matches_va' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
2113: |
Operands of the '!=' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
2113: |
The operands of a logical '&&' in function 'check_pa_matches_va' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
2113: |
The right hand operand of the logical operator '&&' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
2115: |
Provide only one exit point in 'check_pa_matches_va' function |
MISRAC2012-RULE_15_5-a-4 |
|
2149: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
2151: |
The left hand operand of the logical operator '&&' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
2151: |
The operands of a logical '&&' in function 'check_pa_matches_va' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
2157: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
2174: |
Conditional statement 'if' in a function 'virt_to_phys' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
2185: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
2186: |
'return' statement should be at the end of the 'check_va_matches_pa' function |
MISRAC2012-RULE_15_5-a-4 |
|
2203: |
Provide only one exit point in 'phys_to_virt_ta_vaspace' function |
MISRAC2012-RULE_15_5-a-4 |
|
2205: |
Provide only one exit point in 'phys_to_virt_ta_vaspace' function |
MISRAC2012-RULE_15_5-a-4 |
|
2221: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
2223: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
2225: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
2227: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
2253: |
Every non empty default clause in a switch statement shall be terminated with a break statement |
MISRAC2012-RULE_16_1-d-2 |
|
2253: |
Every non empty default clause in a switch statement shall be terminated with a break statement |
MISRAC2012-RULE_16_3-b-2 |
|
2261: |
The function 'phys_to_virt_io' is referenced only in the translation unit where it is defined |
MISRAC2012-RULE_8_7-a-4 |
|
2267: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
2269: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
2270: |
Provide only one exit point in 'phys_to_virt_io' function |
MISRAC2012-RULE_15_5-a-4 |
|
2273: |
Provide only one exit point in 'phys_to_virt_io' function |
MISRAC2012-RULE_15_5-a-4 |
|
2286: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
2286: |
The first operand of the conditional operator '?:' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
2292: |
Pointer to void type should not be converted to arithmetic type 'unsigned long' |
MISRAC2012-RULE_11_6-a-2 |
|
2292: |
Provide only one exit point in 'core_mmu_get_va' function |
MISRAC2012-RULE_15_5-a-4 |
|
2294: |
Provide only one exit point in 'core_mmu_get_va' function |
MISRAC2012-RULE_15_5-a-4 |
|
2305: |
Parameter 'va' is not used in function 'is_unpaged' |
MISRAC2012-RULE_2_7-a-4 |
|
2305: |
Pass parameter "va" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
2320: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
2322: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
2323: |
Pointer to void type should not be converted to arithmetic type 'unsigned long' |
MISRAC2012-RULE_11_6-a-2 |
|
2324: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
2325: |
Provide only one exit point in 'io_pa_or_va' function |
MISRAC2012-RULE_15_5-a-4 |
|
2327: |
Provide only one exit point in 'io_pa_or_va' function |
MISRAC2012-RULE_15_5-a-4 |
|
2332: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
2334: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
2335: |
Pointer to void type should not be converted to arithmetic type 'unsigned long' |
MISRAC2012-RULE_11_6-a-2 |
|
2336: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
2337: |
Provide only one exit point in 'io_pa_or_va_secure' function |
MISRAC2012-RULE_15_5-a-4 |
|
2339: |
Provide only one exit point in 'io_pa_or_va_secure' function |
MISRAC2012-RULE_15_5-a-4 |
|
2344: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
2346: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
2347: |
Pointer to void type should not be converted to arithmetic type 'unsigned long' |
MISRAC2012-RULE_11_6-a-2 |
|
2348: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
2349: |
Provide only one exit point in 'io_pa_or_va_nsec' function |
MISRAC2012-RULE_15_5-a-4 |
|
2351: |
Provide only one exit point in 'io_pa_or_va_nsec' function |
MISRAC2012-RULE_15_5-a-4 |
|
2361: |
The argument number '1' ('essentially Enum' type) is passed to the function 'core_mmu_get_mem_by_type' as a parameter with
the 'essentially unsigned' type
|
MISRAC2012-RULE_10_3-b-2 |
|
2363: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
2363: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
2363: |
Operands of the '-' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
2363: |
Operands of the '-' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
2363: |
The operands of a logical '||' in function 'teecore_init_pub_ram' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
2363: |
The operands of a logical '||' in function 'teecore_init_pub_ram' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
2363: |
The operands of a logical '||' in function 'teecore_init_pub_ram' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
2363: |
The right hand operand of the logical operator '||' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
2367: |
Arithmetic type 'unsigned long' should not be converted to pointer to void type |
MISRAC2012-RULE_11_6-a-2 |
|
2367: |
The argument number '1' ('essentially Enum' type) is passed to the function 'core_vbuf_is' as a parameter with the 'essentially
unsigned' type
|
MISRAC2012-RULE_10_3-b-2 |
|
2377: |
Arithmetic type 'unsigned long' should not be converted to pointer to void type |
MISRAC2012-RULE_11_6-a-2 |
|
2382: |
Reserved name '__scattered_array_6initcall' used |
MISRAC2012-RULE_21_2-a-2 |
|
2397: |
The argument number '1' ('essentially Enum' type) is passed to the function 'core_mmu_get_mem_by_type' as a parameter with
the 'essentially unsigned' type
|
MISRAC2012-RULE_10_3-b-2 |
|
2401: |
Arithmetic type 'unsigned long' should not be converted to pointer to void type |
MISRAC2012-RULE_11_6-a-2 |
|
2402: |
Arithmetic type 'unsigned long' should not be converted to pointer to void type |
MISRAC2012-RULE_11_6-a-2 |
|
2402: |
Operands of the '+' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
2402: |
Operands of the '-' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
2404: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
2404: |
Operands of the '-' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
2404: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
2404: |
The operands of a logical '||' in function 'core_mmu_init_ta_ram' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
2404: |
The right hand operand of the logical operator '||' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
2405: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
2405: |
Operands of the '-' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
2405: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
2405: |
The operands of a logical '||' in function 'core_mmu_init_ta_ram' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
2409: |
The argument number '1' ('essentially Enum' type) is passed to the function 'core_pbuf_is' as a parameter with the 'essentially
unsigned' type
|
MISRAC2012-RULE_10_3-b-2 |
|
2417: |
Unused function's "tee_mm_init" return value |
MISRAC2012-RULE_17_7-a-2 |
| /optee_os_MISRA/optee_os_ruchi393_core/arch/arm/mm/core_mmu_lpae.c |
|
86: |
Do not define function-like macro: debug_print |
MISRAC2012-DIR_4_9-a-4 |
|
88: |
Do not define function-like macro: debug_print |
MISRAC2012-DIR_4_9-a-4 |
|
96: |
An unused macro declaration 'INVALID_DESC' has been found |
MISRAC2012-RULE_2_5-a-4 |
|
102: |
Lowercase 'l' is used to indicate long: 1ull |
MISRAC2012-RULE_7_3-a-2 |
|
103: |
Lowercase 'l' is used to indicate long: 1ull |
MISRAC2012-RULE_7_3-a-2 |
|
104: |
An unused macro declaration 'CONT_HINT' has been found |
MISRAC2012-RULE_2_5-a-4 |
|
104: |
Lowercase 'l' is used to indicate long: 1ull |
MISRAC2012-RULE_7_3-a-2 |
|
106: |
Do not define function-like macro: UPPER_ATTRS |
MISRAC2012-DIR_4_9-a-4 |
|
107: |
Lowercase 'l' is used to indicate long: 1ull |
MISRAC2012-RULE_7_3-a-2 |
|
108: |
Lowercase 'l' is used to indicate long: 1ull |
MISRAC2012-RULE_7_3-a-2 |
|
109: |
An unused macro declaration 'NSH' has been found |
MISRAC2012-RULE_2_5-a-4 |
|
114: |
An unused macro declaration 'AP_RW' has been found |
MISRAC2012-RULE_2_5-a-4 |
|
119: |
Do not define function-like macro: LOWER_ATTRS |
MISRAC2012-DIR_4_9-a-4 |
|
128: |
Do not define function-like macro: MAIR_ATTR_SET |
MISRAC2012-DIR_4_9-a-4 |
|
128: |
Each instance of parameter: 'attr' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
140: |
An unused macro declaration 'UNSET_DESC' has been found |
MISRAC2012-RULE_2_5-a-4 |
|
146: |
Do not define function-like macro: IS_PAGE_ALIGNED |
MISRAC2012-DIR_4_9-a-4 |
|
157: |
An unused macro declaration 'XLAT_TABLE_ENTRIES_MASK' has been found |
MISRAC2012-RULE_2_5-a-4 |
|
197: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
211: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
215: |
Identifier 'xlat_tables' is already used as static object or function identifier |
MISRAC2012-RULE_5_9-a-4 |
|
217: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
218: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
248: |
The basic numerical type 'unsigned' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
252: |
Operands of the '&' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
252: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
252: |
The right hand operand of the '&' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
253: |
Provide only one exit point in 'desc_to_mattr' function |
MISRAC2012-RULE_15_5-a-4 |
|
255: |
Operands of the '==' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
256: |
Operands of the '!=' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
256: |
Operands of the '&' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
256: |
The right hand operand of the '&' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
257: |
Provide only one exit point in 'desc_to_mattr' function |
MISRAC2012-RULE_15_5-a-4 |
|
259: |
Operands of the '&' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
259: |
Operands of the '==' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
259: |
The right hand operand of the '&' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
260: |
Provide only one exit point in 'desc_to_mattr' function |
MISRAC2012-RULE_15_5-a-4 |
|
265: |
Operands of the '&' operator have different essential types: 'unsigned long long' and 'short' |
MISRAC2012-RULE_10_4-a-2 |
|
265: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
265: |
The right hand operand of the '&' operator has essentially signed type: short |
MISRAC2012-RULE_10_1-e-2 |
|
266: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
268: |
Operands of the '&' operator have different essential types: 'unsigned long' and 'int' |
MISRAC2012-RULE_10_4-a-2 |
|
268: |
The left hand operand of the '&' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
268: |
The left hand operand of the '<<' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
268: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
268: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
268: |
The right hand operand of the '&' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
268: |
The right hand operand of the '&' operator has essentially signed type: short |
MISRAC2012-RULE_10_1-e-2 |
|
269: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
271: |
Operands of the '&' operator have different essential types: 'unsigned long' and 'int' |
MISRAC2012-RULE_10_4-a-2 |
|
271: |
The left hand operand of the '&' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
271: |
The left hand operand of the '<<' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
271: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
271: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
271: |
The right hand operand of the '&' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
271: |
The right hand operand of the '&' operator has essentially signed type: short |
MISRAC2012-RULE_10_1-e-2 |
|
272: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
274: |
Operands of the '&' operator have different essential types: 'unsigned long long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
274: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
274: |
The right hand operand of the '&' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
275: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
277: |
Operands of the '&' operator have different essential types: 'unsigned long long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
277: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
277: |
The right hand operand of the '&' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
280: |
Missing statement or comment before terminating 'break' |
MISRAC2012-RULE_16_4-b-2 |
|
280: |
Missing statement or comment before terminating 'break' |
MISRAC2012-RULE_16_1-f-2 |
|
280: |
The 'switch' statement contains less than two switch-clauses |
MISRAC2012-RULE_16_6-a-2 |
|
280: |
The 'switch' statement contains less than two switch-clauses |
MISRAC2012-RULE_16_1-h-2 |
|
280: |
The result of comparison is always true or always false |
MISRAC2012-RULE_14_3-i-2 |
|
281: |
Missing statement or comment before terminating 'break' |
MISRAC2012-RULE_16_4-b-2 |
|
281: |
Missing statement or comment before terminating 'break' |
MISRAC2012-RULE_16_1-f-2 |
|
281: |
The 'switch' statement contains less than two switch-clauses |
MISRAC2012-RULE_16_6-a-2 |
|
281: |
The 'switch' statement contains less than two switch-clauses |
MISRAC2012-RULE_16_1-h-2 |
|
281: |
The result of comparison is always true or always false |
MISRAC2012-RULE_14_3-i-2 |
|
284: |
Operands of the '&' operator have different essential types: 'unsigned long' and 'int' |
MISRAC2012-RULE_10_4-a-2 |
|
284: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with a narrower essential type (4 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
284: |
The left hand operand of the '&' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
284: |
The left hand operand of the '<<' operator has essentially signed type: short |
MISRAC2012-RULE_10_1-e-2 |
|
284: |
The right hand operand of the '&' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
284: |
The right hand operand of the '&' operator has essentially signed type: short |
MISRAC2012-RULE_10_1-e-2 |
|
287: |
Operands of the '&' operator have different essential types: 'unsigned long long' and 'short' |
MISRAC2012-RULE_10_4-a-2 |
|
287: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
287: |
The right hand operand of the '&' operator has essentially signed type: short |
MISRAC2012-RULE_10_1-e-2 |
|
288: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
290: |
Operands of the '&' operator have different essential types: 'unsigned long' and 'int' |
MISRAC2012-RULE_10_4-a-2 |
|
290: |
The left hand operand of the '&' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
290: |
The left hand operand of the '<<' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
290: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
290: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
290: |
The right hand operand of the '&' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
290: |
The right hand operand of the '&' operator has essentially signed type: short |
MISRAC2012-RULE_10_1-e-2 |
|
291: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
293: |
Provide only one exit point in 'desc_to_mattr' function |
MISRAC2012-RULE_15_5-a-4 |
|
296: |
The basic numerical type 'unsigned' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
301: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
302: |
Provide only one exit point in 'mattr_to_desc' function |
MISRAC2012-RULE_15_5-a-4 |
|
304: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
305: |
Provide only one exit point in 'mattr_to_desc' function |
MISRAC2012-RULE_15_5-a-4 |
|
307: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
309: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
309: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
309: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
311: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
313: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
313: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
316: |
Operands of the '==' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
321: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
321: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
322: |
Operands of the '&' operator have different essential types: 'unsigned long long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
322: |
The right hand operand of the '&' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
323: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
324: |
Operands of the '&' operator have different essential types: 'unsigned long long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
324: |
The right hand operand of the '&' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
326: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
327: |
Operands of the '|=' operator have different essential types: 'unsigned long' and 'int' |
MISRAC2012-RULE_10_4-a-2 |
|
327: |
The left hand operand of the '&' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
327: |
The left hand operand of the '<<' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
327: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
327: |
The right hand operand of the '&' operator has essentially signed type: short |
MISRAC2012-RULE_10_1-e-2 |
|
327: |
The right hand operand of the '|=' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
329: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
330: |
Operands of the '|=' operator have different essential types: 'unsigned long' and 'int' |
MISRAC2012-RULE_10_4-a-2 |
|
330: |
The left hand operand of the '&' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
330: |
The left hand operand of the '<<' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
330: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
330: |
The right hand operand of the '&' operator has essentially signed type: short |
MISRAC2012-RULE_10_1-e-2 |
|
330: |
The right hand operand of the '|=' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
333: |
Operands of the '&' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
333: |
The right hand operand of the '&' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
335: |
Operands of the '|=' operator have different essential types: 'unsigned long' and 'int' |
MISRAC2012-RULE_10_4-a-2 |
|
335: |
The left hand operand of the '&' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
335: |
The left hand operand of the '<<' operator has essentially signed type: short |
MISRAC2012-RULE_10_1-e-2 |
|
335: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
335: |
The left hand operand of the '|' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
335: |
The right hand operand of the '&' operator has essentially signed type: short |
MISRAC2012-RULE_10_1-e-2 |
|
335: |
The right hand operand of the '|' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
335: |
The right hand operand of the '|=' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
338: |
Operands of the '|=' operator have different essential types: 'unsigned long' and 'int' |
MISRAC2012-RULE_10_4-a-2 |
|
338: |
The left hand operand of the '&' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
338: |
The left hand operand of the '<<' operator has essentially signed type: short |
MISRAC2012-RULE_10_1-e-2 |
|
338: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
338: |
The left hand operand of the '|' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
338: |
The right hand operand of the '&' operator has essentially signed type: short |
MISRAC2012-RULE_10_1-e-2 |
|
338: |
The right hand operand of the '|' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
338: |
The right hand operand of the '|=' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
340: |
Every non empty default clause in a switch statement shall be terminated with a break statement |
MISRAC2012-RULE_16_1-d-2 |
|
340: |
Every non empty default clause in a switch statement shall be terminated with a break statement |
MISRAC2012-RULE_16_3-b-2 |
|
348: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
349: |
Operands of the '&' operator have different essential types: 'unsigned long long' and 'short' |
MISRAC2012-RULE_10_4-a-2 |
|
349: |
The right hand operand of the '&' operator has essentially signed type: short |
MISRAC2012-RULE_10_1-e-2 |
|
351: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
351: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
352: |
Operands of the '&' operator have different essential types: 'unsigned long long' and 'short' |
MISRAC2012-RULE_10_4-a-2 |
|
352: |
The right hand operand of the '&' operator has essentially signed type: short |
MISRAC2012-RULE_10_1-e-2 |
|
354: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
354: |
Operands of the '|=' operator have different essential types: 'unsigned long' and 'int' |
MISRAC2012-RULE_10_4-a-2 |
|
354: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
354: |
The first operand of the conditional operator '?:' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
354: |
The left hand operand of the '&' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
354: |
The left hand operand of the '<<' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
354: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
354: |
The right hand operand of the '&' operator has essentially signed type: short |
MISRAC2012-RULE_10_1-e-2 |
|
354: |
The right hand operand of the '|=' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
356: |
Provide only one exit point in 'mattr_to_desc' function |
MISRAC2012-RULE_15_5-a-4 |
|
370: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
372: |
Potential macro 'SMALL_PAGE_SIZE' used as '1' parameter of potential macro 'assert' |
MISRAC2012-RULE_20_12-a-2 |
|
391: |
Potential macro 'SMALL_PAGE_SIZE' used as '1' parameter of potential macro 'assert' |
MISRAC2012-RULE_20_12-a-2 |
|
413: |
Potential macro 'THREAD_EXCP_FOREIGN_INTR' used as '1' parameter of potential macro 'assert' |
MISRAC2012-RULE_20_12-a-2 |
|
430: |
The function 'core_init_mmu_prtn' is referenced only in the translation unit where it is defined |
MISRAC2012-RULE_8_7-a-4 |
|
434: |
The left hand operand of the logical operator '&&' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
434: |
The right hand operand of the logical operator '&&' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
436: |
The variable 'mm' used as the left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
440: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
440: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
440: |
Operands of the '&' operator have different essential types: 'unsigned long' and 'int' |
MISRAC2012-RULE_10_4-a-2 |
|
440: |
Operands of the '&' operator have different essential types: 'unsigned long' and 'int' |
MISRAC2012-RULE_10_4-a-2 |
|
440: |
Operands of the '==' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
440: |
Operands of the '==' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
440: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
440: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
440: |
The operands of a logical '||' in function 'core_init_mmu_prtn' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
440: |
The operands of a logical '||' in function 'core_init_mmu_prtn' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
440: |
The right hand operand of the '&' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
440: |
The right hand operand of the '&' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
445: |
Unused function's "memset" return value |
MISRAC2012-RULE_17_7-a-2 |
|
447: |
'for' statement in a function 'core_init_mmu_prtn' should be followed by a block |
MISRAC2012-RULE_15_6-a-2 |
|
447: |
The variable 'mm' used as the left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
448: |
The variable 'mm' used as the left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
449: |
The variable 'mm' used as the left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
459: |
Unused function's "memcpy" return value |
MISRAC2012-RULE_17_7-a-2 |
|
461: |
Shifting operation should be enclosed with if checking that RHS operand lies between zero and one less than the width in bits
of the underlying type of the LHS operand
|
MISRAC2012-RULE_12_2-a-2 |
|
461: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
471: |
Missing statement or comment before terminating 'break' |
MISRAC2012-RULE_16_4-b-2 |
|
471: |
Missing statement or comment before terminating 'break' |
MISRAC2012-RULE_16_1-f-2 |
|
471: |
Shifting operation should be enclosed with if checking that RHS operand lies between zero and one less than the width in bits
of the underlying type of the LHS operand
|
MISRAC2012-RULE_12_2-a-2 |
|
471: |
The 'switch' statement contains less than two switch-clauses |
MISRAC2012-RULE_16_6-a-2 |
|
471: |
The 'switch' statement contains less than two switch-clauses |
MISRAC2012-RULE_16_1-h-2 |
|
471: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
474: |
Missing statement or comment before terminating 'break' |
MISRAC2012-RULE_16_4-b-2 |
|
474: |
Missing statement or comment before terminating 'break' |
MISRAC2012-RULE_16_1-f-2 |
|
474: |
The 'switch' statement contains less than two switch-clauses |
MISRAC2012-RULE_16_6-a-2 |
|
474: |
The 'switch' statement contains less than two switch-clauses |
MISRAC2012-RULE_16_1-h-2 |
|
484: |
The variable 'mm' used as the left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
485: |
Operands of the '-' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
485: |
Reserved name 'va_end' used |
MISRAC2012-RULE_21_2-b-2 |
|
485: |
Reserved name 'va_end' used |
MISRAC2012-RULE_21_2-c-2 |
|
485: |
The identifier 'va_end' shall not be used |
MISRAC2012-RULE_17_1-a-2 |
|
485: |
The identifier 'va_end' shall not be used |
MISRAC2012-RULE_17_1-b-2 |
|
485: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
487: |
The identifier 'va_end' shall not be used |
MISRAC2012-RULE_17_1-a-2 |
|
487: |
The identifier 'va_end' shall not be used |
MISRAC2012-RULE_17_1-b-2 |
|
488: |
The identifier 'va_end' shall not be used |
MISRAC2012-RULE_17_1-a-2 |
|
488: |
The identifier 'va_end' shall not be used |
MISRAC2012-RULE_17_1-b-2 |
|
491: |
Shifting operation should be enclosed with if checking that RHS operand lies between zero and one less than the width in bits
of the underlying type of the LHS operand
|
MISRAC2012-RULE_12_2-a-2 |
|
492: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
493: |
The expression of the 'essentially unsigned' type is assigned to an object with the 'essentially signed' type |
MISRAC2012-RULE_10_3-b-2 |
|
499: |
Missing statement or comment before terminating 'break' |
MISRAC2012-RULE_16_4-b-2 |
|
499: |
Missing statement or comment before terminating 'break' |
MISRAC2012-RULE_16_1-f-2 |
|
499: |
The 'switch' statement contains less than two switch-clauses |
MISRAC2012-RULE_16_6-a-2 |
|
499: |
The 'switch' statement contains less than two switch-clauses |
MISRAC2012-RULE_16_1-h-2 |
|
499: |
The result of comparison is always true or always false |
MISRAC2012-RULE_14_3-i-2 |
|
500: |
Potential macro 'BIT64' used as '1' parameter of potential macro 'assert' |
MISRAC2012-RULE_20_12-a-2 |
|
500: |
Potential macro 'CFG_LPAE_ADDR_SPACE_BITS' used as '1' parameter of potential macro 'assert' |
MISRAC2012-RULE_20_12-a-2 |
|
505: |
Shifting operation should be enclosed with if checking that RHS operand lies between zero and one less than the width in bits
of the underlying type of the LHS operand
|
MISRAC2012-RULE_12_2-a-2 |
|
505: |
The expression of the 'essentially signed' type is assigned to an object with the 'essentially unsigned' type |
MISRAC2012-RULE_10_3-b-2 |
|
505: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
506: |
Operands of the '-' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
536: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
549: |
The 'switch' statement contains less than two switch-clauses |
MISRAC2012-RULE_16_6-a-2 |
|
549: |
The 'switch' statement contains less than two switch-clauses |
MISRAC2012-RULE_16_1-h-2 |
|
549: |
The result of comparison is always true or always false |
MISRAC2012-RULE_14_3-i-2 |
|
551: |
The result of comparison is always true or always false |
MISRAC2012-RULE_14_3-i-2 |
|
552: |
Provide only one exit point in 'get_physical_addr_size_bits' function |
MISRAC2012-RULE_15_5-a-4 |
|
554: |
The result of comparison is always true or always false |
MISRAC2012-RULE_14_3-i-2 |
|
555: |
Provide only one exit point in 'get_physical_addr_size_bits' function |
MISRAC2012-RULE_15_5-a-4 |
|
557: |
The result of comparison is always true or always false |
MISRAC2012-RULE_14_3-i-2 |
|
558: |
Provide only one exit point in 'get_physical_addr_size_bits' function |
MISRAC2012-RULE_15_5-a-4 |
|
560: |
The result of comparison is always true or always false |
MISRAC2012-RULE_14_3-i-2 |
|
561: |
Provide only one exit point in 'get_physical_addr_size_bits' function |
MISRAC2012-RULE_15_5-a-4 |
|
563: |
The result of comparison is always true or always false |
MISRAC2012-RULE_14_3-i-2 |
|
564: |
Provide only one exit point in 'get_physical_addr_size_bits' function |
MISRAC2012-RULE_15_5-a-4 |
|
567: |
The 'switch' statement contains less than two switch-clauses |
MISRAC2012-RULE_16_6-a-2 |
|
567: |
The 'switch' statement contains less than two switch-clauses |
MISRAC2012-RULE_16_1-h-2 |
|
567: |
The result of comparison is always true or always false |
MISRAC2012-RULE_14_3-i-2 |
|
569: |
Provide only one exit point in 'get_physical_addr_size_bits' function |
MISRAC2012-RULE_15_5-a-4 |
|
581: |
Shifting operation should be enclosed with if checking that RHS operand lies between zero and one less than the width in bits
of the underlying type of the LHS operand
|
MISRAC2012-RULE_12_2-a-2 |
|
581: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
582: |
Shifting operation should be enclosed with if checking that RHS operand lies between zero and one less than the width in bits
of the underlying type of the LHS operand
|
MISRAC2012-RULE_12_2-a-2 |
|
582: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
585: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
586: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
586: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
586: |
The right hand operand of the '|=' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
587: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
587: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
587: |
The right hand operand of the '|=' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
588: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
588: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
588: |
The right hand operand of the '|=' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
590: |
The right hand operand of the '|=' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
593: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
604: |
The basic numerical type 'unsigned' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
609: |
Operands of the '-' operator have different essential types: 'signed char' and 'unsigned int' |
MISRAC2012-RULE_10_4-a-2 |
|
610: |
Operands of the '-' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
610: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
613: |
Shifting operation should be enclosed with if checking that RHS operand lies between zero and one less than the width in bits
of the underlying type of the LHS operand
|
MISRAC2012-RULE_12_2-a-2 |
|
615: |
Shifting operation should be enclosed with if checking that RHS operand lies between zero and one less than the width in bits
of the underlying type of the LHS operand
|
MISRAC2012-RULE_12_2-a-2 |
|
615: |
The expression of the 'essentially signed' type is assigned to an object with the 'essentially unsigned' type |
MISRAC2012-RULE_10_3-b-2 |
|
615: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
618: |
The function 'core_mmu_get_user_pgdir' is referenced only in the translation unit where it is defined |
MISRAC2012-RULE_8_7-a-4 |
|
632: |
Missing statement or comment before terminating 'break' |
MISRAC2012-RULE_16_4-b-2 |
|
632: |
Missing statement or comment before terminating 'break' |
MISRAC2012-RULE_16_1-f-2 |
|
632: |
Shifting operation should be enclosed with if checking that RHS operand lies between zero and one less than the width in bits
of the underlying type of the LHS operand
|
MISRAC2012-RULE_12_2-a-2 |
|
632: |
The 'switch' statement contains less than two switch-clauses |
MISRAC2012-RULE_16_6-a-2 |
|
632: |
The 'switch' statement contains less than two switch-clauses |
MISRAC2012-RULE_16_1-h-2 |
|
632: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
632: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
635: |
The argument number '3' ('essentially signed' type) is passed to the function 'memset' as a parameter with the 'essentially
unsigned' type
|
MISRAC2012-RULE_10_3-b-2 |
|
635: |
Unused function's "memset" return value |
MISRAC2012-RULE_17_7-a-2 |
|
637: |
The right hand operand of the '|' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
641: |
Pass parameter "prtn" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
642: |
The basic numerical type 'unsigned' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
645: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
645: |
The argument number '1' ('essentially signed' type) is passed to the function 'thread_mask_exceptions' as a parameter with
the 'essentially unsigned' type
|
MISRAC2012-RULE_10_3-b-2 |
|
645: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
645: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
645: |
The left hand operand of the '>>' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
645: |
The left hand operand of the '>>' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
645: |
The left hand operand of the '|' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
645: |
The right hand operand of the '|' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
646: |
Shifting operation should be enclosed with if checking that RHS operand lies between zero and one less than the width in bits
of the underlying type of the LHS operand
|
MISRAC2012-RULE_12_2-a-2 |
|
646: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
647: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
653: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
654: |
Parameter 'prtn' is modified in function 'core_mmu_find_table' |
MISRAC2012-RULE_17_8-a-4 |
|
657: |
Only one 'goto' statement in loop is allowed. This loop contains 'goto' in lines: 664, 681, 692, 707 |
MISRAC2012-RULE_15_4-a-4 |
|
658: |
The basic numerical type 'unsigned' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
659: |
Operands of the '-' operator have different essential types: 'signed char' and 'unsigned int' |
MISRAC2012-RULE_10_4-a-2 |
|
659: |
Operands of the '-' operator have different essential types: 'unsigned int' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
659: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
661: |
Shifting operation should be enclosed with if checking that RHS operand does not exceed the upper limit (one less than the
width in bits of the underlying type of the LHS operand)
|
MISRAC2012-RULE_12_2-a-2 |
|
661: |
The basic numerical type 'unsigned' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
661: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with a narrower essential type (4 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
664: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
666: |
The operands of a logical '||' in function 'core_mmu_find_table' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
666: |
The operands of a logical '||' in function 'core_mmu_find_table' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
667: |
The operands of a logical '||' in function 'core_mmu_find_table' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
667: |
The right hand operand of the '&' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
679: |
The operands of a logical '&&' in function 'core_mmu_find_table' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
680: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
680: |
The left hand operand of the '>>' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
680: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
680: |
The operands of a logical '&&' in function 'core_mmu_find_table' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
680: |
The right hand operand of the '&' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
681: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
692: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
696: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
696: |
Operands of the '-' operator have different essential types: 'unsigned long long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
696: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
696: |
The operand of the '~' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
696: |
The right hand operand of the '&' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
704: |
Pointer to void type should not be converted to pointer to object type 'uint64_t *' |
MISRAC2012-RULE_11_5-a-4 |
|
706: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
707: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
709: |
Shifting operation should be enclosed with if checking that RHS operand does not exceed the upper limit (one less than the
width in bits of the underlying type of the LHS operand)
|
MISRAC2012-RULE_12_2-a-2 |
|
711: |
Shifting operation should be enclosed with if checking that RHS operand lies between zero and one less than the width in bits
of the underlying type of the LHS operand
|
MISRAC2012-RULE_12_2-a-2 |
|
711: |
The expression of the 'essentially signed' type is assigned to an object with the 'essentially unsigned' type |
MISRAC2012-RULE_10_3-b-2 |
|
711: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
719: |
Parameter 'secure' is not used in function 'core_mmu_entry_to_finer_grained' |
MISRAC2012-RULE_2_7-a-4 |
|
719: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
723: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
726: |
Operands of the '-' operator have different essential types: 'signed char' and 'unsigned int' |
MISRAC2012-RULE_10_4-a-2 |
|
726: |
Shifting operation should be enclosed with if checking that RHS operand does not exceed the upper limit (one less than the
width in bits of the underlying type of the LHS operand)
|
MISRAC2012-RULE_12_2-a-2 |
|
726: |
The expression of the 'essentially signed' type is assigned to an object with the 'essentially unsigned' type |
MISRAC2012-RULE_10_3-b-2 |
|
726: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
727: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
735: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
737: |
The operands of a logical '||' in function 'core_mmu_entry_to_finer_grained' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
737: |
The operands of a logical '||' in function 'core_mmu_entry_to_finer_grained' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
738: |
Provide only one exit point in 'core_mmu_entry_to_finer_grained' function |
MISRAC2012-RULE_15_5-a-4 |
|
740: |
Pointer to void type should not be converted to pointer to object type 'uint64_t *' |
MISRAC2012-RULE_11_5-a-4 |
|
740: |
The left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
742: |
The right hand operand of the '&' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
743: |
Provide only one exit point in 'core_mmu_entry_to_finer_grained' function |
MISRAC2012-RULE_15_5-a-4 |
|
746: |
Provide only one exit point in 'core_mmu_entry_to_finer_grained' function |
MISRAC2012-RULE_15_5-a-4 |
|
748: |
The '++' operator should cause the only side effect in an expression |
MISRAC2012-RULE_13_3-a-4 |
|
753: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
755: |
The right hand operand of the '|' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
756: |
Shifting operation should be enclosed with if checking that RHS operand lies between zero and one less than the width in bits
of the underlying type of the LHS operand
|
MISRAC2012-RULE_12_2-a-2 |
|
756: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
757: |
The right hand operand of the '|' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
761: |
Shifting operation should be enclosed with if checking that RHS operand lies between zero and one less than the width in bits
of the underlying type of the LHS operand
|
MISRAC2012-RULE_12_2-a-2 |
|
761: |
The argument number '3' ('essentially signed' type) is passed to the function 'memset' as a parameter with the 'essentially
unsigned' type
|
MISRAC2012-RULE_10_3-b-2 |
|
761: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
761: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
761: |
Unused function's "memset" return value |
MISRAC2012-RULE_17_7-a-2 |
|
764: |
The right hand operand of the '|' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
766: |
Provide only one exit point in 'core_mmu_entry_to_finer_grained' function |
MISRAC2012-RULE_15_5-a-4 |
|
772: |
Pointer to void type should not be converted to pointer to object type 'uint64_t *' |
MISRAC2012-RULE_11_5-a-4 |
|
773: |
The argument number '1' (8 byte essential type) is passed to the function 'mattr_to_desc' as a parameter with a narrower essential
type (4 byte)
|
MISRAC2012-RULE_10_3-a-2 |
|
781: |
Pointer to void type should not be converted to pointer to object type 'const uint64_t *' |
MISRAC2012-RULE_11_5-a-4 |
|
783: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
784: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
784: |
Lowercase 'l' is used to indicate long: 1ull |
MISRAC2012-RULE_7_3-a-2 |
|
784: |
Operands of the '-' operator have different essential types: 'unsigned long long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
784: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
784: |
The operand of the '~' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
784: |
The right hand operand of the '&' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
786: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
787: |
The argument number '1' (8 byte essential type) is passed to the function 'desc_to_mattr' as a parameter with a narrower essential
type (4 byte)
|
MISRAC2012-RULE_10_3-a-2 |
|
799: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
800: |
Shifting operation should be enclosed with if checking that RHS operand lies between zero and one less than the width in bits
of the underlying type of the LHS operand
|
MISRAC2012-RULE_12_2-a-2 |
|
801: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
802: |
Shifting operation should be enclosed with if checking that RHS operand lies between zero and one less than the width in bits
of the underlying type of the LHS operand
|
MISRAC2012-RULE_12_2-a-2 |
|
802: |
The expression of the 'essentially signed' type is assigned to an object with the 'essentially unsigned' type |
MISRAC2012-RULE_10_3-b-2 |
|
802: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
808: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
808: |
The argument number '1' ('essentially signed' type) is passed to the function 'thread_mask_exceptions' as a parameter with
the 'essentially unsigned' type
|
MISRAC2012-RULE_10_3-b-2 |
|
808: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
808: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
808: |
The left hand operand of the '>>' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
808: |
The left hand operand of the '>>' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
808: |
The left hand operand of the '|' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
808: |
The right hand operand of the '|' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
811: |
The expression of the 'essentially unsigned' type is assigned to an object with the 'essentially Boolean' type |
MISRAC2012-RULE_10_3-b-2 |
|
911: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
912: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with a narrower essential type (4 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
912: |
The right hand operand of the '&' operator has essentially signed type: short |
MISRAC2012-RULE_10_1-e-2 |
|
919: |
Pass parameter "map" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
922: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
922: |
The argument number '1' ('essentially signed' type) is passed to the function 'thread_mask_exceptions' as a parameter with
the 'essentially unsigned' type
|
MISRAC2012-RULE_10_3-b-2 |
|
922: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
922: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
922: |
The left hand operand of the '>>' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
922: |
The left hand operand of the '>>' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
922: |
The left hand operand of the '|' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
922: |
The right hand operand of the '|' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
932: |
The left hand operand of the logical operator '&&' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
932: |
The right hand operand of the logical operator '&&' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
959: |
The right hand operand of the '&' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
962: |
Provide only one exit point in 'core_mmu_get_fault_type' function |
MISRAC2012-RULE_15_5-a-4 |
|
967: |
The right hand operand of the '&' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
976: |
Provide only one exit point in 'core_mmu_get_fault_type' function |
MISRAC2012-RULE_15_5-a-4 |
|
983: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
984: |
Provide only one exit point in 'core_mmu_get_fault_type' function |
MISRAC2012-RULE_15_5-a-4 |
|
986: |
Provide only one exit point in 'core_mmu_get_fault_type' function |
MISRAC2012-RULE_15_5-a-4 |
|
988: |
Provide only one exit point in 'core_mmu_get_fault_type' function |
MISRAC2012-RULE_15_5-a-4 |
|
990: |
Provide only one exit point in 'core_mmu_get_fault_type' function |
MISRAC2012-RULE_15_5-a-4 |
|
993: |
Provide only one exit point in 'core_mmu_get_fault_type' function |
MISRAC2012-RULE_15_5-a-4 |
| /optee_os_MISRA/optee_os_ruchi393_core/arch/arm/mm/core_mmu_private.h |
|
15: |
The basic numerical type 'unsigned' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
23: |
Operands of the '==' operator have different essential types: 'unsigned int' and 'teecore_memtypes' |
MISRAC2012-RULE_10_4-a-2 |
|
29: |
Operands of the '-' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
42: |
Operands of the '-' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
43: |
Provide only one exit point in 'core_mmu_check_end_pa' function |
MISRAC2012-RULE_15_5-a-4 |
|
44: |
Provide only one exit point in 'core_mmu_check_end_pa' function |
MISRAC2012-RULE_15_5-a-4 |
| /optee_os_MISRA/optee_os_ruchi393_core/arch/arm/mm/mobj.c |
|
34: |
A tag name 'mobj' is reused |
MISRAC2012-RULE_5_7-a-2 |
|
41: |
A tag name 'mobj' is reused |
MISRAC2012-RULE_5_7-a-2 |
|
41: |
Identifier 'mobj' is hiding an identifier from global or namespace scope |
MISRAC2012-RULE_5_3-a-2 |
|
43: |
A tag name 'mobj' is reused |
MISRAC2012-RULE_5_7-a-2 |
|
43: |
Identifier 'mobj' is hiding an identifier from global or namespace scope |
MISRAC2012-RULE_5_3-a-2 |
|
47: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
47: |
The operands of a logical '||' in function 'mobj_phys_get_va' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
47: |
The operands of a logical '||' in function 'mobj_phys_get_va' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
48: |
Provide only one exit point in 'mobj_phys_get_va' function |
MISRAC2012-RULE_15_5-a-4 |
|
50: |
Arithmetic type 'unsigned long' should not be converted to pointer to void type |
MISRAC2012-RULE_11_6-a-2 |
|
50: |
Provide only one exit point in 'mobj_phys_get_va' function |
MISRAC2012-RULE_15_5-a-4 |
|
53: |
A tag name 'mobj' is reused |
MISRAC2012-RULE_5_7-a-2 |
|
53: |
Identifier 'mobj' is hiding an identifier from global or namespace scope |
MISRAC2012-RULE_5_3-a-2 |
|
59: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
60: |
Integer constant '0xFFFF0000' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
60: |
Provide only one exit point in 'mobj_phys_get_pa' function |
MISRAC2012-RULE_15_5-a-4 |
|
64: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
65: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
65: |
The operands of a logical '&&' in function 'mobj_phys_get_pa' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
66: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
66: |
The operands of a logical '&&' in function 'mobj_phys_get_pa' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
67: |
Integer constant '0xFFFF0000' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
67: |
Provide only one exit point in 'mobj_phys_get_pa' function |
MISRAC2012-RULE_15_5-a-4 |
|
72: |
Provide only one exit point in 'mobj_phys_get_pa' function |
MISRAC2012-RULE_15_5-a-4 |
|
74: |
Declaration of object '____keep_pager_mobj_phys_get_pa_core_arch_arm_mm_mobj_c' does not precede its definition |
MISRAC2012-RULE_8_4-a-2 |
|
74: |
Pointer to function 'TEE_Result (*)(struct mobj *, size_t, size_t, paddr_t *)' should not be cast to other type |
MISRAC2012-RULE_11_1-a-2 |
|
74: |
Reserved name '____keep_pager_mobj_phys_get_pa' used |
MISRAC2012-RULE_21_2-a-2 |
|
74: |
Reserved name '____keep_pager_mobj_phys_get_pa_core_arch_arm_mm_mobj_c' used |
MISRAC2012-RULE_21_2-a-2 |
|
74: |
The '____keep_pager_mobj_phys_get_pa' object has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
74: |
The identifier '____keep_pager_mobj_phys_get_pa_core_arch_arm_mm_mobj_c' has the same first 31 characters of the name as the
identifier '____keep_pager_mobj_phys_get_pa' defined in the 'mobj.c' file in line '74'
|
MISRAC2012-RULE_5_1-a-2 |
|
76: |
A tag name 'mobj' is reused |
MISRAC2012-RULE_5_7-a-2 |
|
76: |
Identifier 'mobj' is hiding an identifier from global or namespace scope |
MISRAC2012-RULE_5_3-a-2 |
|
80: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
81: |
Integer constant '0xFFFF0000' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
81: |
Provide only one exit point in 'mobj_phys_get_cattr' function |
MISRAC2012-RULE_15_5-a-4 |
|
84: |
Provide only one exit point in 'mobj_phys_get_cattr' function |
MISRAC2012-RULE_15_5-a-4 |
|
87: |
A tag name 'mobj' is reused |
MISRAC2012-RULE_5_7-a-2 |
|
87: |
Identifier 'mobj' is hiding an identifier from global or namespace scope |
MISRAC2012-RULE_5_3-a-2 |
|
96: |
Provide only one exit point in 'mobj_phys_matches' function |
MISRAC2012-RULE_15_5-a-4 |
|
96: |
The operands of a logical '||' in function 'mobj_phys_matches' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
96: |
The operands of a logical '||' in function 'mobj_phys_matches' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
97: |
The operands of a logical '||' in function 'mobj_phys_matches' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
97: |
The operands of a logical '||' in function 'mobj_phys_matches' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
99: |
Provide only one exit point in 'mobj_phys_matches' function |
MISRAC2012-RULE_15_5-a-4 |
|
104: |
Provide only one exit point in 'mobj_phys_matches' function |
MISRAC2012-RULE_15_5-a-4 |
|
106: |
Provide only one exit point in 'mobj_phys_matches' function |
MISRAC2012-RULE_15_5-a-4 |
|
110: |
A tag name 'mobj' is reused |
MISRAC2012-RULE_5_7-a-2 |
|
110: |
Identifier 'mobj' is hiding an identifier from global or namespace scope |
MISRAC2012-RULE_5_3-a-2 |
|
114: |
'free' function should not be used |
MISRAC2012-RULE_21_3-a-2 |
|
114: |
'free' function should not be used |
MISRAC2012-DIR_4_12-a-2 |
|
126: |
A tag name 'mobj' is reused |
MISRAC2012-RULE_5_7-a-2 |
|
126: |
Identifier 'mobj' is hiding an identifier from global or namespace scope |
MISRAC2012-RULE_5_3-a-2 |
|
126: |
Pass parameter "mobj" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
129: |
Integral type 'unsigned long' should not be converted to pointer to object type 'struct mobj_phys *' |
MISRAC2012-RULE_11_4-a-4 |
|
129: |
Pointer to object type 'const struct mobj *' should not be converted to integral type 'unsigned long' |
MISRAC2012-RULE_11_4-a-4 |
|
129: |
Reserved name '__ptr' used |
MISRAC2012-RULE_21_2-a-2 |
|
139: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
139: |
The left hand operand of the logical operator '||' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
139: |
The right hand operand of the logical operator '||' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
140: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
142: |
Provide only one exit point in 'mobj_phys_alloc' function |
MISRAC2012-RULE_15_5-a-4 |
|
160: |
Provide only one exit point in 'mobj_phys_alloc' function |
MISRAC2012-RULE_15_5-a-4 |
|
165: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
165: |
The operands of a logical '&&' in function 'mobj_phys_alloc' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
165: |
The operands of a logical '&&' in function 'mobj_phys_alloc' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
166: |
Provide only one exit point in 'mobj_phys_alloc' function |
MISRAC2012-RULE_15_5-a-4 |
|
168: |
'calloc' function should not be used |
MISRAC2012-RULE_21_3-a-2 |
|
168: |
'calloc' function should not be used |
MISRAC2012-DIR_4_12-a-2 |
|
168: |
Pointer to void type should not be converted to pointer to object type 'struct mobj_phys *' |
MISRAC2012-RULE_11_5-a-4 |
|
169: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
170: |
Provide only one exit point in 'mobj_phys_alloc' function |
MISRAC2012-RULE_15_5-a-4 |
|
178: |
Pointer to void type should not be converted to arithmetic type 'unsigned long' |
MISRAC2012-RULE_11_6-a-2 |
|
180: |
Provide only one exit point in 'mobj_phys_alloc' function |
MISRAC2012-RULE_15_5-a-4 |
|
187: |
A tag name 'mobj' is reused |
MISRAC2012-RULE_5_7-a-2 |
|
187: |
Identifier 'mobj' is hiding an identifier from global or namespace scope |
MISRAC2012-RULE_5_3-a-2 |
|
189: |
A tag name 'mobj' is reused |
MISRAC2012-RULE_5_7-a-2 |
|
189: |
Identifier 'mobj' is hiding an identifier from global or namespace scope |
MISRAC2012-RULE_5_3-a-2 |
|
193: |
Arithmetic type 'unsigned long' should not be converted to pointer to void type |
MISRAC2012-RULE_11_6-a-2 |
|
200: |
A tag name 'mobj' is reused |
MISRAC2012-RULE_5_7-a-2 |
|
200: |
Identifier 'mobj' is hiding an identifier from global or namespace scope |
MISRAC2012-RULE_5_3-a-2 |
|
200: |
Pass parameter "mobj" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
214: |
A tag name 'mobj' is reused |
MISRAC2012-RULE_5_7-a-2 |
|
217: |
A tag name 'mobj' is reused |
MISRAC2012-RULE_5_7-a-2 |
|
217: |
Identifier 'mobj' is hiding an identifier from global or namespace scope |
MISRAC2012-RULE_5_3-a-2 |
|
219: |
A tag name 'mobj' is reused |
MISRAC2012-RULE_5_7-a-2 |
|
219: |
Identifier 'mobj' is hiding an identifier from global or namespace scope |
MISRAC2012-RULE_5_3-a-2 |
|
223: |
Essential type of RHS operand (64 bit) is wider than essential type of composite expression in LHS operand (32 bit) |
MISRAC2012-RULE_10_7-a-2 |
|
223: |
Shifting operation should be enclosed with if checking that RHS operand does not exceed the upper limit (one less than the
width in bits of the underlying type of the LHS operand)
|
MISRAC2012-RULE_12_2-a-2 |
|
226: |
A tag name 'mobj' is reused |
MISRAC2012-RULE_5_7-a-2 |
|
226: |
Identifier 'mobj' is hiding an identifier from global or namespace scope |
MISRAC2012-RULE_5_3-a-2 |
|
233: |
A tag name 'mobj' is reused |
MISRAC2012-RULE_5_7-a-2 |
|
233: |
Identifier 'mobj' is hiding an identifier from global or namespace scope |
MISRAC2012-RULE_5_3-a-2 |
|
239: |
Declaration of object '____keep_pager_mobj_mm_get_pa_core_arch_arm_mm_mobj_c' does not precede its definition |
MISRAC2012-RULE_8_4-a-2 |
|
239: |
Pointer to function 'TEE_Result (*)(struct mobj *, size_t, size_t, paddr_t *)' should not be cast to other type |
MISRAC2012-RULE_11_1-a-2 |
|
239: |
Reserved name '____keep_pager_mobj_mm_get_pa' used |
MISRAC2012-RULE_21_2-a-2 |
|
239: |
Reserved name '____keep_pager_mobj_mm_get_pa_core_arch_arm_mm_mobj_c' used |
MISRAC2012-RULE_21_2-a-2 |
|
239: |
The '____keep_pager_mobj_mm_get_pa' object has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
241: |
A tag name 'mobj' is reused |
MISRAC2012-RULE_5_7-a-2 |
|
241: |
Identifier 'mobj' is hiding an identifier from global or namespace scope |
MISRAC2012-RULE_5_3-a-2 |
|
246: |
A tag name 'mobj' is reused |
MISRAC2012-RULE_5_7-a-2 |
|
246: |
Identifier 'mobj' is hiding an identifier from global or namespace scope |
MISRAC2012-RULE_5_3-a-2 |
|
251: |
A tag name 'mobj' is reused |
MISRAC2012-RULE_5_7-a-2 |
|
251: |
Identifier 'mobj' is hiding an identifier from global or namespace scope |
MISRAC2012-RULE_5_3-a-2 |
|
256: |
A tag name 'mobj' is reused |
MISRAC2012-RULE_5_7-a-2 |
|
256: |
Identifier 'mobj' is hiding an identifier from global or namespace scope |
MISRAC2012-RULE_5_3-a-2 |
|
261: |
'free' function should not be used |
MISRAC2012-RULE_21_3-a-2 |
|
261: |
'free' function should not be used |
MISRAC2012-DIR_4_12-a-2 |
|
273: |
A tag name 'mobj' is reused |
MISRAC2012-RULE_5_7-a-2 |
|
273: |
Identifier 'mobj' is hiding an identifier from global or namespace scope |
MISRAC2012-RULE_5_3-a-2 |
|
273: |
Pass parameter "mobj" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
276: |
Integral type 'unsigned long' should not be converted to pointer to object type 'struct mobj_mm *' |
MISRAC2012-RULE_11_4-a-4 |
|
276: |
Pointer to object type 'const struct mobj *' should not be converted to integral type 'unsigned long' |
MISRAC2012-RULE_11_4-a-4 |
|
276: |
Reserved name '__ptr' used |
MISRAC2012-RULE_21_2-a-2 |
|
282: |
'calloc' function should not be used |
MISRAC2012-RULE_21_3-a-2 |
|
282: |
'calloc' function should not be used |
MISRAC2012-DIR_4_12-a-2 |
|
282: |
Pointer to void type should not be converted to pointer to object type 'struct mobj_mm *' |
MISRAC2012-RULE_11_5-a-4 |
|
284: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
285: |
Provide only one exit point in 'mobj_mm_alloc' function |
MISRAC2012-RULE_15_5-a-4 |
|
288: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
289: |
'free' function should not be used |
MISRAC2012-RULE_21_3-a-2 |
|
289: |
'free' function should not be used |
MISRAC2012-DIR_4_12-a-2 |
|
290: |
Provide only one exit point in 'mobj_mm_alloc' function |
MISRAC2012-RULE_15_5-a-4 |
|
298: |
Provide only one exit point in 'mobj_mm_alloc' function |
MISRAC2012-RULE_15_5-a-4 |
|
311: |
A tag name 'mobj' is reused |
MISRAC2012-RULE_5_7-a-2 |
|
316: |
A tag name 'mobj' is reused |
MISRAC2012-RULE_5_7-a-2 |
|
316: |
Identifier 'mobj' is hiding an identifier from global or namespace scope |
MISRAC2012-RULE_5_3-a-2 |
|
318: |
A tag name 'mobj' is reused |
MISRAC2012-RULE_5_7-a-2 |
|
318: |
Identifier 'mobj' is hiding an identifier from global or namespace scope |
MISRAC2012-RULE_5_3-a-2 |
|
323: |
Provide only one exit point in 'mobj_shm_get_va' function |
MISRAC2012-RULE_15_5-a-4 |
|
325: |
Provide only one exit point in 'mobj_shm_get_va' function |
MISRAC2012-RULE_15_5-a-4 |
|
328: |
A tag name 'mobj' is reused |
MISRAC2012-RULE_5_7-a-2 |
|
328: |
Identifier 'mobj' is hiding an identifier from global or namespace scope |
MISRAC2012-RULE_5_3-a-2 |
|
334: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
334: |
The operands of a logical '||' in function 'mobj_shm_get_pa' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
334: |
The operands of a logical '||' in function 'mobj_shm_get_pa' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
335: |
Integer constant '0xFFFF0000' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
335: |
Provide only one exit point in 'mobj_shm_get_pa' function |
MISRAC2012-RULE_15_5-a-4 |
|
339: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
340: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
340: |
The operands of a logical '&&' in function 'mobj_shm_get_pa' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
341: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
341: |
The operands of a logical '&&' in function 'mobj_shm_get_pa' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
342: |
Integer constant '0xFFFF0000' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
342: |
Provide only one exit point in 'mobj_shm_get_pa' function |
MISRAC2012-RULE_15_5-a-4 |
|
347: |
Provide only one exit point in 'mobj_shm_get_pa' function |
MISRAC2012-RULE_15_5-a-4 |
|
349: |
Declaration of object '____keep_pager_mobj_shm_get_pa_core_arch_arm_mm_mobj_c' does not precede its definition |
MISRAC2012-RULE_8_4-a-2 |
|
349: |
Pointer to function 'TEE_Result (*)(struct mobj *, size_t, size_t, paddr_t *)' should not be cast to other type |
MISRAC2012-RULE_11_1-a-2 |
|
349: |
Reserved name '____keep_pager_mobj_shm_get_pa' used |
MISRAC2012-RULE_21_2-a-2 |
|
349: |
Reserved name '____keep_pager_mobj_shm_get_pa_core_arch_arm_mm_mobj_c' used |
MISRAC2012-RULE_21_2-a-2 |
|
349: |
The '____keep_pager_mobj_shm_get_pa' object has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
351: |
A tag name 'mobj' is reused |
MISRAC2012-RULE_5_7-a-2 |
|
351: |
Identifier 'mobj' is hiding an identifier from global or namespace scope |
MISRAC2012-RULE_5_3-a-2 |
|
353: |
Potential macro 'IS_POWER_OF_TWO' used as '1' parameter of potential macro 'assert' |
MISRAC2012-RULE_20_12-a-2 |
|
357: |
A tag name 'mobj' is reused |
MISRAC2012-RULE_5_7-a-2 |
|
357: |
Identifier 'mobj' is hiding an identifier from global or namespace scope |
MISRAC2012-RULE_5_3-a-2 |
|
357: |
Parameter 'mobj' is not used in function 'mobj_shm_matches' |
MISRAC2012-RULE_2_7-a-4 |
|
357: |
Pass parameter "mobj" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
359: |
The operands of a logical '||' in function 'mobj_shm_matches' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
359: |
The operands of a logical '||' in function 'mobj_shm_matches' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
362: |
A tag name 'mobj' is reused |
MISRAC2012-RULE_5_7-a-2 |
|
362: |
Identifier 'mobj' is hiding an identifier from global or namespace scope |
MISRAC2012-RULE_5_3-a-2 |
|
366: |
'free' function should not be used |
MISRAC2012-RULE_21_3-a-2 |
|
366: |
'free' function should not be used |
MISRAC2012-DIR_4_12-a-2 |
|
369: |
A tag name 'mobj' is reused |
MISRAC2012-RULE_5_7-a-2 |
|
369: |
Identifier 'mobj' is hiding an identifier from global or namespace scope |
MISRAC2012-RULE_5_3-a-2 |
|
383: |
A tag name 'mobj' is reused |
MISRAC2012-RULE_5_7-a-2 |
|
383: |
Identifier 'mobj' is hiding an identifier from global or namespace scope |
MISRAC2012-RULE_5_3-a-2 |
|
383: |
Pass parameter "mobj" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
386: |
Integral type 'unsigned long' should not be converted to pointer to object type 'struct mobj_shm *' |
MISRAC2012-RULE_11_4-a-4 |
|
386: |
Pointer to object type 'const struct mobj *' should not be converted to integral type 'unsigned long' |
MISRAC2012-RULE_11_4-a-4 |
|
386: |
Reserved name '__ptr' used |
MISRAC2012-RULE_21_2-a-2 |
|
393: |
The argument number '1' ('essentially Enum' type) is passed to the function 'core_pbuf_is' as a parameter with the 'essentially
unsigned' type
|
MISRAC2012-RULE_10_3-b-2 |
|
394: |
Provide only one exit point in 'mobj_shm_alloc' function |
MISRAC2012-RULE_15_5-a-4 |
|
396: |
'calloc' function should not be used |
MISRAC2012-RULE_21_3-a-2 |
|
396: |
'calloc' function should not be used |
MISRAC2012-DIR_4_12-a-2 |
|
396: |
Pointer to void type should not be converted to pointer to object type 'struct mobj_shm *' |
MISRAC2012-RULE_11_5-a-4 |
|
397: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
398: |
Provide only one exit point in 'mobj_shm_alloc' function |
MISRAC2012-RULE_15_5-a-4 |
|
406: |
Provide only one exit point in 'mobj_shm_alloc' function |
MISRAC2012-RULE_15_5-a-4 |
|
519: |
A tag name 'fobj' is reused |
MISRAC2012-RULE_5_7-a-2 |
|
521: |
A tag name 'mobj' is reused |
MISRAC2012-RULE_5_7-a-2 |
|
526: |
A tag name 'fobj' is reused |
MISRAC2012-RULE_5_7-a-2 |
|
526: |
Identifier 'fobj' is hiding an identifier from global or namespace scope |
MISRAC2012-RULE_5_3-a-2 |
|
530: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
531: |
Provide only one exit point in 'mobj_with_fobj_alloc' function |
MISRAC2012-RULE_15_5-a-4 |
|
533: |
'calloc' function should not be used |
MISRAC2012-RULE_21_3-a-2 |
|
533: |
'calloc' function should not be used |
MISRAC2012-DIR_4_12-a-2 |
|
533: |
Pointer to void type should not be converted to pointer to object type 'struct mobj_with_fobj *' |
MISRAC2012-RULE_11_5-a-4 |
|
534: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
535: |
Provide only one exit point in 'mobj_with_fobj_alloc' function |
MISRAC2012-RULE_15_5-a-4 |
|
539: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
539: |
The value of a composite expression (32 bit essential type) is assigned to an object with wider essential type (64 bit) |
MISRAC2012-RULE_10_6-a-2 |
|
540: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
544: |
Provide only one exit point in 'mobj_with_fobj_alloc' function |
MISRAC2012-RULE_15_5-a-4 |
|
547: |
A tag name 'mobj' is reused |
MISRAC2012-RULE_5_7-a-2 |
|
547: |
Identifier 'mobj' is hiding an identifier from global or namespace scope |
MISRAC2012-RULE_5_3-a-2 |
|
547: |
Pass parameter "mobj" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
549: |
The left hand operand of the logical operator '&&' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
549: |
The operands of a logical '&&' in function 'to_mobj_with_fobj' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
551: |
Integral type 'unsigned long' should not be converted to pointer to object type 'struct mobj_with_fobj *' |
MISRAC2012-RULE_11_4-a-4 |
|
551: |
Pointer to object type 'const struct mobj *' should not be converted to integral type 'unsigned long' |
MISRAC2012-RULE_11_4-a-4 |
|
551: |
Reserved name '__ptr' used |
MISRAC2012-RULE_21_2-a-2 |
|
554: |
A tag name 'mobj' is reused |
MISRAC2012-RULE_5_7-a-2 |
|
554: |
Identifier 'mobj' is hiding an identifier from global or namespace scope |
MISRAC2012-RULE_5_3-a-2 |
|
557: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
568: |
A tag name 'mobj' is reused |
MISRAC2012-RULE_5_7-a-2 |
|
568: |
Identifier 'mobj' is hiding an identifier from global or namespace scope |
MISRAC2012-RULE_5_3-a-2 |
|
574: |
'free' function should not be used |
MISRAC2012-RULE_21_3-a-2 |
|
574: |
'free' function should not be used |
MISRAC2012-DIR_4_12-a-2 |
|
577: |
A tag name 'mobj' is reused |
MISRAC2012-RULE_5_7-a-2 |
|
577: |
Identifier 'mobj' is hiding an identifier from global or namespace scope |
MISRAC2012-RULE_5_3-a-2 |
|
582: |
A tag name 'mobj' is reused |
MISRAC2012-RULE_5_7-a-2 |
|
582: |
Identifier 'mobj' is hiding an identifier from global or namespace scope |
MISRAC2012-RULE_5_3-a-2 |
|
582: |
Parameter 'mobj' is not used in function 'mobj_with_fobj_get_cattr' |
MISRAC2012-RULE_2_7-a-4 |
|
582: |
Pass parameter "mobj" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
585: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
586: |
Integer constant '0xFFFF0000' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
586: |
Provide only one exit point in 'mobj_with_fobj_get_cattr' function |
MISRAC2012-RULE_15_5-a-4 |
|
591: |
Provide only one exit point in 'mobj_with_fobj_get_cattr' function |
MISRAC2012-RULE_15_5-a-4 |
|
594: |
A tag name 'mobj' is reused |
MISRAC2012-RULE_5_7-a-2 |
|
594: |
Identifier 'mobj' is hiding an identifier from global or namespace scope |
MISRAC2012-RULE_5_3-a-2 |
|
600: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
602: |
Integer constant '0xFFFF000A' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
602: |
Provide only one exit point in 'mobj_with_fobj_get_pa' function |
MISRAC2012-RULE_15_5-a-4 |
|
605: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
606: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
606: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
608: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
609: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
609: |
The operands of a logical '&&' in function 'mobj_with_fobj_get_pa' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
610: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
610: |
The operands of a logical '&&' in function 'mobj_with_fobj_get_pa' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
611: |
Integer constant '0xFFFF0000' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
611: |
Provide only one exit point in 'mobj_with_fobj_get_pa' function |
MISRAC2012-RULE_15_5-a-4 |
|
617: |
Provide only one exit point in 'mobj_with_fobj_get_pa' function |
MISRAC2012-RULE_15_5-a-4 |
|
619: |
Declaration of object '____keep_pager_mobj_with_fobj_get_pa_core_arch_arm_mm_mobj_c' does not precede its definition |
MISRAC2012-RULE_8_4-a-2 |
|
619: |
Pointer to function 'TEE_Result (*)(struct mobj *, size_t, size_t, paddr_t *)' should not be cast to other type |
MISRAC2012-RULE_11_1-a-2 |
|
619: |
Reserved name '____keep_pager_mobj_with_fobj_get_pa' used |
MISRAC2012-RULE_21_2-a-2 |
|
619: |
Reserved name '____keep_pager_mobj_with_fobj_get_pa_core_arch_arm_mm_mobj_c' used |
MISRAC2012-RULE_21_2-a-2 |
|
619: |
The '____keep_pager_mobj_with_fobj_get_pa' object has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
619: |
The identifier '____keep_pager_mobj_with_fobj_get_pa_core_arch_arm_mm_mobj_c' has the same first 31 characters of the name
as the identifier '____keep_pager_mobj_with_fobj_get_pa' defined in the 'mobj.c' file in line '619'
|
MISRAC2012-RULE_5_1-a-2 |
|
621: |
Identifier 'mobj_with_fobj_ops' is being reused |
MISRAC2012-RULE_5_9-b-4 |
|
648: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
652: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
656: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
662: |
Reserved name '__scattered_array_0initcall' used |
MISRAC2012-RULE_21_2-a-2 |
| /optee_os_MISRA/optee_os_ruchi393_core/arch/arm/mm/mobj_dyn_shm.c |
|
35: |
A tag name 'mobj' is reused |
MISRAC2012-RULE_5_7-a-2 |
|
44: |
Flexible array member 'pages' is declared |
MISRAC2012-RULE_18_7-a-2 |
|
52: |
Provide only one exit point in 'mobj_reg_shm_size' function |
MISRAC2012-RULE_15_5-a-4 |
|
54: |
Provide only one exit point in 'mobj_reg_shm_size' function |
MISRAC2012-RULE_15_5-a-4 |
|
55: |
Provide only one exit point in 'mobj_reg_shm_size' function |
MISRAC2012-RULE_15_5-a-4 |
|
61: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
62: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
64: |
A tag name 'mobj' is reused |
MISRAC2012-RULE_5_7-a-2 |
|
64: |
Identifier 'mobj' is hiding an identifier from global or namespace scope |
MISRAC2012-RULE_5_3-a-2 |
|
66: |
A tag name 'mobj' is reused |
MISRAC2012-RULE_5_7-a-2 |
|
66: |
Identifier 'mobj' is hiding an identifier from global or namespace scope |
MISRAC2012-RULE_5_3-a-2 |
|
69: |
A tag name 'mobj_reg_shm' is reused |
MISRAC2012-RULE_5_7-a-2 |
|
69: |
Identifier 'mobj_reg_shm' is hiding an identifier from global or namespace scope |
MISRAC2012-RULE_5_3-a-2 |
|
73: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
74: |
Integer constant '0xFFFF0000' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
74: |
Provide only one exit point in 'mobj_reg_shm_get_pa' function |
MISRAC2012-RULE_15_5-a-4 |
|
77: |
Integer constant '0xFFFF0000' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
77: |
Provide only one exit point in 'mobj_reg_shm_get_pa' function |
MISRAC2012-RULE_15_5-a-4 |
|
82: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
83: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
85: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
86: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
89: |
Integer constant '0xFFFF0000' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
89: |
Provide only one exit point in 'mobj_reg_shm_get_pa' function |
MISRAC2012-RULE_15_5-a-4 |
|
93: |
Provide only one exit point in 'mobj_reg_shm_get_pa' function |
MISRAC2012-RULE_15_5-a-4 |
|
95: |
Declaration of object '____keep_pager_mobj_reg_shm_get_pa_core_arch_arm_mm_mobj_dyn_shm_c' does not precede its definition |
MISRAC2012-RULE_8_4-a-2 |
|
95: |
Pointer to function 'TEE_Result (*)(struct mobj *, size_t, size_t, paddr_t *)' should not be cast to other type |
MISRAC2012-RULE_11_1-a-2 |
|
95: |
Reserved name '____keep_pager_mobj_reg_shm_get_pa' used |
MISRAC2012-RULE_21_2-a-2 |
|
95: |
Reserved name '____keep_pager_mobj_reg_shm_get_pa_core_arch_arm_mm_mobj_dyn_shm_c' used |
MISRAC2012-RULE_21_2-a-2 |
|
95: |
The '____keep_pager_mobj_reg_shm_get_pa' object has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
95: |
The identifier '____keep_pager_mobj_reg_shm_get_pa_core_arch_arm_mm_mobj_dyn_shm_c' has the same first 31 characters of the
name as the identifier '____keep_pager_mobj_reg_shm_get_pa' defined in the 'mobj_dyn_shm.c' file in line '95'
|
MISRAC2012-RULE_5_1-a-2 |
|
97: |
A tag name 'mobj' is reused |
MISRAC2012-RULE_5_7-a-2 |
|
97: |
Identifier 'mobj' is hiding an identifier from global or namespace scope |
MISRAC2012-RULE_5_3-a-2 |
|
104: |
A tag name 'mobj' is reused |
MISRAC2012-RULE_5_7-a-2 |
|
104: |
Identifier 'mobj' is hiding an identifier from global or namespace scope |
MISRAC2012-RULE_5_3-a-2 |
|
108: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
108: |
The operands of a logical '||' in function 'mobj_reg_shm_get_va' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
108: |
The operands of a logical '||' in function 'mobj_reg_shm_get_va' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
109: |
Provide only one exit point in 'mobj_reg_shm_get_va' function |
MISRAC2012-RULE_15_5-a-4 |
|
111: |
Arithmetic type 'unsigned long' should not be converted to pointer to void type |
MISRAC2012-RULE_11_6-a-2 |
|
111: |
Provide only one exit point in 'mobj_reg_shm_get_va' function |
MISRAC2012-RULE_15_5-a-4 |
|
117: |
Potential macro 'SMALL_PAGE_SHIFT' used as '1' parameter of potential macro 'assert' |
MISRAC2012-RULE_20_12-a-2 |
|
123: |
A tag name 'mobj_reg_shm' is reused |
MISRAC2012-RULE_5_7-a-2 |
|
123: |
Identifier 'mobj_reg_shm' is hiding an identifier from global or namespace scope |
MISRAC2012-RULE_5_3-a-2 |
|
127: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
132: |
'while' statement in a function 'reg_shm_free_helper' should be followed by a block |
MISRAC2012-RULE_15_6-a-2 |
|
133: |
'free' function should not be used |
MISRAC2012-RULE_21_3-a-2 |
|
133: |
'free' function should not be used |
MISRAC2012-DIR_4_12-a-2 |
|
136: |
A tag name 'mobj' is reused |
MISRAC2012-RULE_5_7-a-2 |
|
136: |
Identifier 'mobj' is hiding an identifier from global or namespace scope |
MISRAC2012-RULE_5_3-a-2 |
|
141: |
The operands of a logical '&&' in function 'mobj_reg_shm_free' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
162: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
168: |
A tag name 'mobj' is reused |
MISRAC2012-RULE_5_7-a-2 |
|
168: |
Identifier 'mobj' is hiding an identifier from global or namespace scope |
MISRAC2012-RULE_5_3-a-2 |
|
168: |
Parameter 'mobj' is not used in function 'mobj_reg_shm_get_cattr' |
MISRAC2012-RULE_2_7-a-4 |
|
168: |
Pass parameter "mobj" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
171: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
172: |
Integer constant '0xFFFF0000' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
172: |
Provide only one exit point in 'mobj_reg_shm_get_cattr' function |
MISRAC2012-RULE_15_5-a-4 |
|
176: |
Provide only one exit point in 'mobj_reg_shm_get_cattr' function |
MISRAC2012-RULE_15_5-a-4 |
|
179: |
A tag name 'mobj' is reused |
MISRAC2012-RULE_5_7-a-2 |
|
179: |
Identifier 'mobj' is hiding an identifier from global or namespace scope |
MISRAC2012-RULE_5_3-a-2 |
|
186: |
Provide only one exit point in 'mobj_reg_shm_inc_map' function |
MISRAC2012-RULE_15_5-a-4 |
|
190: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
191: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
193: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
194: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
196: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
197: |
Integer constant '0xFFFF000C' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
198: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
202: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
203: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
206: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
213: |
Provide only one exit point in 'mobj_reg_shm_inc_map' function |
MISRAC2012-RULE_15_5-a-4 |
|
216: |
A tag name 'mobj' is reused |
MISRAC2012-RULE_5_7-a-2 |
|
216: |
Identifier 'mobj' is hiding an identifier from global or namespace scope |
MISRAC2012-RULE_5_3-a-2 |
|
222: |
Provide only one exit point in 'mobj_reg_shm_dec_map' function |
MISRAC2012-RULE_15_5-a-4 |
|
226: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
231: |
Provide only one exit point in 'mobj_reg_shm_dec_map' function |
MISRAC2012-RULE_15_5-a-4 |
|
234: |
A tag name 'mobj' is reused |
MISRAC2012-RULE_5_7-a-2 |
|
234: |
Identifier 'mobj' is hiding an identifier from global or namespace scope |
MISRAC2012-RULE_5_3-a-2 |
|
236: |
A tag name 'mobj' is reused |
MISRAC2012-RULE_5_7-a-2 |
|
236: |
Identifier 'mobj' is hiding an identifier from global or namespace scope |
MISRAC2012-RULE_5_3-a-2 |
|
253: |
A tag name 'mobj' is reused |
MISRAC2012-RULE_5_7-a-2 |
|
253: |
Identifier 'mobj' is hiding an identifier from global or namespace scope |
MISRAC2012-RULE_5_3-a-2 |
|
253: |
Pass parameter "mobj" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
258: |
The operands of a logical '||' in function 'mobj_reg_shm_matches' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
258: |
The operands of a logical '||' in function 'mobj_reg_shm_matches' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
261: |
A tag name 'mobj' is reused |
MISRAC2012-RULE_5_7-a-2 |
|
261: |
Identifier 'mobj' is hiding an identifier from global or namespace scope |
MISRAC2012-RULE_5_3-a-2 |
|
261: |
Pass parameter "mobj" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
264: |
Integral type 'unsigned long' should not be converted to pointer to object type 'struct mobj_reg_shm *' |
MISRAC2012-RULE_11_4-a-4 |
|
264: |
Pointer to object type 'const struct mobj *' should not be converted to integral type 'unsigned long' |
MISRAC2012-RULE_11_4-a-4 |
|
264: |
Reserved name '__ptr' used |
MISRAC2012-RULE_21_2-a-2 |
|
267: |
Pass parameter "pages" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
270: |
A tag name 'mobj_reg_shm' is reused |
MISRAC2012-RULE_5_7-a-2 |
|
270: |
Identifier 'mobj_reg_shm' is hiding an identifier from global or namespace scope |
MISRAC2012-RULE_5_3-a-2 |
|
275: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
275: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
275: |
The operands of a logical '||' in function 'mobj_reg_shm_alloc' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
275: |
The operands of a logical '||' in function 'mobj_reg_shm_alloc' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
276: |
Provide only one exit point in 'mobj_reg_shm_alloc' function |
MISRAC2012-RULE_15_5-a-4 |
|
279: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
280: |
Provide only one exit point in 'mobj_reg_shm_alloc' function |
MISRAC2012-RULE_15_5-a-4 |
|
281: |
'calloc' function should not be used |
MISRAC2012-RULE_21_3-a-2 |
|
281: |
'calloc' function should not be used |
MISRAC2012-DIR_4_12-a-2 |
|
281: |
Pointer to void type should not be converted to pointer to object type 'struct mobj_reg_shm *' |
MISRAC2012-RULE_11_5-a-4 |
|
282: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
283: |
Provide only one exit point in 'mobj_reg_shm_alloc' function |
MISRAC2012-RULE_15_5-a-4 |
|
286: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
286: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
287: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
292: |
Unused function's "memcpy" return value |
MISRAC2012-RULE_17_7-a-2 |
|
295: |
Only one 'goto' statement in loop is allowed. This loop contains 'goto' in lines: 297, 302 |
MISRAC2012-RULE_15_4-a-4 |
|
296: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
296: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
297: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
300: |
The argument number '1' ('essentially Enum' type) is passed to the function 'core_pbuf_is' as a parameter with the 'essentially
unsigned' type
|
MISRAC2012-RULE_10_3-b-2 |
|
301: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
302: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
309: |
Provide only one exit point in 'mobj_reg_shm_alloc' function |
MISRAC2012-RULE_15_5-a-4 |
|
311: |
'free' function should not be used |
MISRAC2012-RULE_21_3-a-2 |
|
311: |
'free' function should not be used |
MISRAC2012-DIR_4_12-a-2 |
|
312: |
Provide only one exit point in 'mobj_reg_shm_alloc' function |
MISRAC2012-RULE_15_5-a-4 |
|
315: |
A tag name 'mobj' is reused |
MISRAC2012-RULE_5_7-a-2 |
|
315: |
Identifier 'mobj' is hiding an identifier from global or namespace scope |
MISRAC2012-RULE_5_3-a-2 |
|
325: |
A tag name 'mobj_reg_shm' is reused |
MISRAC2012-RULE_5_7-a-2 |
|
325: |
Identifier 'mobj_reg_shm' is hiding an identifier from global or namespace scope |
MISRAC2012-RULE_5_3-a-2 |
|
327: |
'for' statement in a function 'reg_shm_find_unlocked' should be followed by a block |
MISRAC2012-RULE_15_6-a-2 |
|
327: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
329: |
Provide only one exit point in 'reg_shm_find_unlocked' function |
MISRAC2012-RULE_15_5-a-4 |
|
331: |
Provide only one exit point in 'reg_shm_find_unlocked' function |
MISRAC2012-RULE_15_5-a-4 |
|
340: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
341: |
Provide only one exit point in 'mobj_reg_shm_get_by_cookie' function |
MISRAC2012-RULE_15_5-a-4 |
|
343: |
Provide only one exit point in 'mobj_reg_shm_get_by_cookie' function |
MISRAC2012-RULE_15_5-a-4 |
|
359: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
359: |
The operands of a logical '||' in function 'mobj_reg_shm_release_by_cookie' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
366: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
367: |
Integer constant '0xFFFF0006' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
367: |
Provide only one exit point in 'mobj_reg_shm_release_by_cookie' function |
MISRAC2012-RULE_15_5-a-4 |
|
382: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
392: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
397: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
401: |
Provide only one exit point in 'mobj_reg_shm_release_by_cookie' function |
MISRAC2012-RULE_15_5-a-4 |
|
407: |
A tag name 'mobj' is reused |
MISRAC2012-RULE_5_7-a-2 |
|
407: |
Identifier 'mobj' is hiding an identifier from global or namespace scope |
MISRAC2012-RULE_5_3-a-2 |
|
410: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
411: |
Provide only one exit point in 'mobj_mapped_shm_alloc' function |
MISRAC2012-RULE_15_5-a-4 |
|
413: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
415: |
Provide only one exit point in 'mobj_mapped_shm_alloc' function |
MISRAC2012-RULE_15_5-a-4 |
|
418: |
Provide only one exit point in 'mobj_mapped_shm_alloc' function |
MISRAC2012-RULE_15_5-a-4 |
|
427: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
427: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
427: |
The operands of a logical '||' in function 'mobj_mapped_shm_init' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
427: |
The operands of a logical '||' in function 'mobj_mapped_shm_init' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
439: |
Reserved name '__scattered_array_0initcall' used |
MISRAC2012-RULE_21_2-a-2 |
| /optee_os_MISRA/optee_os_ruchi393_core/arch/arm/mm/pgt_cache.c |
|
59: |
Global variable 'pgt_entries' is being used only in a single function 'pgt_init' |
MISRAC2012-RULE_8_9-a-4 |
|
59: |
The left hand operand of the '&' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
59: |
The operand of the '~' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
59: |
The right hand operand of the '&' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
107: |
The left hand operand of the '&' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
107: |
The operand of the '~' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
107: |
The right hand operand of the '&' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
112: |
The variable 'pgt_entries' used as the left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
125: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
127: |
The argument number '3' ('essentially signed' type) is passed to the function 'memset' as a parameter with the 'essentially
unsigned' type
|
MISRAC2012-RULE_10_3-b-2 |
|
127: |
Unused function's "memset" return value |
MISRAC2012-RULE_17_7-a-2 |
|
405: |
A tag name 'pgt_cache' is reused |
MISRAC2012-RULE_5_7-a-2 |
|
405: |
Identifier 'pgt_cache' is hiding an identifier from global or namespace scope |
MISRAC2012-RULE_5_3-a-2 |
|
406: |
Parameter 'save_ctx' is not used in function 'pgt_free_unlocked' |
MISRAC2012-RULE_2_7-a-4 |
|
417: |
Parameter 'ctx' is not used in function 'pop_from_some_list' |
MISRAC2012-RULE_2_7-a-4 |
|
417: |
Pass parameter "ctx" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
421: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
428: |
A tag name 'pgt_cache' is reused |
MISRAC2012-RULE_5_7-a-2 |
|
428: |
Identifier 'pgt_cache' is hiding an identifier from global or namespace scope |
MISRAC2012-RULE_5_3-a-2 |
|
428: |
Pass parameter "pgt_cache" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
429: |
Parameter 'ctx' is not used in function 'clear_ctx_range_from_list' |
MISRAC2012-RULE_2_7-a-4 |
|
429: |
Pass parameter "ctx" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
438: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
439: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
441: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
442: |
Reserved name '_a' used |
MISRAC2012-RULE_21_2-a-2 |
|
442: |
Reserved name '_b' used |
MISRAC2012-RULE_21_2-a-2 |
|
442: |
The names of the identifiers '_b' and 'b' (line: 442 in the 'pgt_cache.c' file) differ only in the presence/absence of the
underscore character
|
MISRAC2012-DIR_4_5-a-4 |
|
442: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
443: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
443: |
Reserved name '_a' used |
MISRAC2012-RULE_21_2-a-2 |
|
443: |
Reserved name '_b' used |
MISRAC2012-RULE_21_2-a-2 |
|
443: |
The names of the identifiers '_b' and 'b' (line: 442 in the 'pgt_cache.c' file) differ only in the presence/absence of the
underscore character
|
MISRAC2012-DIR_4_5-a-4 |
|
443: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
452: |
Pointer to void type should not be converted to pointer to object type 'uint64_t *' |
MISRAC2012-RULE_11_5-a-4 |
|
453: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
453: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with a narrower essential type (4 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
454: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
454: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with a narrower essential type (4 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
455: |
The variable 'tbl' used as the left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
455: |
Unused function's "memset" return value |
MISRAC2012-RULE_17_7-a-2 |
|
459: |
A tag name 'pgt_cache' is reused |
MISRAC2012-RULE_5_7-a-2 |
|
459: |
Identifier 'pgt_cache' is hiding an identifier from global or namespace scope |
MISRAC2012-RULE_5_3-a-2 |
|
464: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
473: |
A tag name 'pgt_cache' is reused |
MISRAC2012-RULE_5_7-a-2 |
|
473: |
Identifier 'pgt_cache' is hiding an identifier from global or namespace scope |
MISRAC2012-RULE_5_3-a-2 |
|
476: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
483: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
483: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
484: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
485: |
Pointer to object type 'struct ts_ctx *' should not be converted to integral type '_Bool' in function's argument |
MISRAC2012-RULE_11_4-a-4 |
|
486: |
Provide only one exit point in 'pgt_alloc_unlocked' function |
MISRAC2012-RULE_15_5-a-4 |
|
489: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
497: |
Provide only one exit point in 'pgt_alloc_unlocked' function |
MISRAC2012-RULE_15_5-a-4 |
|
500: |
A tag name 'pgt_cache' is reused |
MISRAC2012-RULE_5_7-a-2 |
|
500: |
Identifier 'pgt_cache' is hiding an identifier from global or namespace scope |
MISRAC2012-RULE_5_3-a-2 |
|
500: |
Identifiers given in declaration of 'pgt_alloc' function (file: 'pgt_cache.h', line: '60') are: 'owning_ctx' not: 'ctx' |
MISRAC2012-RULE_8_3-b-2 |
|
504: |
'return' statement should be at the end of the 'pgt_alloc' function |
MISRAC2012-RULE_15_5-a-4 |
|
508: |
Pointer to object type 'struct ts_ctx *' should not be converted to integral type '_Bool' in function's argument |
MISRAC2012-RULE_11_4-a-4 |
|
518: |
A tag name 'pgt_cache' is reused |
MISRAC2012-RULE_5_7-a-2 |
|
518: |
Identifier 'pgt_cache' is hiding an identifier from global or namespace scope |
MISRAC2012-RULE_5_3-a-2 |
|
521: |
'return' statement should be at the end of the 'pgt_free' function |
MISRAC2012-RULE_15_5-a-4 |
| /optee_os_MISRA/optee_os_ruchi393_core/arch/arm/mm/tee_mm.c |
|
14: |
Pass parameter "pool" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
16: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
17: |
'malloc' function should not be used |
MISRAC2012-RULE_21_3-a-2 |
|
17: |
'malloc' function should not be used |
MISRAC2012-DIR_4_12-a-2 |
|
17: |
Provide only one exit point in 'pmalloc' function |
MISRAC2012-RULE_15_5-a-4 |
|
19: |
'malloc' function should not be used |
MISRAC2012-RULE_21_3-a-2 |
|
19: |
'malloc' function should not be used |
MISRAC2012-DIR_4_12-a-2 |
|
19: |
Provide only one exit point in 'pmalloc' function |
MISRAC2012-RULE_15_5-a-4 |
|
22: |
Pass parameter "pool" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
24: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
25: |
'calloc' function should not be used |
MISRAC2012-RULE_21_3-a-2 |
|
25: |
'calloc' function should not be used |
MISRAC2012-DIR_4_12-a-2 |
|
25: |
Provide only one exit point in 'pcalloc' function |
MISRAC2012-RULE_15_5-a-4 |
|
27: |
'calloc' function should not be used |
MISRAC2012-RULE_21_3-a-2 |
|
27: |
'calloc' function should not be used |
MISRAC2012-DIR_4_12-a-2 |
|
27: |
Provide only one exit point in 'pcalloc' function |
MISRAC2012-RULE_15_5-a-4 |
|
30: |
Pass parameter "pool" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
32: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
33: |
'free' function should not be used |
MISRAC2012-RULE_21_3-a-2 |
|
33: |
'free' function should not be used |
MISRAC2012-DIR_4_12-a-2 |
|
35: |
'free' function should not be used |
MISRAC2012-RULE_21_3-a-2 |
|
35: |
'free' function should not be used |
MISRAC2012-DIR_4_12-a-2 |
|
42: |
Provide only one exit point in 'tee_mm_init' function |
MISRAC2012-RULE_15_5-a-4 |
|
44: |
Composite expression with 'signed' essential type category shall not be cast to different essential type category 'unsigned' |
MISRAC2012-RULE_10_8-a-2 |
|
44: |
Composite expression with 'signed' essential type category shall not be cast to different essential type category 'unsigned' |
MISRAC2012-RULE_10_8-a-2 |
|
44: |
Parameter 'lo' is modified in function 'tee_mm_init' |
MISRAC2012-RULE_17_8-a-4 |
|
44: |
Shifting operation should be enclosed with if checking that RHS operand does not exceed the upper limit (one less than the
width in bits of the underlying type of the LHS operand)
|
MISRAC2012-RULE_12_2-a-2 |
|
44: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
45: |
Composite expression with 'signed' essential type category shall not be cast to different essential type category 'unsigned' |
MISRAC2012-RULE_10_8-a-2 |
|
45: |
Parameter 'hi' is modified in function 'tee_mm_init' |
MISRAC2012-RULE_17_8-a-4 |
|
45: |
Shifting operation should be enclosed with if checking that RHS operand does not exceed the upper limit (one less than the
width in bits of the underlying type of the LHS operand)
|
MISRAC2012-RULE_12_2-a-2 |
|
45: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
47: |
Potential macro 'UINT32_MAX' used as '1' parameter of potential macro 'assert' |
MISRAC2012-RULE_20_12-a-2 |
|
47: |
Shifting operation should be enclosed with if checking that RHS operand does not exceed the upper limit (one less than the
width in bits of the underlying type of the LHS operand)
|
MISRAC2012-RULE_12_2-a-2 |
|
53: |
Pointer to void type should not be converted to pointer to object type 'tee_mm_entry_t *' |
MISRAC2012-RULE_11_5-a-4 |
|
56: |
Provide only one exit point in 'tee_mm_init' function |
MISRAC2012-RULE_15_5-a-4 |
|
58: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
59: |
Shifting operation should be enclosed with if checking that RHS operand does not exceed the upper limit (one less than the
width in bits of the underlying type of the LHS operand)
|
MISRAC2012-RULE_12_2-a-2 |
|
59: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with a narrower essential type (4 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
63: |
Provide only one exit point in 'tee_mm_init' function |
MISRAC2012-RULE_15_5-a-4 |
|
68: |
The operands of a logical '||' in function 'tee_mm_final' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
68: |
The operands of a logical '||' in function 'tee_mm_final' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
69: |
'return' statement should be at the end of the 'tee_mm_final' function |
MISRAC2012-RULE_15_5-a-4 |
|
71: |
'while' statement in a function 'tee_mm_final' should be followed by a block |
MISRAC2012-RULE_15_6-a-2 |
|
85: |
Pass parameter "pool" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
90: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
91: |
Provide only one exit point in 'tee_mm_stats_allocated' function |
MISRAC2012-RULE_15_5-a-4 |
|
94: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
99: |
Provide only one exit point in 'tee_mm_stats_allocated' function |
MISRAC2012-RULE_15_5-a-4 |
|
99: |
Shifting operation should be enclosed with if checking that RHS operand does not exceed the upper limit (one less than the
width in bits of the underlying type of the LHS operand)
|
MISRAC2012-RULE_12_2-a-2 |
|
99: |
The value of a composite expression (32 bit essential type) is returned from function 'tee_mm_stats_allocated' with wider
essential return type (64 bit)
|
MISRAC2012-RULE_10_6-a-2 |
|
107: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
108: |
'return' statement should be at the end of the 'tee_mm_get_pool_stats' function |
MISRAC2012-RULE_15_5-a-4 |
|
110: |
Unused function's "memset" return value |
MISRAC2012-RULE_17_7-a-2 |
|
114: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with a narrower essential type (4 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
115: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with a narrower essential type (4 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
116: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with a narrower essential type (4 byte) |
MISRAC2012-RULE_10_3-a-2 |
| +
|
127: |
"pool" may possibly be null |
MISRAC2012-DIR_4_1-b-2 |
| |
|
tee_mm.c (125): size_t sz = tee_mm_stats_allocated(pool);
tee_mm.c (87): tee_mm_entry_t *entry;
tee_mm.c (88): uint32_t sz = 0;
Source of null value
tee_mm.c (90): if (!pool) *** Null value carrier: pool *** Condition evaluation: !pool (assuming true)
tee_mm.c (91): return 0;
Null pointer dereferencing point
tee_mm.c (127): if (sz > pool->max_allocated) *** Null value carrier: pool |
|
|
145: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
145: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
145: |
The operands of a logical '||' in function 'tee_mm_alloc' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
145: |
The operands of a logical '||' in function 'tee_mm_alloc' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
146: |
Provide only one exit point in 'tee_mm_alloc' function |
MISRAC2012-RULE_15_5-a-4 |
|
148: |
Pointer to void type should not be converted to pointer to object type 'tee_mm_entry_t *' |
MISRAC2012-RULE_11_5-a-4 |
|
149: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
150: |
Provide only one exit point in 'tee_mm_alloc' function |
MISRAC2012-RULE_15_5-a-4 |
|
158: |
Shifting operation should be enclosed with if checking that RHS operand does not exceed the upper limit (one less than the
width in bits of the underlying type of the LHS operand)
|
MISRAC2012-RULE_12_2-a-2 |
|
161: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
162: |
'while' statement in a function 'tee_mm_alloc' should be followed by a block |
MISRAC2012-RULE_15_6-a-2 |
|
162: |
Essential type of LHS operand (64 bit) is wider than essential type of composite expression in RHS operand (32 bit) |
MISRAC2012-RULE_10_7-a-2 |
|
162: |
The operands of a logical '&&' in function 'tee_mm_alloc' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
162: |
The operands of a logical '&&' in function 'tee_mm_alloc' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
167: |
'while' statement in a function 'tee_mm_alloc' should be followed by a block |
MISRAC2012-RULE_15_6-a-2 |
|
167: |
Essential type of LHS operand (64 bit) is wider than essential type of composite expression in RHS operand (32 bit) |
MISRAC2012-RULE_10_7-a-2 |
|
167: |
The operands of a logical '&&' in function 'tee_mm_alloc' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
167: |
The operands of a logical '&&' in function 'tee_mm_alloc' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
174: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
184: |
Essential type of RHS operand (64 bit) is wider than essential type of composite expression in LHS operand (32 bit) |
MISRAC2012-RULE_10_7-a-2 |
|
184: |
Shifting operation should be enclosed with if checking that RHS operand does not exceed the upper limit (one less than the
width in bits of the underlying type of the LHS operand)
|
MISRAC2012-RULE_12_2-a-2 |
|
186: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
193: |
Essential type of LHS operand (64 bit) is wider than essential type of composite expression in RHS operand (32 bit) |
MISRAC2012-RULE_10_7-a-2 |
|
193: |
Shifting operation should be enclosed with if checking that RHS operand does not exceed the upper limit (one less than the
width in bits of the underlying type of the LHS operand)
|
MISRAC2012-RULE_12_2-a-2 |
|
198: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
205: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
206: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with a narrower essential type (4 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
209: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with a narrower essential type (4 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
215: |
Provide only one exit point in 'tee_mm_alloc' function |
MISRAC2012-RULE_15_5-a-4 |
|
219: |
Provide only one exit point in 'tee_mm_alloc' function |
MISRAC2012-RULE_15_5-a-4 |
|
222: |
Pass parameter "e" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
222: |
Pass parameter "pool" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
225: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
226: |
The operands of a logical '||' in function 'fit_in_gap' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
227: |
The operands of a logical '&&' in function 'fit_in_gap' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
228: |
Essential type of LHS operand (64 bit) is wider than essential type of composite expression in RHS operand (32 bit) |
MISRAC2012-RULE_10_7-a-2 |
|
228: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
229: |
Shifting operation should be enclosed with if checking that RHS operand does not exceed the upper limit (one less than the
width in bits of the underlying type of the LHS operand)
|
MISRAC2012-RULE_12_2-a-2 |
|
229: |
The operands of a logical '||' in function 'fit_in_gap' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
229: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
231: |
Provide only one exit point in 'fit_in_gap' function |
MISRAC2012-RULE_15_5-a-4 |
|
233: |
Essential type of LHS operand (64 bit) is wider than essential type of composite expression in RHS operand (32 bit) |
MISRAC2012-RULE_10_7-a-2 |
|
233: |
The operands of a logical '||' in function 'fit_in_gap' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
234: |
The operands of a logical '&&' in function 'fit_in_gap' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
235: |
Shifting operation should be enclosed with if checking that RHS operand does not exceed the upper limit (one less than the
width in bits of the underlying type of the LHS operand)
|
MISRAC2012-RULE_12_2-a-2 |
|
235: |
The operands of a logical '||' in function 'fit_in_gap' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
237: |
Provide only one exit point in 'fit_in_gap' function |
MISRAC2012-RULE_15_5-a-4 |
|
240: |
Provide only one exit point in 'fit_in_gap' function |
MISRAC2012-RULE_15_5-a-4 |
|
252: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
252: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
252: |
The operands of a logical '||' in function 'tee_mm_alloc2' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
252: |
The operands of a logical '||' in function 'tee_mm_alloc2' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
253: |
Provide only one exit point in 'tee_mm_alloc2' function |
MISRAC2012-RULE_15_5-a-4 |
|
256: |
The operands of a logical '||' in function 'tee_mm_alloc2' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
256: |
The operands of a logical '||' in function 'tee_mm_alloc2' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
257: |
Provide only one exit point in 'tee_mm_alloc2' function |
MISRAC2012-RULE_15_5-a-4 |
|
259: |
Pointer to void type should not be converted to pointer to object type 'tee_mm_entry_t *' |
MISRAC2012-RULE_11_5-a-4 |
|
260: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
261: |
Provide only one exit point in 'tee_mm_alloc2' function |
MISRAC2012-RULE_15_5-a-4 |
|
266: |
Shifting operation should be enclosed with if checking that RHS operand does not exceed the upper limit (one less than the
width in bits of the underlying type of the LHS operand)
|
MISRAC2012-RULE_12_2-a-2 |
|
267: |
Shifting operation should be enclosed with if checking that RHS operand does not exceed the upper limit (one less than the
width in bits of the underlying type of the LHS operand)
|
MISRAC2012-RULE_12_2-a-2 |
|
267: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
270: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
271: |
'while' statement in a function 'tee_mm_alloc2' should be followed by a block |
MISRAC2012-RULE_15_6-a-2 |
|
271: |
The operands of a logical '&&' in function 'tee_mm_alloc2' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
272: |
Essential type of LHS operand (64 bit) is wider than essential type of composite expression in RHS operand (32 bit) |
MISRAC2012-RULE_10_7-a-2 |
|
272: |
The operands of a logical '&&' in function 'tee_mm_alloc2' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
272: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
275: |
'while' statement in a function 'tee_mm_alloc2' should be followed by a block |
MISRAC2012-RULE_15_6-a-2 |
|
275: |
The operands of a logical '&&' in function 'tee_mm_alloc2' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
275: |
The operands of a logical '&&' in function 'tee_mm_alloc2' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
281: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
285: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with a narrower essential type (4 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
286: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with a narrower essential type (4 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
291: |
Provide only one exit point in 'tee_mm_alloc2' function |
MISRAC2012-RULE_15_5-a-4 |
|
295: |
Provide only one exit point in 'tee_mm_alloc2' function |
MISRAC2012-RULE_15_5-a-4 |
|
303: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
303: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
303: |
The operands of a logical '||' in function 'tee_mm_free' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
303: |
The operands of a logical '||' in function 'tee_mm_free' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
304: |
'return' statement should be at the end of the 'tee_mm_free' function |
MISRAC2012-RULE_15_5-a-4 |
|
310: |
'while' statement in a function 'tee_mm_free' should be followed by a block |
MISRAC2012-RULE_15_6-a-2 |
|
310: |
The operands of a logical '&&' in function 'tee_mm_free' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
310: |
The operands of a logical '&&' in function 'tee_mm_free' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
313: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
324: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
324: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
324: |
The operands of a logical '||' in function 'tee_mm_get_bytes' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
324: |
The operands of a logical '||' in function 'tee_mm_get_bytes' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
325: |
Provide only one exit point in 'tee_mm_get_bytes' function |
MISRAC2012-RULE_15_5-a-4 |
|
327: |
Provide only one exit point in 'tee_mm_get_bytes' function |
MISRAC2012-RULE_15_5-a-4 |
|
327: |
Shifting operation should be enclosed with if checking that RHS operand does not exceed the upper limit (one less than the
width in bits of the underlying type of the LHS operand)
|
MISRAC2012-RULE_12_2-a-2 |
|
327: |
The value of a composite expression (32 bit essential type) is returned from function 'tee_mm_get_bytes' with wider essential
return type (64 bit)
|
MISRAC2012-RULE_10_6-a-2 |
|
330: |
Pass parameter "pool" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
332: |
The left hand operand of the logical operator '&&' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
340: |
The operands of a logical '||' in function 'tee_mm_is_empty' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
340: |
The operands of a logical '||' in function 'tee_mm_is_empty' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
341: |
Provide only one exit point in 'tee_mm_is_empty' function |
MISRAC2012-RULE_15_5-a-4 |
|
344: |
The operands of a logical '||' in function 'tee_mm_is_empty' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
344: |
The operands of a logical '||' in function 'tee_mm_is_empty' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
347: |
Provide only one exit point in 'tee_mm_is_empty' function |
MISRAC2012-RULE_15_5-a-4 |
|
362: |
Shifting operation should be enclosed with if checking that RHS operand does not exceed the upper limit (one less than the
width in bits of the underlying type of the LHS operand)
|
MISRAC2012-RULE_12_2-a-2 |
|
362: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with a narrower essential type (2 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
365: |
The operands of a logical '||' in function 'tee_mm_find' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
365: |
The operands of a logical '||' in function 'tee_mm_find' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
366: |
Provide only one exit point in 'tee_mm_find' function |
MISRAC2012-RULE_15_5-a-4 |
|
368: |
Cast from 'const tee_mm_pool_t *' removes 'const' qualifier |
MISRAC2012-RULE_11_8-a-2 |
|
375: |
Cast from 'const tee_mm_pool_t *' removes 'const' qualifier |
MISRAC2012-RULE_11_8-a-2 |
|
377: |
Provide only one exit point in 'tee_mm_find' function |
MISRAC2012-RULE_15_5-a-4 |
|
381: |
Cast from 'const tee_mm_pool_t *' removes 'const' qualifier |
MISRAC2012-RULE_11_8-a-2 |
|
382: |
Provide only one exit point in 'tee_mm_find' function |
MISRAC2012-RULE_15_5-a-4 |
|
387: |
Essential type of RHS operand (64 bit) is wider than essential type of composite expression in LHS operand (32 bit) |
MISRAC2012-RULE_10_7-a-2 |
|
387: |
Shifting operation should be enclosed with if checking that RHS operand does not exceed the upper limit (one less than the
width in bits of the underlying type of the LHS operand)
|
MISRAC2012-RULE_12_2-a-2 |
| /optee_os_MISRA/optee_os_ruchi393_core/arch/arm/plat-vexpress/main.c |
|
27: |
A tag name 'gic_data' is reused |
MISRAC2012-RULE_5_7-a-2 |
|
30: |
Declaration of object '____keep_init___scattered_array_0phys_mem_map_core_arch_arm_plat_vexpress_main_c' does not precede
its definition
|
MISRAC2012-RULE_8_4-a-2 |
|
30: |
Identifier '__scattered_array_0phys_mem_map' is being reused |
MISRAC2012-RULE_5_9-b-4 |
|
30: |
Pointer to object type 'const struct core_mmu_phys_mem *' should not be converted to integral type 'unsigned long' |
MISRAC2012-RULE_11_4-a-4 |
|
30: |
Reserved name '____keep_init___scattered_array_0phys_mem_map_core_arch_arm_plat_vexpress_main_c' used |
MISRAC2012-RULE_21_2-a-2 |
|
30: |
Reserved name '____keep_init___scattered_array_0phys_mem_mapcore_arch_arm_plat_vexpress_main_c' used |
MISRAC2012-RULE_21_2-a-2 |
|
30: |
Reserved name '__scattered_array_0phys_mem_map' used |
MISRAC2012-RULE_21_2-a-2 |
|
30: |
Reserved name '__scattered_array_0phys_mem_map' used |
MISRAC2012-RULE_21_2-a-2 |
|
30: |
The '____keep_init___scattered_array_0phys_mem_mapcore_arch_arm_plat_vexpress_main_c' object has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
30: |
The expression of the 'essentially signed' type is assigned to an object with the 'essentially unsigned' type |
MISRAC2012-RULE_10_3-b-2 |
|
30: |
The identifier '____keep_init___scattered_array_0phys_mem_map_core_arch_arm_plat_vexpress_main_c' has the same first 31 characters
of the name as the identifier '____keep_init___scattered_array_0phys_mem_mapcore_arch_arm_plat_vexpress_main_c' defined in
the 'main.c' file in line '30'
|
MISRAC2012-RULE_5_1-a-2 |
|
30: |
The left hand operand of the '&' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
30: |
The names of the identifiers '____keep_init___scattered_array_0phys_mem_map_core_arch_arm_plat_vexpress_main_c' and '____keep_init___scattered_array_0phys_mem_mapcore_arch_arm_plat_vexpress_main_c'
(line: 30 in the 'main.c' file) differ only in the presence/absence of the underscore character
|
MISRAC2012-DIR_4_5-a-4 |
|
30: |
The operand of the '~' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
30: |
The right hand operand of the '&' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
32: |
Potential macro 'TZCDRAM_BASE' used as '2' parameter of potential macro 'register_phys_mem' |
MISRAC2012-RULE_20_12-a-2 |
|
38: |
Potential macro 'DRAM0_BASE' used as '1' parameter of potential macro 'register_ddr' |
MISRAC2012-RULE_20_12-a-2 |
|
41: |
Potential macro 'DRAM1_BASE' used as '1' parameter of potential macro 'register_ddr' |
MISRAC2012-RULE_20_12-a-2 |
|
46: |
Declaration of object '____keep_init___scattered_array_1phys_mem_map_core_arch_arm_plat_vexpress_main_c' does not precede
its definition
|
MISRAC2012-RULE_8_4-a-2 |
|
46: |
Identifier '__scattered_array_1phys_mem_map' is being reused |
MISRAC2012-RULE_5_9-b-4 |
|
46: |
Pointer to object type 'const struct core_mmu_phys_mem *' should not be converted to integral type 'unsigned long' |
MISRAC2012-RULE_11_4-a-4 |
|
46: |
Reserved name '____keep_init___scattered_array_1phys_mem_map_core_arch_arm_plat_vexpress_main_c' used |
MISRAC2012-RULE_21_2-a-2 |
|
46: |
Reserved name '____keep_init___scattered_array_1phys_mem_mapcore_arch_arm_plat_vexpress_main_c' used |
MISRAC2012-RULE_21_2-a-2 |
|
46: |
Reserved name '__scattered_array_1phys_mem_map' used |
MISRAC2012-RULE_21_2-a-2 |
|
46: |
Reserved name '__scattered_array_1phys_mem_map' used |
MISRAC2012-RULE_21_2-a-2 |
|
46: |
The '____keep_init___scattered_array_1phys_mem_mapcore_arch_arm_plat_vexpress_main_c' object has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
46: |
The expression of the 'essentially signed' type is assigned to an object with the 'essentially unsigned' type |
MISRAC2012-RULE_10_3-b-2 |
|
46: |
The identifier '____keep_init___scattered_array_1phys_mem_map_core_arch_arm_plat_vexpress_main_c' has the same first 31 characters
of the name as the identifier '____keep_init___scattered_array_0phys_mem_map_core_arch_arm_plat_vexpress_main_c' defined in
the 'main.c' file in line '30'
|
MISRAC2012-RULE_5_1-a-2 |
|
46: |
The identifier '____keep_init___scattered_array_1phys_mem_map_core_arch_arm_plat_vexpress_main_c' has the same first 31 characters
of the name as the identifier '____keep_init___scattered_array_0phys_mem_mapcore_arch_arm_plat_vexpress_main_c' defined in
the 'main.c' file in line '30'
|
MISRAC2012-RULE_5_1-a-2 |
|
46: |
The identifier '____keep_init___scattered_array_1phys_mem_map_core_arch_arm_plat_vexpress_main_c' has the same first 31 characters
of the name as the identifier '____keep_init___scattered_array_1phys_mem_mapcore_arch_arm_plat_vexpress_main_c' defined in
the 'main.c' file in line '46'
|
MISRAC2012-RULE_5_1-a-2 |
|
46: |
The identifier '____keep_init___scattered_array_1phys_mem_mapcore_arch_arm_plat_vexpress_main_c' has the same first 31 characters
of the name as the identifier '____keep_init___scattered_array_0phys_mem_map_core_arch_arm_plat_vexpress_main_c' defined in
the 'main.c' file in line '30'
|
MISRAC2012-RULE_5_1-a-2 |
|
46: |
The identifier '____keep_init___scattered_array_1phys_mem_mapcore_arch_arm_plat_vexpress_main_c' has the same first 31 characters
of the name as the identifier '____keep_init___scattered_array_0phys_mem_mapcore_arch_arm_plat_vexpress_main_c' defined in
the 'main.c' file in line '30'
|
MISRAC2012-RULE_5_1-a-2 |
|
46: |
The left hand operand of the '&' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
46: |
The names of the identifiers '____keep_init___scattered_array_1phys_mem_map_core_arch_arm_plat_vexpress_main_c' and '____keep_init___scattered_array_1phys_mem_mapcore_arch_arm_plat_vexpress_main_c'
(line: 46 in the 'main.c' file) differ only in the presence/absence of the underscore character
|
MISRAC2012-DIR_4_5-a-4 |
|
46: |
The operand of the '~' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
46: |
The right hand operand of the '&' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
47: |
Declaration of object '____keep_init___scattered_array_2phys_mem_map_core_arch_arm_plat_vexpress_main_c' does not precede
its definition
|
MISRAC2012-RULE_8_4-a-2 |
|
47: |
Identifier '__scattered_array_2phys_mem_map' is being reused |
MISRAC2012-RULE_5_9-b-4 |
|
47: |
Pointer to object type 'const struct core_mmu_phys_mem *' should not be converted to integral type 'unsigned long' |
MISRAC2012-RULE_11_4-a-4 |
|
47: |
Reserved name '____keep_init___scattered_array_2phys_mem_map_core_arch_arm_plat_vexpress_main_c' used |
MISRAC2012-RULE_21_2-a-2 |
|
47: |
Reserved name '____keep_init___scattered_array_2phys_mem_mapcore_arch_arm_plat_vexpress_main_c' used |
MISRAC2012-RULE_21_2-a-2 |
|
47: |
Reserved name '__scattered_array_2phys_mem_map' used |
MISRAC2012-RULE_21_2-a-2 |
|
47: |
Reserved name '__scattered_array_2phys_mem_map' used |
MISRAC2012-RULE_21_2-a-2 |
|
47: |
The '____keep_init___scattered_array_2phys_mem_mapcore_arch_arm_plat_vexpress_main_c' object has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
47: |
The expression of the 'essentially signed' type is assigned to an object with the 'essentially unsigned' type |
MISRAC2012-RULE_10_3-b-2 |
|
47: |
The identifier '____keep_init___scattered_array_2phys_mem_map_core_arch_arm_plat_vexpress_main_c' has the same first 31 characters
of the name as the identifier '____keep_init___scattered_array_0phys_mem_map_core_arch_arm_plat_vexpress_main_c' defined in
the 'main.c' file in line '30'
|
MISRAC2012-RULE_5_1-a-2 |
|
47: |
The identifier '____keep_init___scattered_array_2phys_mem_map_core_arch_arm_plat_vexpress_main_c' has the same first 31 characters
of the name as the identifier '____keep_init___scattered_array_0phys_mem_mapcore_arch_arm_plat_vexpress_main_c' defined in
the 'main.c' file in line '30'
|
MISRAC2012-RULE_5_1-a-2 |
|
47: |
The identifier '____keep_init___scattered_array_2phys_mem_map_core_arch_arm_plat_vexpress_main_c' has the same first 31 characters
of the name as the identifier '____keep_init___scattered_array_1phys_mem_map_core_arch_arm_plat_vexpress_main_c' defined in
the 'main.c' file in line '46'
|
MISRAC2012-RULE_5_1-a-2 |
|
47: |
The identifier '____keep_init___scattered_array_2phys_mem_map_core_arch_arm_plat_vexpress_main_c' has the same first 31 characters
of the name as the identifier '____keep_init___scattered_array_1phys_mem_mapcore_arch_arm_plat_vexpress_main_c' defined in
the 'main.c' file in line '46'
|
MISRAC2012-RULE_5_1-a-2 |
|
47: |
The identifier '____keep_init___scattered_array_2phys_mem_map_core_arch_arm_plat_vexpress_main_c' has the same first 31 characters
of the name as the identifier '____keep_init___scattered_array_2phys_mem_mapcore_arch_arm_plat_vexpress_main_c' defined in
the 'main.c' file in line '47'
|
MISRAC2012-RULE_5_1-a-2 |
|
47: |
The identifier '____keep_init___scattered_array_2phys_mem_mapcore_arch_arm_plat_vexpress_main_c' has the same first 31 characters
of the name as the identifier '____keep_init___scattered_array_0phys_mem_map_core_arch_arm_plat_vexpress_main_c' defined in
the 'main.c' file in line '30'
|
MISRAC2012-RULE_5_1-a-2 |
|
47: |
The identifier '____keep_init___scattered_array_2phys_mem_mapcore_arch_arm_plat_vexpress_main_c' has the same first 31 characters
of the name as the identifier '____keep_init___scattered_array_0phys_mem_mapcore_arch_arm_plat_vexpress_main_c' defined in
the 'main.c' file in line '30'
|
MISRAC2012-RULE_5_1-a-2 |
|
47: |
The identifier '____keep_init___scattered_array_2phys_mem_mapcore_arch_arm_plat_vexpress_main_c' has the same first 31 characters
of the name as the identifier '____keep_init___scattered_array_1phys_mem_map_core_arch_arm_plat_vexpress_main_c' defined in
the 'main.c' file in line '46'
|
MISRAC2012-RULE_5_1-a-2 |
|
47: |
The identifier '____keep_init___scattered_array_2phys_mem_mapcore_arch_arm_plat_vexpress_main_c' has the same first 31 characters
of the name as the identifier '____keep_init___scattered_array_1phys_mem_mapcore_arch_arm_plat_vexpress_main_c' defined in
the 'main.c' file in line '46'
|
MISRAC2012-RULE_5_1-a-2 |
|
47: |
The left hand operand of the '&' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
47: |
The names of the identifiers '____keep_init___scattered_array_2phys_mem_map_core_arch_arm_plat_vexpress_main_c' and '____keep_init___scattered_array_2phys_mem_mapcore_arch_arm_plat_vexpress_main_c'
(line: 47 in the 'main.c' file) differ only in the presence/absence of the underscore character
|
MISRAC2012-DIR_4_5-a-4 |
|
47: |
The operand of the '~' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
47: |
The right hand operand of the '&' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
49: |
The 'main_init_gic' function is also defined in other translation units |
MISRAC2012-RULE_8_6-a-2 |
|
54: |
Pointer to void type should not be converted to arithmetic type 'unsigned long' |
MISRAC2012-RULE_11_6-a-2 |
|
54: |
The argument number '1' ('essentially signed' type) is passed to the function 'phys_to_virt' as a parameter with the 'essentially
unsigned' type
|
MISRAC2012-RULE_10_3-b-2 |
|
56: |
Pointer to void type should not be converted to arithmetic type 'unsigned long' |
MISRAC2012-RULE_11_6-a-2 |
|
56: |
The argument number '1' ('essentially signed' type) is passed to the function 'phys_to_virt' as a parameter with the 'essentially
unsigned' type
|
MISRAC2012-RULE_10_3-b-2 |
|
58: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
58: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
58: |
The operands of a logical '||' in function 'main_init_gic' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
58: |
The operands of a logical '||' in function 'main_init_gic' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
80: |
The 'itr_core_handler' function is also defined in other translation units |
MISRAC2012-RULE_8_6-a-2 |
|
102: |
Parameter 'h' is not used in function 'console_itr_cb' |
MISRAC2012-RULE_2_7-a-4 |
|
102: |
Pass parameter "h" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
107: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
| +
|
107: |
Value of "ch" is never used |
MISRAC2012-RULE_2_2-b-2 |
| |
|
Point where value is declared
Point where value is declared
main.c (107): int ch __maybe_unused = cons->ops->getchar(cons); |
|
|
119: |
Declaration of object '____keep_pager_console_itr_core_arch_arm_plat_vexpress_main_c' does not precede its definition |
MISRAC2012-RULE_8_4-a-2 |
|
119: |
Pointer to object type 'struct itr_handler *' should not be converted to integral type 'unsigned long' |
MISRAC2012-RULE_11_4-a-4 |
|
119: |
Reserved name '____keep_pager_console_itr' used |
MISRAC2012-RULE_21_2-a-2 |
|
119: |
Reserved name '____keep_pager_console_itr_core_arch_arm_plat_vexpress_main_c' used |
MISRAC2012-RULE_21_2-a-2 |
|
119: |
The '____keep_pager_console_itr' object has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
127: |
Reserved name '__scattered_array_3initcall' used |
MISRAC2012-RULE_21_2-a-2 |
|
177: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
| /optee_os_MISRA/optee_os_ruchi393_core/arch/arm/plat-vexpress/vendor_props.c |
|
28: |
Pass parameter "sess" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
33: |
The dimension of array 'data' is not an integer constant expression |
MISRAC2012-RULE_18_8-a-2 |
|
34: |
The dimension of array 'bin' is not an integer constant expression |
MISRAC2012-RULE_18_8-a-2 |
|
34: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
40: |
Integer constant '0xFFFF0010' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
40: |
Provide only one exit point in 'get_prop_endorsement' function |
MISRAC2012-RULE_15_5-a-4 |
|
44: |
In the call of the function 'memcpy' the first argument type is not compatible with the second argument type |
MISRAC2012-RULE_21_15-a-2 |
|
44: |
Unused function's "memcpy" return value |
MISRAC2012-RULE_17_7-a-2 |
|
46: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
48: |
Integer constant '0xFFFF0007' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
48: |
Provide only one exit point in 'get_prop_endorsement' function |
MISRAC2012-RULE_15_5-a-4 |
|
53: |
Integer constant '0xFFFF0007' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
53: |
Provide only one exit point in 'get_prop_endorsement' function |
MISRAC2012-RULE_15_5-a-4 |
|
57: |
Provide only one exit point in 'get_prop_endorsement' function |
MISRAC2012-RULE_15_5-a-4 |
|
63: |
The expression of the 'essentially Enum' type is assigned to an object with the 'essentially unsigned' type |
MISRAC2012-RULE_10_3-b-2 |
|
68: |
Declaration of object 'vendor_props_tee' does not precede its definition |
MISRAC2012-RULE_8_4-a-2 |
|
68: |
The 'vendor_props_tee' object is also defined in other translation units |
MISRAC2012-RULE_8_6-a-2 |
| /optee_os_MISRA/optee_os_ruchi393_core/arch/arm/tee/arch_svc.c |
|
44: |
Do not define function-like macro: SYSCALL_ENTRY |
MISRAC2012-DIR_4_9-a-4 |
|
44: |
Each instance of parameter: '_fn' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
44: |
Preprocessor operator # should not be used |
MISRAC2012-RULE_20_10-a-4 |
|
46: |
Do not define function-like macro: SYSCALL_ENTRY |
MISRAC2012-DIR_4_9-a-4 |
|
46: |
Each instance of parameter: '_fn' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
52: |
Global variable 'tee_svc_syscall_table' is being used only in a single function 'get_tee_syscall_func' |
MISRAC2012-RULE_8_9-a-4 |
|
53: |
Pointer to function 'void (unsigned long)' is cast to pointer to incompatible function 'void (void)' |
MISRAC2012-RULE_11_1-b-2 |
|
54: |
Pointer to function 'void (const void *, size_t)' is cast to pointer to incompatible function 'void (void)' |
MISRAC2012-RULE_11_1-b-2 |
|
55: |
Pointer to function 'void (unsigned long)' is cast to pointer to incompatible function 'void (void)' |
MISRAC2012-RULE_11_1-b-2 |
|
56: |
Pointer to function 'TEE_Result (unsigned long, unsigned long, void *, uint32_t *, void *, uint32_t *, uint32_t *)' is cast
to pointer to incompatible function 'void (void)'
|
MISRAC2012-RULE_11_1-b-2 |
|
57: |
Pointer to function 'TEE_Result (unsigned long, void *, unsigned long, uint32_t *)' is cast to pointer to incompatible function
'void (void)'
|
MISRAC2012-RULE_11_1-b-2 |
|
58: |
Pointer to function 'TEE_Result (const TEE_UUID *, unsigned long, struct utee_params *, uint32_t *, uint32_t *)' is cast to
pointer to incompatible function 'void (void)'
|
MISRAC2012-RULE_11_1-b-2 |
|
59: |
Pointer to function 'TEE_Result (unsigned long)' is cast to pointer to incompatible function 'void (void)' |
MISRAC2012-RULE_11_1-b-2 |
|
60: |
Pointer to function 'TEE_Result (unsigned long, unsigned long, unsigned long, struct utee_params *, uint32_t *)' is cast to
pointer to incompatible function 'void (void)'
|
MISRAC2012-RULE_11_1-b-2 |
|
61: |
Pointer to function 'TEE_Result (unsigned long, const void *, size_t)' is cast to pointer to incompatible function 'void (void)' |
MISRAC2012-RULE_11_1-b-2 |
|
62: |
Pointer to function 'TEE_Result (uint32_t *)' is cast to pointer to incompatible function 'void (void)' |
MISRAC2012-RULE_11_1-b-2 |
|
63: |
Pointer to function 'TEE_Result (uint32_t *)' is cast to pointer to incompatible function 'void (void)' |
MISRAC2012-RULE_11_1-b-2 |
|
64: |
Pointer to function 'TEE_Result (uint32_t *)' is cast to pointer to incompatible function 'void (void)' |
MISRAC2012-RULE_11_1-b-2 |
|
65: |
Pointer to function 'TEE_Result (unsigned long)' is cast to pointer to incompatible function 'void (void)' |
MISRAC2012-RULE_11_1-b-2 |
|
66: |
Pointer to function 'TEE_Result (unsigned long, TEE_Time *)' is cast to pointer to incompatible function 'void (void)' |
MISRAC2012-RULE_11_1-b-2 |
|
67: |
Pointer to function 'TEE_Result (const TEE_Time *)' is cast to pointer to incompatible function 'void (void)' |
MISRAC2012-RULE_11_1-b-2 |
|
68: |
Pointer to function 'TEE_Result (unsigned long, unsigned long, unsigned long, unsigned long, uint32_t *)' is cast to pointer
to incompatible function 'void (void)'
|
MISRAC2012-RULE_11_1-b-2 |
|
69: |
Pointer to function 'TEE_Result (unsigned long, unsigned long)' is cast to pointer to incompatible function 'void (void)' |
MISRAC2012-RULE_11_1-b-2 |
|
70: |
Pointer to function 'TEE_Result (unsigned long)' is cast to pointer to incompatible function 'void (void)' |
MISRAC2012-RULE_11_1-b-2 |
|
71: |
Pointer to function 'TEE_Result (unsigned long, const void *, size_t)' is cast to pointer to incompatible function 'void (void)' |
MISRAC2012-RULE_11_1-b-2 |
|
72: |
Pointer to function 'TEE_Result (unsigned long, const void *, size_t)' is cast to pointer to incompatible function 'void (void)' |
MISRAC2012-RULE_11_1-b-2 |
|
73: |
Pointer to function 'TEE_Result (unsigned long, const void *, size_t, void *, uint64_t *)' is cast to pointer to incompatible
function 'void (void)'
|
MISRAC2012-RULE_11_1-b-2 |
|
74: |
Pointer to function 'TEE_Result (unsigned long, const void *, size_t)' is cast to pointer to incompatible function 'void (void)' |
MISRAC2012-RULE_11_1-b-2 |
|
75: |
Pointer to function 'TEE_Result (unsigned long, const void *, size_t, void *, uint64_t *)' is cast to pointer to incompatible
function 'void (void)'
|
MISRAC2012-RULE_11_1-b-2 |
|
76: |
Pointer to function 'TEE_Result (unsigned long, const void *, size_t, void *, uint64_t *)' is cast to pointer to incompatible
function 'void (void)'
|
MISRAC2012-RULE_11_1-b-2 |
|
77: |
Pointer to function 'TEE_Result (unsigned long, TEE_ObjectInfo *)' is cast to pointer to incompatible function 'void (void)' |
MISRAC2012-RULE_11_1-b-2 |
|
78: |
Pointer to function 'TEE_Result (unsigned long, unsigned long)' is cast to pointer to incompatible function 'void (void)' |
MISRAC2012-RULE_11_1-b-2 |
|
79: |
Pointer to function 'TEE_Result (unsigned long, unsigned long, void *, uint64_t *)' is cast to pointer to incompatible function
'void (void)'
|
MISRAC2012-RULE_11_1-b-2 |
|
80: |
Pointer to function 'TEE_Result (unsigned long, unsigned long, uint32_t *)' is cast to pointer to incompatible function 'void
(void)'
|
MISRAC2012-RULE_11_1-b-2 |
|
81: |
Pointer to function 'TEE_Result (unsigned long)' is cast to pointer to incompatible function 'void (void)' |
MISRAC2012-RULE_11_1-b-2 |
|
82: |
Pointer to function 'TEE_Result (unsigned long)' is cast to pointer to incompatible function 'void (void)' |
MISRAC2012-RULE_11_1-b-2 |
|
83: |
Pointer to function 'TEE_Result (unsigned long, struct utee_attribute *, unsigned long)' is cast to pointer to incompatible
function 'void (void)'
|
MISRAC2012-RULE_11_1-b-2 |
|
84: |
Pointer to function 'TEE_Result (unsigned long, unsigned long)' is cast to pointer to incompatible function 'void (void)' |
MISRAC2012-RULE_11_1-b-2 |
|
85: |
Pointer to function 'TEE_Result (unsigned long, const struct utee_attribute *, unsigned long, unsigned long)' is cast to pointer
to incompatible function 'void (void)'
|
MISRAC2012-RULE_11_1-b-2 |
|
86: |
Pointer to function 'TEE_Result (void *, size_t)' is cast to pointer to incompatible function 'void (void)' |
MISRAC2012-RULE_11_1-b-2 |
|
87: |
Pointer to function 'TEE_Result (unsigned long, const void *, size_t, size_t, size_t, size_t)' is cast to pointer to incompatible
function 'void (void)'
|
MISRAC2012-RULE_11_1-b-2 |
|
88: |
Pointer to function 'TEE_Result (unsigned long, const void *, size_t)' is cast to pointer to incompatible function 'void (void)' |
MISRAC2012-RULE_11_1-b-2 |
|
89: |
Pointer to function 'TEE_Result (unsigned long, const void *, size_t, void *, uint64_t *)' is cast to pointer to incompatible
function 'void (void)'
|
MISRAC2012-RULE_11_1-b-2 |
|
90: |
Pointer to function 'TEE_Result (unsigned long, const void *, size_t, void *, uint64_t *, void *, uint64_t *)' is cast to
pointer to incompatible function 'void (void)'
|
MISRAC2012-RULE_11_1-b-2 |
|
91: |
Pointer to function 'TEE_Result (unsigned long, const void *, size_t, void *, uint64_t *, const void *, size_t)' is cast to
pointer to incompatible function 'void (void)'
|
MISRAC2012-RULE_11_1-b-2 |
|
92: |
Pointer to function 'TEE_Result (unsigned long, const struct utee_attribute *, size_t, const void *, size_t, void *, uint64_t
*)' is cast to pointer to incompatible function 'void (void)'
|
MISRAC2012-RULE_11_1-b-2 |
|
93: |
Pointer to function 'TEE_Result (unsigned long, const struct utee_attribute *, size_t, const void *, size_t, const void *,
size_t)' is cast to pointer to incompatible function 'void (void)'
|
MISRAC2012-RULE_11_1-b-2 |
|
94: |
Pointer to function 'TEE_Result (unsigned long, void *, size_t, unsigned long, uint32_t *)' is cast to pointer to incompatible
function 'void (void)'
|
MISRAC2012-RULE_11_1-b-2 |
|
95: |
Pointer to function 'TEE_Result (unsigned long, void *, size_t, unsigned long, unsigned long, void *, size_t, uint32_t *)'
is cast to pointer to incompatible function 'void (void)'
|
MISRAC2012-RULE_11_1-b-2 |
|
96: |
Pointer to function 'TEE_Result (unsigned long)' is cast to pointer to incompatible function 'void (void)' |
MISRAC2012-RULE_11_1-b-2 |
|
97: |
Pointer to function 'TEE_Result (unsigned long, void *, size_t)' is cast to pointer to incompatible function 'void (void)' |
MISRAC2012-RULE_11_1-b-2 |
|
98: |
Pointer to function 'TEE_Result (uint32_t *)' is cast to pointer to incompatible function 'void (void)' |
MISRAC2012-RULE_11_1-b-2 |
|
99: |
Pointer to function 'TEE_Result (unsigned long)' is cast to pointer to incompatible function 'void (void)' |
MISRAC2012-RULE_11_1-b-2 |
|
100: |
Pointer to function 'TEE_Result (unsigned long)' is cast to pointer to incompatible function 'void (void)' |
MISRAC2012-RULE_11_1-b-2 |
|
101: |
Pointer to function 'TEE_Result (unsigned long, unsigned long)' is cast to pointer to incompatible function 'void (void)' |
MISRAC2012-RULE_11_1-b-2 |
|
102: |
Pointer to function 'TEE_Result (unsigned long, TEE_ObjectInfo *, void *, uint64_t *)' is cast to pointer to incompatible
function 'void (void)'
|
MISRAC2012-RULE_11_1-b-2 |
|
103: |
Pointer to function 'TEE_Result (unsigned long, void *, size_t, uint64_t *)' is cast to pointer to incompatible function 'void
(void)'
|
MISRAC2012-RULE_11_1-b-2 |
|
104: |
Pointer to function 'TEE_Result (unsigned long, void *, size_t)' is cast to pointer to incompatible function 'void (void)' |
MISRAC2012-RULE_11_1-b-2 |
|
105: |
Pointer to function 'TEE_Result (unsigned long, size_t)' is cast to pointer to incompatible function 'void (void)' |
MISRAC2012-RULE_11_1-b-2 |
|
106: |
Pointer to function 'TEE_Result (unsigned long, int32_t, unsigned long)' is cast to pointer to incompatible function 'void
(void)'
|
MISRAC2012-RULE_11_1-b-2 |
|
107: |
Pointer to function 'TEE_Result (unsigned long, unsigned long, const struct utee_attribute *, unsigned long)' is cast to pointer
to incompatible function 'void (void)'
|
MISRAC2012-RULE_11_1-b-2 |
|
108: |
Pointer to function 'TEE_Result (void)' is cast to pointer to incompatible function 'void (void)' |
MISRAC2012-RULE_11_1-b-2 |
|
109: |
Pointer to function 'TEE_Result (void)' is cast to pointer to incompatible function 'void (void)' |
MISRAC2012-RULE_11_1-b-2 |
|
110: |
Pointer to function 'TEE_Result (void)' is cast to pointer to incompatible function 'void (void)' |
MISRAC2012-RULE_11_1-b-2 |
|
111: |
Pointer to function 'TEE_Result (void)' is cast to pointer to incompatible function 'void (void)' |
MISRAC2012-RULE_11_1-b-2 |
|
112: |
Pointer to function 'TEE_Result (void)' is cast to pointer to incompatible function 'void (void)' |
MISRAC2012-RULE_11_1-b-2 |
|
113: |
Pointer to function 'TEE_Result (void)' is cast to pointer to incompatible function 'void (void)' |
MISRAC2012-RULE_11_1-b-2 |
|
114: |
Pointer to function 'TEE_Result (void)' is cast to pointer to incompatible function 'void (void)' |
MISRAC2012-RULE_11_1-b-2 |
|
115: |
Pointer to function 'TEE_Result (void)' is cast to pointer to incompatible function 'void (void)' |
MISRAC2012-RULE_11_1-b-2 |
|
116: |
Pointer to function 'TEE_Result (void)' is cast to pointer to incompatible function 'void (void)' |
MISRAC2012-RULE_11_1-b-2 |
|
117: |
Pointer to function 'TEE_Result (void)' is cast to pointer to incompatible function 'void (void)' |
MISRAC2012-RULE_11_1-b-2 |
|
118: |
Pointer to function 'TEE_Result (void)' is cast to pointer to incompatible function 'void (void)' |
MISRAC2012-RULE_11_1-b-2 |
|
119: |
Pointer to function 'TEE_Result (void)' is cast to pointer to incompatible function 'void (void)' |
MISRAC2012-RULE_11_1-b-2 |
|
120: |
Pointer to function 'TEE_Result (void)' is cast to pointer to incompatible function 'void (void)' |
MISRAC2012-RULE_11_1-b-2 |
|
121: |
Pointer to function 'TEE_Result (void)' is cast to pointer to incompatible function 'void (void)' |
MISRAC2012-RULE_11_1-b-2 |
|
122: |
Pointer to function 'TEE_Result (void)' is cast to pointer to incompatible function 'void (void)' |
MISRAC2012-RULE_11_1-b-2 |
|
123: |
Pointer to function 'TEE_Result (void)' is cast to pointer to incompatible function 'void (void)' |
MISRAC2012-RULE_11_1-b-2 |
|
123: |
Potential macro 'syscall_cache_operation' used as '1' parameter of potential macro 'SYSCALL_ENTRY' |
MISRAC2012-RULE_20_12-a-2 |
|
131: |
Global variable 'ldelf_syscall_table' is being used only in a single function 'get_ldelf_syscall_func' |
MISRAC2012-RULE_8_9-a-4 |
|
132: |
Pointer to function 'void (unsigned long)' is cast to pointer to incompatible function 'void (void)' |
MISRAC2012-RULE_11_1-b-2 |
|
133: |
Pointer to function 'void (const void *, size_t)' is cast to pointer to incompatible function 'void (void)' |
MISRAC2012-RULE_11_1-b-2 |
|
134: |
Pointer to function 'void (unsigned long)' is cast to pointer to incompatible function 'void (void)' |
MISRAC2012-RULE_11_1-b-2 |
|
135: |
Pointer to function 'TEE_Result (vaddr_t *, size_t, size_t, size_t, unsigned long)' is cast to pointer to incompatible function
'void (void)'
|
MISRAC2012-RULE_11_1-b-2 |
|
136: |
Pointer to function 'TEE_Result (vaddr_t, size_t)' is cast to pointer to incompatible function 'void (void)' |
MISRAC2012-RULE_11_1-b-2 |
|
137: |
Pointer to function 'TEE_Result (const TEE_UUID *, size_t, uint32_t *)' is cast to pointer to incompatible function 'void
(void)'
|
MISRAC2012-RULE_11_1-b-2 |
|
138: |
Pointer to function 'TEE_Result (unsigned long)' is cast to pointer to incompatible function 'void (void)' |
MISRAC2012-RULE_11_1-b-2 |
|
139: |
Pointer to function 'TEE_Result (vaddr_t *, size_t, unsigned long, size_t, size_t, size_t, unsigned long)' is cast to pointer
to incompatible function 'void (void)'
|
MISRAC2012-RULE_11_1-b-2 |
|
140: |
Pointer to function 'TEE_Result (void *, size_t, size_t, unsigned long)' is cast to pointer to incompatible function 'void
(void)'
|
MISRAC2012-RULE_11_1-b-2 |
|
141: |
Pointer to function 'TEE_Result (unsigned long, size_t, unsigned long)' is cast to pointer to incompatible function 'void
(void)'
|
MISRAC2012-RULE_11_1-b-2 |
|
142: |
Pointer to function 'TEE_Result (unsigned long, vaddr_t *, size_t, size_t, size_t)' is cast to pointer to incompatible function
'void (void)'
|
MISRAC2012-RULE_11_1-b-2 |
|
143: |
Pointer to function 'TEE_Result (void *, size_t)' is cast to pointer to incompatible function 'void (void)' |
MISRAC2012-RULE_11_1-b-2 |
|
154: |
Parameter 'num' is not used in function 'trace_syscall' |
MISRAC2012-RULE_2_7-a-4 |
|
187: |
Parameter 'num' is not used in function 'ftrace_syscall_enter' |
MISRAC2012-RULE_2_7-a-4 |
|
206: |
Pass parameter "regs" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
209: |
The right hand operand of the '&' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
237: |
Pointer to void type should not be converted to pointer to object type 'struct syscall_entry *' |
MISRAC2012-RULE_11_5-a-4 |
|
239: |
Missing statement or comment before terminating 'break' |
MISRAC2012-RULE_16_4-b-2 |
|
239: |
Missing statement or comment before terminating 'break' |
MISRAC2012-RULE_16_1-f-2 |
|
239: |
The 'switch' statement contains less than two switch-clauses |
MISRAC2012-RULE_16_6-a-2 |
|
239: |
The 'switch' statement contains less than two switch-clauses |
MISRAC2012-RULE_16_1-h-2 |
|
243: |
Pointer to function 'TEE_Result (void)' is cast to pointer to incompatible function 'void (void)' |
MISRAC2012-RULE_11_1-b-2 |
|
243: |
Provide only one exit point in 'get_tee_syscall_func' function |
MISRAC2012-RULE_15_5-a-4 |
|
245: |
Assembly language code is not commented |
MISRAC2012-DIR_4_2-a-4 |
|
245: |
Assignment operator '=' is used in improper context |
MISRAC2012-RULE_13_4-a-4 |
|
245: |
Expression of type 'unsigned long long' should not be converted to pointer to function 'void (*)(void)' |
MISRAC2012-RULE_11_1-a-2 |
|
245: |
Pointer to object type 'syscall_t *' should not be converted to integral type 'unsigned long long' |
MISRAC2012-RULE_11_4-a-4 |
|
245: |
Provide only one exit point in 'get_tee_syscall_func' function |
MISRAC2012-RULE_15_5-a-4 |
|
245: |
Reserved name '__fv' used |
MISRAC2012-RULE_21_2-a-2 |
|
245: |
Reserved name '__nl_val' used |
MISRAC2012-RULE_21_2-a-2 |
|
245: |
Reserved name '__nln_val' used |
MISRAC2012-RULE_21_2-a-2 |
|
245: |
Reserved name '__ptr_once' used |
MISRAC2012-RULE_21_2-a-2 |
|
245: |
Reserved name '__static_assert_no_speculate_load_size_too_big' used |
MISRAC2012-RULE_21_2-a-2 |
|
245: |
The function 'get_tee_syscall_func' returns pointer to local object |
MISRAC2012-RULE_18_6-a-2 |
|
245: |
The function 'get_tee_syscall_func' returns pointer to local object |
MISRAC2012-RULE_1_3-m-2 |
|
245: |
The left hand operand of the logical operator '&&' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
245: |
The left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
245: |
The operands of a logical '&&' in function 'get_tee_syscall_func' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
245: |
The type of variable '__ptr_once' contains more than 2 levels of pointer indirection |
MISRAC2012-RULE_18_5-a-4 |
|
245: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
261: |
Integer constant '0xFFFF0000' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
262: |
Provide only one exit point in 'user_ta_handle_svc' function |
MISRAC2012-RULE_15_5-a-4 |
|
277: |
Provide only one exit point in 'user_ta_handle_svc' function |
MISRAC2012-RULE_15_5-a-4 |
|
277: |
The operands of a logical '&&' in function 'user_ta_handle_svc' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
277: |
The operands of a logical '&&' in function 'user_ta_handle_svc' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
283: |
Pointer to void type should not be converted to pointer to object type 'struct syscall_entry *' |
MISRAC2012-RULE_11_5-a-4 |
|
285: |
Missing statement or comment before terminating 'break' |
MISRAC2012-RULE_16_4-b-2 |
|
285: |
Missing statement or comment before terminating 'break' |
MISRAC2012-RULE_16_1-f-2 |
|
285: |
The 'switch' statement contains less than two switch-clauses |
MISRAC2012-RULE_16_6-a-2 |
|
285: |
The 'switch' statement contains less than two switch-clauses |
MISRAC2012-RULE_16_1-h-2 |
|
289: |
Pointer to function 'TEE_Result (void)' is cast to pointer to incompatible function 'void (void)' |
MISRAC2012-RULE_11_1-b-2 |
|
289: |
Provide only one exit point in 'get_ldelf_syscall_func' function |
MISRAC2012-RULE_15_5-a-4 |
|
291: |
Assembly language code is not commented |
MISRAC2012-DIR_4_2-a-4 |
|
291: |
Assignment operator '=' is used in improper context |
MISRAC2012-RULE_13_4-a-4 |
|
291: |
Expression of type 'unsigned long long' should not be converted to pointer to function 'void (*)(void)' |
MISRAC2012-RULE_11_1-a-2 |
|
291: |
Pointer to object type 'syscall_t *' should not be converted to integral type 'unsigned long long' |
MISRAC2012-RULE_11_4-a-4 |
|
291: |
Provide only one exit point in 'get_ldelf_syscall_func' function |
MISRAC2012-RULE_15_5-a-4 |
|
291: |
Reserved name '__fv' used |
MISRAC2012-RULE_21_2-a-2 |
|
291: |
Reserved name '__nl_val' used |
MISRAC2012-RULE_21_2-a-2 |
|
291: |
Reserved name '__nln_val' used |
MISRAC2012-RULE_21_2-a-2 |
|
291: |
Reserved name '__ptr_once' used |
MISRAC2012-RULE_21_2-a-2 |
|
291: |
Reserved name '__static_assert_no_speculate_load_size_too_big' used |
MISRAC2012-RULE_21_2-a-2 |
|
291: |
The function 'get_ldelf_syscall_func' returns pointer to local object |
MISRAC2012-RULE_18_6-a-2 |
|
291: |
The function 'get_ldelf_syscall_func' returns pointer to local object |
MISRAC2012-RULE_1_3-m-2 |
|
291: |
The left hand operand of the logical operator '&&' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
291: |
The left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
291: |
The operands of a logical '&&' in function 'get_ldelf_syscall_func' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
291: |
The type of variable '__ptr_once' contains more than 2 levels of pointer indirection |
MISRAC2012-RULE_18_5-a-4 |
|
291: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
307: |
Integer constant '0xFFFF0000' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
308: |
Provide only one exit point in 'ldelf_handle_svc' function |
MISRAC2012-RULE_15_5-a-4 |
|
323: |
Provide only one exit point in 'ldelf_handle_svc' function |
MISRAC2012-RULE_15_5-a-4 |
|
323: |
The operands of a logical '&&' in function 'ldelf_handle_svc' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
323: |
The operands of a logical '&&' in function 'ldelf_handle_svc' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
407: |
Pointer to object type 'uint32_t *' should not be converted to integral type 'unsigned long' |
MISRAC2012-RULE_11_4-a-4 |
|
409: |
The expression of the 'essentially signed' type is assigned to an object with the 'essentially unsigned' type |
MISRAC2012-RULE_10_3-b-2 |
|
409: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
415: |
Pass parameter "pushed" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
420: |
The expression of the 'essentially signed' type is assigned to an object with the 'essentially unsigned' type |
MISRAC2012-RULE_10_3-b-2 |
|
420: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
430: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
431: |
The argument number '2' ('essentially signed' type) is passed to the function 'vm_check_access_rights' as a parameter with
the 'essentially unsigned' type
|
MISRAC2012-RULE_10_3-b-2 |
|
431: |
The left hand operand of the '|' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
431: |
The right hand operand of the '|' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
440: |
'return' statement should be at the end of the 'save_panic_stack' function |
MISRAC2012-RULE_15_5-a-4 |
|
448: |
Integral type 'unsigned long' should not be converted to pointer to object type 'uint32_t *' |
MISRAC2012-RULE_11_4-a-4 |
|
450: |
Integral type 'unsigned long' should not be converted to pointer to object type 'uint64_t *' |
MISRAC2012-RULE_11_4-a-4 |
|
462: |
The identifier 'panic' has the same name (or the first 31 characters of the name) as the macro defined in the current translation
unit
|
MISRAC2012-RULE_5_5-a-2 |
|
462: |
The identifier 'panic' has the same name (or the first 63 characters of the name) as the macro defined in the current translation
unit
|
MISRAC2012-RULE_5_5-b-2 |
|
477: |
The expression of the 'essentially Boolean' type is assigned to an object with the 'essentially unsigned' type |
MISRAC2012-RULE_10_3-b-2 |
| /optee_os_MISRA/optee_os_ruchi393_core/arch/arm/tee/arch_svc_private.h |
|
17: |
The 'tee_svc_do_call' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
| /optee_os_MISRA/optee_os_ruchi393_core/arch/arm/tee/cache.c |
|
24: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
25: |
Integer constant '0xFFFF0001' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
25: |
Provide only one exit point in 'cache_operation' function |
MISRAC2012-RULE_15_5-a-4 |
|
38: |
Provide only one exit point in 'cache_operation' function |
MISRAC2012-RULE_15_5-a-4 |
|
44: |
Provide only one exit point in 'cache_operation' function |
MISRAC2012-RULE_15_5-a-4 |
|
45: |
Provide only one exit point in 'cache_operation' function |
MISRAC2012-RULE_15_5-a-4 |
|
51: |
Provide only one exit point in 'cache_operation' function |
MISRAC2012-RULE_15_5-a-4 |
|
52: |
Provide only one exit point in 'cache_operation' function |
MISRAC2012-RULE_15_5-a-4 |
|
55: |
Integer constant '0xFFFF000A' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
55: |
Provide only one exit point in 'cache_operation' function |
MISRAC2012-RULE_15_5-a-4 |
| /optee_os_MISRA/optee_os_ruchi393_core/arch/arm/tee/entry_fast.c |
|
23: |
The expression of the 'essentially Boolean' type is assigned to an object with the 'essentially unsigned' type |
MISRAC2012-RULE_10_3-b-2 |
|
53: |
Integer constant '0xFFFF000A' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
| +
|
55: |
Condition "ret == 4294901770" always evaluates to true |
MISRAC2012-RULE_14_3-ac-2 |
| |
|
Start of the path
entry_fast.c (27): static void tee_entry_fastcall_l2cc_mutex(struct thread_smc_args *args)
entry_fast.c (29): TEE_Result ret;
entry_fast.c (53): ret = TEE_ERROR_NOT_SUPPORTED;
Point where senseless condition is used
entry_fast.c (55): if (ret == TEE_ERROR_NOT_SUPPORTED) |
|
|
55: |
Integer constant '0xFFFF000A' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
56: |
Integer constant '0xFFFFFFFF' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
57: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
80: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
80: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
80: |
The operand of the '~' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
80: |
The right hand operand of the '&' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
83: |
'return' statement should be at the end of the 'tee_entry_exchange_capabilities' function |
MISRAC2012-RULE_15_5-a-4 |
|
89: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
89: |
The right hand operand of the '|=' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
94: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
94: |
The right hand operand of the '|=' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
99: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
99: |
The right hand operand of the '|=' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
111: |
Provide only one exit point in 'tee_entry_disable_shm_cache' function |
MISRAC2012-RULE_15_5-a-4 |
|
114: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
116: |
Provide only one exit point in 'tee_entry_disable_shm_cache' function |
MISRAC2012-RULE_15_5-a-4 |
|
179: |
The names of the identifiers 'tee_entry_fast' and '__tee_entry_fast' (line: 31 in the 'entry_fast.h' file) differ only in
the presence/absence of the underscore character
|
MISRAC2012-DIR_4_5-a-4 |
|
188: |
Reserved name '__tee_entry_fast' used |
MISRAC2012-RULE_21_2-a-2 |
|
188: |
The function '__tee_entry_fast' is referenced only in the translation unit where it is defined |
MISRAC2012-RULE_8_7-a-4 |
|
188: |
The names of the identifiers '__tee_entry_fast' and 'tee_entry_fast' (line: 179 in the 'entry_fast.c' file) differ only in
the presence/absence of the underscore character
|
MISRAC2012-DIR_4_5-a-4 |
|
188: |
The names of the identifiers '__tee_entry_fast' and 'tee_entry_fast' (line: 30 in the 'entry_fast.h' file) differ only in
the presence/absence of the underscore character
|
MISRAC2012-DIR_4_5-a-4 |
|
193: |
Integer constant '0x80000000' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
193: |
The left hand operand of the '&' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
193: |
The left hand operand of the '&' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
193: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
193: |
The left hand operand of the '|' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
193: |
The right hand operand of the '&' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
193: |
The right hand operand of the '&' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
193: |
The right hand operand of the '|' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
196: |
Integer constant '0x80000000' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
196: |
The left hand operand of the '&' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
196: |
The left hand operand of the '&' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
196: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
196: |
The left hand operand of the '|' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
196: |
The right hand operand of the '&' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
196: |
The right hand operand of the '&' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
196: |
The right hand operand of the '|' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
199: |
Integer constant '0x80000000' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
199: |
The left hand operand of the '&' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
199: |
The left hand operand of the '&' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
199: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
199: |
The left hand operand of the '|' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
199: |
The right hand operand of the '&' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
199: |
The right hand operand of the '&' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
199: |
The right hand operand of the '|' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
202: |
Integer constant '0x80000000' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
202: |
The left hand operand of the '&' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
202: |
The left hand operand of the '&' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
202: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
202: |
The left hand operand of the '|' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
202: |
The right hand operand of the '&' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
202: |
The right hand operand of the '&' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
202: |
The right hand operand of the '|' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
205: |
Integer constant '0x80000000' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
205: |
The left hand operand of the '&' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
205: |
The left hand operand of the '&' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
205: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
205: |
The left hand operand of the '|' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
205: |
The right hand operand of the '&' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
205: |
The right hand operand of the '&' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
205: |
The right hand operand of the '|' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
211: |
Integer constant '0x80000000' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
211: |
The left hand operand of the '&' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
211: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
211: |
The left hand operand of the '|' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
211: |
The right hand operand of the '&' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
211: |
The right hand operand of the '&' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
211: |
The right hand operand of the '|' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
215: |
Integer constant '0x80000000' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
215: |
The left hand operand of the '&' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
215: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
215: |
The left hand operand of the '|' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
215: |
The right hand operand of the '&' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
215: |
The right hand operand of the '&' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
215: |
The right hand operand of the '|' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
218: |
Integer constant '0x80000000' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
218: |
The left hand operand of the '&' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
218: |
The left hand operand of the '&' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
218: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
218: |
The left hand operand of the '|' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
218: |
The right hand operand of the '&' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
218: |
The right hand operand of the '&' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
218: |
The right hand operand of the '|' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
221: |
Integer constant '0x80000000' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
221: |
The left hand operand of the '&' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
221: |
The left hand operand of the '&' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
221: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
221: |
The left hand operand of the '|' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
221: |
The right hand operand of the '&' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
221: |
The right hand operand of the '&' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
221: |
The right hand operand of the '|' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
224: |
Integer constant '0x80000000' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
224: |
The left hand operand of the '&' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
224: |
The left hand operand of the '&' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
224: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
224: |
The left hand operand of the '|' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
224: |
The right hand operand of the '&' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
224: |
The right hand operand of the '&' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
224: |
The right hand operand of the '|' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
227: |
Integer constant '0x80000000' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
227: |
The left hand operand of the '&' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
227: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
227: |
The left hand operand of the '|' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
227: |
The right hand operand of the '&' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
227: |
The right hand operand of the '&' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
227: |
The right hand operand of the '|' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
230: |
Integer constant '0x80000000' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
230: |
The left hand operand of the '&' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
230: |
The left hand operand of the '&' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
230: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
230: |
The left hand operand of the '|' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
230: |
The right hand operand of the '&' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
230: |
The right hand operand of the '&' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
230: |
The right hand operand of the '|' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
244: |
Integer constant '0xFFFFFFFF' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
249: |
The function 'tee_entry_generic_get_api_call_count' is referenced only in the translation unit where it is defined |
MISRAC2012-RULE_8_7-a-4 |
|
265: |
The function 'tee_entry_get_api_call_count' is referenced only in the translation unit where it is defined |
MISRAC2012-RULE_8_7-a-4 |
|
270: |
The function 'tee_entry_get_api_uuid' is referenced only in the translation unit where it is defined |
MISRAC2012-RULE_8_7-a-4 |
|
273: |
Integer constant '0xe7f811e3' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
274: |
Integer constant '0xaf630002' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
275: |
Integer constant '0xa5d5c51b' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
278: |
The function 'tee_entry_get_api_revision' is referenced only in the translation unit where it is defined |
MISRAC2012-RULE_8_7-a-4 |
|
284: |
The function 'tee_entry_get_os_uuid' is referenced only in the translation unit where it is defined |
MISRAC2012-RULE_8_7-a-4 |
|
287: |
Integer constant '0xe7f811e3' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
288: |
Integer constant '0xbc5e0002' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
289: |
Integer constant '0xa5d5c51b' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
292: |
The function 'tee_entry_get_os_revision' is referenced only in the translation unit where it is defined |
MISRAC2012-RULE_8_7-a-4 |
|
296: |
Integer constant '0xe70a7aba' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
| /optee_os_MISRA/optee_os_ruchi393_core/arch/arm/tee/entry_std.c |
|
44: |
A tag name 'mobj' is reused |
MISRAC2012-RULE_5_7-a-2 |
|
44: |
Identifier 'mobj' is hiding an identifier from global or namespace scope |
MISRAC2012-RULE_5_3-a-2 |
|
53: |
Reserved name '_a' used |
MISRAC2012-RULE_21_2-a-2 |
|
53: |
Reserved name '_b' used |
MISRAC2012-RULE_21_2-a-2 |
|
53: |
The names of the identifiers '_b' and 'b' (line: 48 in the 'entry_std.c' file) differ only in the presence/absence of the
underscore character
|
MISRAC2012-DIR_4_5-a-4 |
|
53: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
54: |
Provide only one exit point in 'param_mem_from_mobj' function |
MISRAC2012-RULE_15_5-a-4 |
|
59: |
Provide only one exit point in 'param_mem_from_mobj' function |
MISRAC2012-RULE_15_5-a-4 |
|
100: |
A tag name 'mobj' is reused |
MISRAC2012-RULE_5_7-a-2 |
|
100: |
Identifier 'mobj' is hiding an identifier from global or namespace scope |
MISRAC2012-RULE_5_3-a-2 |
| +
|
100: |
Value of "mobj" is never used |
MISRAC2012-RULE_2_2-b-2 |
| |
|
Point where value is declared
Point where value is declared
entry_std.c (100): struct mobj __maybe_unused **mobj; |
|
|
107: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
111: |
Provide only one exit point in 'set_tmem_param' function |
MISRAC2012-RULE_15_5-a-4 |
|
115: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
115: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
120: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
121: |
Integer constant '0xFFFF0006' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
121: |
Provide only one exit point in 'set_tmem_param' function |
MISRAC2012-RULE_15_5-a-4 |
|
124: |
Provide only one exit point in 'set_tmem_param' function |
MISRAC2012-RULE_15_5-a-4 |
|
130: |
Provide only one exit point in 'set_tmem_param' function |
MISRAC2012-RULE_15_5-a-4 |
|
140: |
Integer constant '0xFFFF0006' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
140: |
Provide only one exit point in 'set_tmem_param' function |
MISRAC2012-RULE_15_5-a-4 |
|
152: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
153: |
Integer constant '0xFFFF0006' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
153: |
Provide only one exit point in 'set_rmem_param' function |
MISRAC2012-RULE_15_5-a-4 |
|
162: |
The operands of a logical '||' in function 'set_rmem_param' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
163: |
The operands of a logical '||' in function 'set_rmem_param' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
164: |
Integer constant '0xFFFF000F' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
164: |
Provide only one exit point in 'set_rmem_param' function |
MISRAC2012-RULE_15_5-a-4 |
|
166: |
Provide only one exit point in 'set_rmem_param' function |
MISRAC2012-RULE_15_5-a-4 |
|
181: |
Integer constant '0xFFFF0006' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
181: |
Provide only one exit point in 'copy_in_params' function |
MISRAC2012-RULE_15_5-a-4 |
|
183: |
Unused function's "memset" return value |
MISRAC2012-RULE_17_7-a-2 |
|
190: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
190: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
191: |
Integer constant '0xFFFF0006' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
191: |
Provide only one exit point in 'copy_in_params' function |
MISRAC2012-RULE_15_5-a-4 |
|
193: |
Shifting operation should be enclosed with if checking that RHS operand lies between zero and one less than the width in bits
of the underlying type of the LHS operand
|
MISRAC2012-RULE_12_2-a-2 |
|
193: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with a narrower essential type (4 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
201: |
The expression of the 'unsigned int' essential type (4 byte) is assigned to an object with a narrower essential type (1 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
201: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
203: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with a narrower essential type (4 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
204: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with a narrower essential type (4 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
221: |
The argument number '2' (8 byte essential type) is passed to the function 'set_tmem_param' as a parameter with a narrower
essential type (4 byte)
|
MISRAC2012-RULE_10_3-a-2 |
|
223: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
224: |
Provide only one exit point in 'copy_in_params' function |
MISRAC2012-RULE_15_5-a-4 |
|
225: |
The expression of the 'unsigned int' essential type (4 byte) is assigned to an object with a narrower essential type (1 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
225: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
234: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
235: |
Provide only one exit point in 'copy_in_params' function |
MISRAC2012-RULE_15_5-a-4 |
|
236: |
The expression of the 'unsigned int' essential type (4 byte) is assigned to an object with a narrower essential type (1 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
236: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
242: |
Integer constant '0xFFFF0006' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
242: |
Provide only one exit point in 'copy_in_params' function |
MISRAC2012-RULE_15_5-a-4 |
|
246: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
246: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
246: |
The value of a composite expression (8 bit essential type) is assigned to an object with wider essential type (32 bit) |
MISRAC2012-RULE_10_6-a-2 |
|
248: |
Provide only one exit point in 'copy_in_params' function |
MISRAC2012-RULE_15_5-a-4 |
|
269: |
Missing statement or comment before terminating 'break' |
MISRAC2012-RULE_16_4-b-2 |
|
269: |
Missing statement or comment before terminating 'break' |
MISRAC2012-RULE_16_1-f-2 |
|
274: |
Pass parameter "ta_param" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
275: |
Pass parameter "saved_attr" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
280: |
Shifting operation should be enclosed with if checking that RHS operand does not exceed the upper limit (one less than the
width in bits of the underlying type of the LHS operand)
|
MISRAC2012-RULE_12_2-a-2 |
|
280: |
The right hand operand of the '&' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
283: |
Shifting operation should be enclosed with if checking that RHS operand lies between zero and one less than the width in bits
of the underlying type of the LHS operand
|
MISRAC2012-RULE_12_2-a-2 |
|
293: |
Missing statement or comment before terminating 'break' |
MISRAC2012-RULE_16_4-b-2 |
|
293: |
Missing statement or comment before terminating 'break' |
MISRAC2012-RULE_16_1-f-2 |
|
302: |
Missing statement or comment before terminating 'break' |
MISRAC2012-RULE_16_4-b-2 |
|
302: |
Missing statement or comment before terminating 'break' |
MISRAC2012-RULE_16_1-f-2 |
|
319: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
319: |
The right hand operand of the '|' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
323: |
Integer constant '0xFFFF0006' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
323: |
Provide only one exit point in 'get_open_session_meta' function |
MISRAC2012-RULE_15_5-a-4 |
|
325: |
The operands of a logical '||' in function 'get_open_session_meta' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
325: |
The operands of a logical '||' in function 'get_open_session_meta' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
326: |
Integer constant '0xFFFF0006' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
326: |
Provide only one exit point in 'get_open_session_meta' function |
MISRAC2012-RULE_15_5-a-4 |
|
328: |
Pointer to void type should not be converted to pointer to object type 'const uint8_t *' in function's argument |
MISRAC2012-RULE_11_5-a-4 |
|
329: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with a narrower essential type (4 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
332: |
Integer constant '0x80000000' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
333: |
Unused function's "memset" return value |
MISRAC2012-RULE_17_7-a-2 |
|
341: |
Pointer to void type should not be converted to pointer to object type 'const uint8_t *' in function's argument |
MISRAC2012-RULE_11_5-a-4 |
|
344: |
Integer constant '0xFFFF0006' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
344: |
Provide only one exit point in 'get_open_session_meta' function |
MISRAC2012-RULE_15_5-a-4 |
|
348: |
Provide only one exit point in 'get_open_session_meta' function |
MISRAC2012-RULE_15_5-a-4 |
|
365: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
367: |
The argument number '2' (8 byte essential type) is passed to the function 'copy_in_params' as a parameter with a narrower
essential type (4 byte)
|
MISRAC2012-RULE_10_3-a-2 |
|
367: |
The left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
370: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
373: |
Integer constant '0xFFFFFFFF' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
376: |
The argument number '2' (8 byte essential type) is passed to the function 'copy_out_param' as a parameter with a narrower
essential type (4 byte)
|
MISRAC2012-RULE_10_3-a-2 |
|
376: |
The left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
387: |
Identifier 'cleanup_shm_refs' is hiding an identifier from global or namespace scope |
MISRAC2012-RULE_5_3-a-2 |
|
388: |
The argument number '3' (8 byte essential type) is passed to the function 'cleanup_shm_refs' as a parameter with a narrower
essential type (4 byte)
|
MISRAC2012-RULE_10_3-a-2 |
|
391: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
404: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
405: |
Integer constant '0xFFFF0006' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
406: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
431: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
434: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
435: |
Integer constant '0xFFFF0006' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
436: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
440: |
Integer constant '0xFFFFFFFF' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
461: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
462: |
Integer constant '0xFFFF0006' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
463: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
467: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
468: |
Integer constant '0xFFFF0006' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
469: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
484: |
Integer constant '0xFFFF0006' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
486: |
The operands of a logical '||' in function 'register_shm' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
488: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
488: |
The left hand operand of the '|' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
489: |
Provide only one exit point in 'register_shm' function |
MISRAC2012-RULE_15_5-a-4 |
|
492: |
A tag name 'mobj' is reused |
MISRAC2012-RULE_5_7-a-2 |
|
492: |
Identifier 'mobj' is hiding an identifier from global or namespace scope |
MISRAC2012-RULE_5_3-a-2 |
|
496: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
497: |
Provide only one exit point in 'register_shm' function |
MISRAC2012-RULE_15_5-a-4 |
|
509: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
513: |
Integer constant '0xFFFF0006' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
526: |
The names of the identifiers 'tee_entry_std' and '__tee_entry_std' (line: 20 in the 'entry_std.h' file) differ only in the
presence/absence of the underscore character
|
MISRAC2012-DIR_4_5-a-4 |
|
535: |
Reserved name '__tee_entry_std' used |
MISRAC2012-RULE_21_2-a-2 |
|
535: |
The function '__tee_entry_std' is referenced only in the translation unit where it is defined |
MISRAC2012-RULE_8_7-a-4 |
|
535: |
The names of the identifiers '__tee_entry_std' and 'tee_entry_std' (line: 19 in the 'entry_std.h' file) differ only in the
presence/absence of the underscore character
|
MISRAC2012-DIR_4_5-a-4 |
|
535: |
The names of the identifiers '__tee_entry_std' and 'tee_entry_std' (line: 526 in the 'entry_std.c' file) differ only in the
presence/absence of the underscore character
|
MISRAC2012-DIR_4_5-a-4 |
|
564: |
Every non empty default clause in a switch statement shall be terminated with a break statement |
MISRAC2012-RULE_16_1-d-2 |
|
564: |
Every non empty default clause in a switch statement shall be terminated with a break statement |
MISRAC2012-RULE_16_3-b-2 |
| +
|
576: |
Condition "core_mmu_is_shm_cached()" always evaluates to true |
MISRAC2012-RULE_14_3-ac-2 |
| |
|
Start of the path
entry_std.c (572): static TEE_Result default_mobj_init(void)
entry_std.c (576): core_mmu_is_shm_cached()
core_mmu.h (615): core_mmu_type_to_attr(...)
core_mmu.c (627): const uint32_t attr = TEE_MATTR_VALID_BLOCK;
core_mmu.c (628): const uint32_t cached = TEE_MATTR_CACHE_CACHED << TEE_MATTR_CACHE_SHIFT;
core_mmu.c (629): const uint32_t noncache = TEE_MATTR_CACHE_NONCACHE <<
core_mmu.c (632): switch (t) { *** Switch evaluation: t ("case 10")
core_mmu.c (649): return attr | TEE_MATTR_PRW | cached;
core_mmu.h (615): return core_mmu_type_to_attr(MEM_AREA_NSEC_SHM) &
Point where senseless condition is used
entry_std.c (576): default_nsec_shm_size, SHM_CACHE_ATTRS, |
|
|
578: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
591: |
Reserved name '__scattered_array_0initcall' used |
MISRAC2012-RULE_21_2-a-2 |
| /optee_os_MISRA/optee_os_ruchi393_core/crypto/aes-cts.c |
|
42: |
Pass parameter "ctx" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
44: |
The left hand operand of the logical operator '&&' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
44: |
The operands of a logical '&&' in function 'to_cts_ctx' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
46: |
Integral type 'unsigned long' should not be converted to pointer to object type 'struct cts_ctx *' |
MISRAC2012-RULE_11_4-a-4 |
|
46: |
Pointer to object type 'const struct crypto_cipher_ctx *' should not be converted to integral type 'unsigned long' |
MISRAC2012-RULE_11_4-a-4 |
|
46: |
Reserved name '__ptr' used |
MISRAC2012-RULE_21_2-a-2 |
|
61: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
62: |
Provide only one exit point in 'cts_init' function |
MISRAC2012-RULE_15_5-a-4 |
|
64: |
Provide only one exit point in 'cts_init' function |
MISRAC2012-RULE_15_5-a-4 |
|
105: |
Provide only one exit point in 'cbc_cts_update' function |
MISRAC2012-RULE_15_5-a-4 |
|
109: |
The expression of the 'essentially unsigned' type is assigned to an object with the 'essentially signed' type |
MISRAC2012-RULE_10_3-b-2 |
|
109: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
111: |
Integer constant '0xFFFF0007' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
111: |
Provide only one exit point in 'cbc_cts_update' function |
MISRAC2012-RULE_15_5-a-4 |
|
112: |
The expression of the 'essentially unsigned' type is assigned to an object with the 'essentially signed' type |
MISRAC2012-RULE_10_3-b-2 |
|
117: |
Unused function's "memcpy" return value |
MISRAC2012-RULE_17_7-a-2 |
|
118: |
The variable 'data' used as the left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
119: |
The argument number '3' ('essentially signed' type) is passed to the function 'memcpy' as a parameter with the 'essentially
unsigned' type
|
MISRAC2012-RULE_10_3-b-2 |
| +
|
120: |
The number of bytes to process by the "memset" function is not positive and equals 0 |
MISRAC2012-RULE_21_18-a-1 |
| |
|
aes-cts.c (97): TEE_Result res = TEE_SUCCESS;
aes-cts.c (98): uint8_t tmp2_block[64] = { 0 };
aes-cts.c (99): uint8_t tmp_block[64] = { 0 };
aes-cts.c (100): int len_last_block = 0;
aes-cts.c (101): int block_size = 16;
aes-cts.c (102): int nb_blocks = 0;
aes-cts.c (104): if (!last_block) *** Condition evaluation: !last_block (assuming false)
aes-cts.c (109): nb_blocks = (len + block_size - 1) / block_size;
aes-cts.c (110): if (nb_blocks < 2) *** Condition evaluation: (nb_blocks < 2) (assuming false)
aes-cts.c (112): len_last_block = len % block_size;
aes-cts.c (113): if (len_last_block == 0) *** Condition evaluation: (len_last_block == 0) (assuming true)
Point where number of bytes to process is defined
aes-cts.c (114): len_last_block = block_size; *** Number of bytes to process: block_size-len_last_block == 0 *** Buffer: uint8_t tmp_block + len_last_block[-16...47]
aes-cts.c (116): if (mode == TEE_MODE_ENCRYPT) { *** Condition evaluation: (mode == 0) (assuming true)
aes-cts.c (118): data + ((nb_blocks - 1) * block_size),
aes-cts.c (119): len_last_block);
aes-cts.c (117): memcpy(tmp_block,
memcpy.c (99): char *dst = dst0; *** Buffer: uint8_t tmp_block + len_last_block[-16...47]
memcpy.c (100): _CONST char *src = src0;
memcpy.c (101): long *aligned_dst;
memcpy.c (102): _CONST long *aligned_src;
memcpy.c (106): if (!TOO_SMALL(len0) && !UNALIGNED(src, dst)) {
memcpy.c (130): while (len0--) *** Loop condition evaluation: (len0 != 0) (true) *** Entering the loop
memcpy.c (131): *dst++ = *src++;
memcpy.c (130): while (len0--) *** Loop condition evaluation: (len0 != 0) (assuming false) *** Not entering the loop
memcpy.c (133): return dst0;
aes-cts.c (120): memset(tmp_block + len_last_block,
aes-cts.c (122): block_size - len_last_block);
Point where buffer is passed to the function
aes-cts.c (120): memset(tmp_block + len_last_block, *** Number of bytes to process: block_size - len_last_block == 0 *** Buffer: uint8_t tmp_block + len_last_block[-16...47] |
|
|
120: |
The variable 'tmp_block' used as the left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
120: |
Unused function's "memset" return value |
MISRAC2012-RULE_17_7-a-2 |
|
122: |
The argument number '3' ('essentially signed' type) is passed to the function 'memset' as a parameter with the 'essentially
unsigned' type
|
MISRAC2012-RULE_10_3-b-2 |
|
126: |
The argument number '6' ('essentially signed' type) is passed to the function 'tee_do_cipher_update' as a parameter with the
'essentially unsigned' type
|
MISRAC2012-RULE_10_3-b-2 |
|
128: |
Provide only one exit point in 'cbc_cts_update' function |
MISRAC2012-RULE_15_5-a-4 |
|
130: |
The variable 'dst' used as the left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
130: |
Unused function's "memcpy" return value |
MISRAC2012-RULE_17_7-a-2 |
|
130: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
131: |
The variable 'dst' used as the left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
131: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
132: |
The argument number '3' ('essentially signed' type) is passed to the function 'memcpy' as a parameter with the 'essentially
unsigned' type
|
MISRAC2012-RULE_10_3-b-2 |
|
135: |
The argument number '6' ('essentially signed' type) is passed to the function 'tee_do_cipher_update' as a parameter with the
'essentially unsigned' type
|
MISRAC2012-RULE_10_3-b-2 |
|
136: |
The variable 'dst' used as the left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
136: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
138: |
Provide only one exit point in 'cbc_cts_update' function |
MISRAC2012-RULE_15_5-a-4 |
|
143: |
The variable 'data' used as the left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
143: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
144: |
The argument number '6' ('essentially signed' type) is passed to the function 'tee_do_cipher_update' as a parameter with the
'essentially unsigned' type
|
MISRAC2012-RULE_10_3-b-2 |
|
146: |
Provide only one exit point in 'cbc_cts_update' function |
MISRAC2012-RULE_15_5-a-4 |
|
149: |
The variable 'data' used as the left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
149: |
Unused function's "memcpy" return value |
MISRAC2012-RULE_17_7-a-2 |
|
150: |
The argument number '3' ('essentially signed' type) is passed to the function 'memcpy' as a parameter with the 'essentially
unsigned' type
|
MISRAC2012-RULE_10_3-b-2 |
|
151: |
The variable 'tmp2_block' used as the left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
151: |
The variable 'tmp_block' used as the left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
151: |
Unused function's "memcpy" return value |
MISRAC2012-RULE_17_7-a-2 |
|
152: |
The argument number '3' ('essentially signed' type) is passed to the function 'memcpy' as a parameter with the 'essentially
unsigned' type
|
MISRAC2012-RULE_10_3-b-2 |
|
162: |
The argument number '6' ('essentially signed' type) is passed to the function 'tee_do_cipher_update' as a parameter with the
'essentially unsigned' type
|
MISRAC2012-RULE_10_3-b-2 |
|
165: |
Provide only one exit point in 'cbc_cts_update' function |
MISRAC2012-RULE_15_5-a-4 |
|
169: |
The argument number '6' ('essentially signed' type) is passed to the function 'tee_do_cipher_update' as a parameter with the
'essentially unsigned' type
|
MISRAC2012-RULE_10_3-b-2 |
|
170: |
The variable 'dst' used as the left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
173: |
Provide only one exit point in 'cbc_cts_update' function |
MISRAC2012-RULE_15_5-a-4 |
|
176: |
The variable 'data' used as the left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
178: |
The argument number '6' ('essentially signed' type) is passed to the function 'tee_do_cipher_update' as a parameter with the
'essentially unsigned' type
|
MISRAC2012-RULE_10_3-b-2 |
|
180: |
Provide only one exit point in 'cbc_cts_update' function |
MISRAC2012-RULE_15_5-a-4 |
|
183: |
The variable 'dst' used as the left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
183: |
Unused function's "memcpy" return value |
MISRAC2012-RULE_17_7-a-2 |
|
183: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
184: |
The argument number '3' ('essentially signed' type) is passed to the function 'memcpy' as a parameter with the 'essentially
unsigned' type
|
MISRAC2012-RULE_10_3-b-2 |
|
186: |
Provide only one exit point in 'cbc_cts_update' function |
MISRAC2012-RULE_15_5-a-4 |
|
212: |
'free' function should not be used |
MISRAC2012-RULE_21_3-a-2 |
|
212: |
'free' function should not be used |
MISRAC2012-DIR_4_12-a-2 |
|
226: |
Identifier 'cts_ops' is being reused |
MISRAC2012-RULE_5_9-b-4 |
|
237: |
'calloc' function should not be used |
MISRAC2012-RULE_21_3-a-2 |
|
237: |
'calloc' function should not be used |
MISRAC2012-DIR_4_12-a-2 |
|
237: |
Pointer to void type should not be converted to pointer to object type 'struct cts_ctx *' |
MISRAC2012-RULE_11_5-a-4 |
|
239: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
240: |
Integer constant '0xFFFF000C' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
240: |
Provide only one exit point in 'crypto_aes_cts_alloc_ctx' function |
MISRAC2012-RULE_15_5-a-4 |
|
243: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
244: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
246: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
247: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
252: |
Provide only one exit point in 'crypto_aes_cts_alloc_ctx' function |
MISRAC2012-RULE_15_5-a-4 |
|
255: |
'free' function should not be used |
MISRAC2012-RULE_21_3-a-2 |
|
255: |
'free' function should not be used |
MISRAC2012-DIR_4_12-a-2 |
|
257: |
Provide only one exit point in 'crypto_aes_cts_alloc_ctx' function |
MISRAC2012-RULE_15_5-a-4 |
| /optee_os_MISRA/optee_os_ruchi393_core/crypto/aes-gcm-ghash-tbl.c |
|
49: |
Identifiers given in declaration of 'internal_aes_gcm_ghash_gen_tbl' function (file: 'internal_aes-gcm.h', line: '108') are:
'enc_key' not: 'ek'
|
MISRAC2012-RULE_8_3-b-2 |
|
56: |
Unused function's "memset" return value |
MISRAC2012-RULE_17_7-a-2 |
|
60: |
The variable 'h' used as the left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
70: |
Left-hand operand of right-shift operator is a variable 'i' of 'signed int' type |
MISRAC2012-RULE_1_3-o-2 |
|
70: |
The left hand operand of the '>>=' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
71: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with a narrower essential type (4 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
71: |
The right hand operand of the '&' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
81: |
The left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
82: |
The left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
98: |
Global variable 'last4' is being used only in a single function 'internal_aes_gcm_ghash_mult_tbl' |
MISRAC2012-RULE_8_9-a-4 |
|
109: |
Pass parameter "ghash_key" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
117: |
The expression of the 'essentially signed' type is assigned to an object with the 'essentially unsigned' type |
MISRAC2012-RULE_10_3-b-2 |
|
117: |
The right hand operand of the '&' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
123: |
The expression of the 'essentially signed' type is assigned to an object with the 'essentially unsigned' type |
MISRAC2012-RULE_10_3-b-2 |
|
123: |
The right hand operand of the '&' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
127: |
The expression of the 'essentially signed' type is assigned to an object with the 'essentially unsigned' type |
MISRAC2012-RULE_10_3-b-2 |
|
127: |
The right hand operand of the '&' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
135: |
The expression of the 'essentially signed' type is assigned to an object with the 'essentially unsigned' type |
MISRAC2012-RULE_10_3-b-2 |
|
135: |
The right hand operand of the '&' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
144: |
The variable 'output' used as the left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
| /optee_os_MISRA/optee_os_ruchi393_core/crypto/aes-gcm-sw.c |
|
13: |
Identifiers given in declaration of 'internal_aes_gcm_set_key' function (file: 'internal_aes-gcm.h', line: '118') are: 'enc_key'
not: 'ek'
|
MISRAC2012-RULE_8_3-b-2 |
|
43: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
46: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
47: |
'for' statement in a function 'internal_aes_gcm_ghash_update' should be followed by a block |
MISRAC2012-RULE_15_6-a-2 |
|
49: |
Pointer to void type should not be converted to pointer to object type 'const uint8_t *' |
MISRAC2012-RULE_11_5-a-4 |
|
49: |
The left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
50: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
61: |
In the call of the function 'memcpy' the first argument type 'unsigned long*' is not compatible with the second argument type
'void*'
|
MISRAC2012-RULE_21_15-a-2 |
|
61: |
Unused function's "memcpy" return value |
MISRAC2012-RULE_17_7-a-2 |
|
74: |
Do not use the '_Alignof' operator |
MISRAC2012-RULE_1_4-h-2 |
|
74: |
Pointer to object type 'const uint8_t *' should not be converted to integral type 'unsigned long' |
MISRAC2012-RULE_11_4-a-4 |
|
76: |
The variable 'src' used as the left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
76: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
77: |
The variable 'dst' used as the left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
77: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
84: |
The variable 'dst' used as the left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
84: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
86: |
In the call of the function 'memcpy' the first argument type 'unsigned long*' is not compatible with the second argument type
'unsigned char*'
|
MISRAC2012-RULE_21_15-a-2 |
|
86: |
The variable 'src' used as the left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
86: |
Unused function's "memcpy" return value |
MISRAC2012-RULE_17_7-a-2 |
|
86: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
104: |
In the call of the function 'memcpy' the first argument type 'unsigned long*' is not compatible with the second argument type
'void*'
|
MISRAC2012-RULE_21_15-a-2 |
|
104: |
Unused function's "memcpy" return value |
MISRAC2012-RULE_17_7-a-2 |
|
113: |
Do not use the '_Alignof' operator |
MISRAC2012-RULE_1_4-h-2 |
|
113: |
Pointer to object type 'const uint8_t *' should not be converted to integral type 'unsigned long' |
MISRAC2012-RULE_11_4-a-4 |
|
115: |
The variable 'src' used as the left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
115: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
116: |
The variable 'dst' used as the left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
116: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
123: |
The variable 'dst' used as the left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
123: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
125: |
In the call of the function 'memcpy' the first argument type 'unsigned long*' is not compatible with the second argument type
'unsigned char*'
|
MISRAC2012-RULE_21_15-a-2 |
|
125: |
The variable 'src' used as the left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
125: |
Unused function's "memcpy" return value |
MISRAC2012-RULE_17_7-a-2 |
|
125: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
132: |
Identifiers given in declaration of 'internal_aes_gcm_update_payload_blocks' function (file: 'internal_aes-gcm.h', line: '129')
are: 'mode' not: 'm'
|
MISRAC2012-RULE_8_3-b-2 |
|
132: |
The identifier 'internal_aes_gcm_update_payload_blocks' has the same first 31 characters of the name as the identifier 'internal_aes_gcm_update_payload'
defined in the 'internal_aes-gcm.h' file in line '61'
|
MISRAC2012-RULE_5_1-a-2 |
|
137: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
137: |
The operands of a logical '&&' in function 'internal_aes_gcm_update_payload_blocks' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
137: |
The right hand operand of the logical operator '&&' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
140: |
Pointer to void type should not be converted to pointer to object type 'const uint8_t *' in function's argument |
MISRAC2012-RULE_11_5-a-4 |
|
140: |
Pointer to void type should not be converted to pointer to object type 'uint8_t *' in function's argument |
MISRAC2012-RULE_11_5-a-4 |
|
142: |
Pointer to void type should not be converted to pointer to object type 'const uint8_t *' in function's argument |
MISRAC2012-RULE_11_5-a-4 |
|
142: |
Pointer to void type should not be converted to pointer to object type 'uint8_t *' in function's argument |
MISRAC2012-RULE_11_5-a-4 |
| /optee_os_MISRA/optee_os_ruchi393_core/crypto/aes-gcm.c |
|
22: |
'for' statement in a function 'xor_buf' should be followed by a block |
MISRAC2012-RULE_15_6-a-2 |
|
33: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
41: |
In the call of the function 'memcpy' the first argument type 'unsigned long*' is not compatible with the second argument type
'unsigned char*'
|
MISRAC2012-RULE_21_15-a-2 |
|
41: |
The variable 'data' used as the left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
41: |
Unused function's "memcpy" return value |
MISRAC2012-RULE_17_7-a-2 |
|
41: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
49: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
49: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
50: |
Unused function's "memset" return value |
MISRAC2012-RULE_17_7-a-2 |
|
51: |
In the call of the function 'memcpy' the first argument type 'unsigned long*' is not compatible with the second argument type
'unsigned char*'
|
MISRAC2012-RULE_21_15-a-2 |
|
51: |
The variable 'data' used as the left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
51: |
Unused function's "memcpy" return value |
MISRAC2012-RULE_17_7-a-2 |
|
51: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
52: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
61: |
The value of a composite expression (32 bit essential type) is passed to function '__builtin_bswap64' as parameter with wider
essential type (64 bit)
|
MISRAC2012-RULE_10_6-a-2 |
|
62: |
The value of a composite expression (32 bit essential type) is passed to function '__builtin_bswap64' as parameter with wider
essential type (64 bit)
|
MISRAC2012-RULE_10_6-a-2 |
|
65: |
Missing statement or comment before terminating 'break' |
MISRAC2012-RULE_16_4-b-2 |
|
65: |
Missing statement or comment before terminating 'break' |
MISRAC2012-RULE_16_1-f-2 |
|
65: |
The 'switch' statement contains less than two switch-clauses |
MISRAC2012-RULE_16_6-a-2 |
|
65: |
The 'switch' statement contains less than two switch-clauses |
MISRAC2012-RULE_16_1-h-2 |
|
69: |
Reserved name '__gcm_init' used |
MISRAC2012-RULE_21_2-a-2 |
|
74: |
Missing statement or comment before terminating 'break' |
MISRAC2012-RULE_16_4-b-2 |
|
74: |
Missing statement or comment before terminating 'break' |
MISRAC2012-RULE_16_1-f-2 |
|
74: |
The 'switch' statement contains less than two switch-clauses |
MISRAC2012-RULE_16_6-a-2 |
|
74: |
The 'switch' statement contains less than two switch-clauses |
MISRAC2012-RULE_16_1-h-2 |
|
77: |
Integer constant '0xFFFF0006' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
77: |
Provide only one exit point in '__gcm_init' function |
MISRAC2012-RULE_15_5-a-4 |
|
79: |
Unused function's "memset" return value |
MISRAC2012-RULE_17_7-a-2 |
|
81: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with a narrower essential type (4 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
85: |
In the call of the function 'memcpy' the first argument type 'unsigned long*' is not compatible with the second argument type
'void*'
|
MISRAC2012-RULE_21_15-a-2 |
|
85: |
Unused function's "memcpy" return value |
MISRAC2012-RULE_17_7-a-2 |
|
88: |
Pointer to void type should not be converted to pointer to object type 'const uint8_t *' in function's argument |
MISRAC2012-RULE_11_5-a-4 |
|
89: |
The argument number '3' (8 byte essential type) is passed to the function 'ghash_update_lengths' as a parameter with a narrower
essential type (4 byte)
|
MISRAC2012-RULE_10_3-a-2 |
|
91: |
In the call of the function 'memcpy' the first argument type 'unsigned long*' is not compatible with the second argument type
'unsigned char*'
|
MISRAC2012-RULE_21_15-a-2 |
|
91: |
Unused function's "memcpy" return value |
MISRAC2012-RULE_17_7-a-2 |
|
92: |
Unused function's "memset" return value |
MISRAC2012-RULE_17_7-a-2 |
|
121: |
Provide only one exit point in '__gcm_init' function |
MISRAC2012-RULE_15_5-a-4 |
|
124: |
The function 'internal_aes_gcm_init' is referenced only in the translation unit where it is defined |
MISRAC2012-RULE_8_7-a-4 |
|
134: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
135: |
Provide only one exit point in 'internal_aes_gcm_init' function |
MISRAC2012-RULE_15_5-a-4 |
|
137: |
Provide only one exit point in 'internal_aes_gcm_init' function |
MISRAC2012-RULE_15_5-a-4 |
|
140: |
Reserved name '__gcm_update_aad' used |
MISRAC2012-RULE_21_2-a-2 |
|
143: |
Pointer to void type should not be converted to pointer to object type 'const uint8_t *' |
MISRAC2012-RULE_11_5-a-4 |
|
148: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
149: |
Integer constant '0xFFFF0006' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
149: |
Provide only one exit point in '__gcm_update_aad' function |
MISRAC2012-RULE_15_5-a-4 |
|
151: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with a narrower essential type (4 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
153: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
154: |
The left hand operand of the logical operator '||' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
155: |
The operands of a logical '||' in function '__gcm_update_aad' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
156: |
The operands of a logical '||' in function '__gcm_update_aad' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
157: |
Reserved name '_a' used |
MISRAC2012-RULE_21_2-a-2 |
|
157: |
Reserved name '_b' used |
MISRAC2012-RULE_21_2-a-2 |
|
157: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
158: |
The left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
158: |
Unused function's "memcpy" return value |
MISRAC2012-RULE_17_7-a-2 |
|
159: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with a narrower essential type (4 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
162: |
Provide only one exit point in '__gcm_update_aad' function |
MISRAC2012-RULE_15_5-a-4 |
|
166: |
The variable 'd' used as the left hand side operand of the '+=' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
177: |
The variable 'd' used as the left hand side operand of the '+=' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
180: |
Provide only one exit point in '__gcm_update_aad' function |
MISRAC2012-RULE_15_5-a-4 |
|
183: |
The function 'internal_aes_gcm_update_aad' is referenced only in the translation unit where it is defined |
MISRAC2012-RULE_8_7-a-4 |
|
190: |
Reserved name '__gcm_update_payload' used |
MISRAC2012-RULE_21_2-a-2 |
|
196: |
Pointer to void type should not be converted to pointer to object type 'const uint8_t *' |
MISRAC2012-RULE_11_5-a-4 |
|
197: |
Pointer to void type should not be converted to pointer to object type 'uint8_t *' |
MISRAC2012-RULE_11_5-a-4 |
|
200: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
200: |
The operands of a logical '&&' in function '__gcm_update_payload' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
200: |
The right hand operand of the logical operator '&&' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
202: |
The left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
202: |
Unused function's "memset" return value |
MISRAC2012-RULE_17_7-a-2 |
|
208: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with a narrower essential type (4 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
210: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
211: |
The left hand operand of the logical operator '||' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
211: |
The operands of a logical '||' in function '__gcm_update_payload' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
212: |
Reserved name '_a' used |
MISRAC2012-RULE_21_2-a-2 |
|
212: |
Reserved name '_b' used |
MISRAC2012-RULE_21_2-a-2 |
|
212: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
214: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
214: |
The operands of a logical '&&' in function '__gcm_update_payload' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
214: |
The operands of a logical '&&' in function '__gcm_update_payload' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
219: |
The left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
220: |
The left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
220: |
Unused function's "memcpy" return value |
MISRAC2012-RULE_17_7-a-2 |
|
222: |
The left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
222: |
Unused function's "memcpy" return value |
MISRAC2012-RULE_17_7-a-2 |
|
223: |
The left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
225: |
The left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
225: |
Unused function's "memcpy" return value |
MISRAC2012-RULE_17_7-a-2 |
|
227: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with a narrower essential type (4 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
230: |
Provide only one exit point in '__gcm_update_payload' function |
MISRAC2012-RULE_15_5-a-4 |
|
235: |
The variable 'd' used as the left hand side operand of the '+=' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
236: |
The variable 's' used as the left hand side operand of the '+=' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
248: |
The variable 's' used as the left hand side operand of the '+=' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
249: |
The variable 'd' used as the left hand side operand of the '+=' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
254: |
Provide only one exit point in '__gcm_update_payload' function |
MISRAC2012-RULE_15_5-a-4 |
|
257: |
The function 'internal_aes_gcm_update_payload' is referenced only in the translation unit where it is defined |
MISRAC2012-RULE_8_7-a-4 |
|
274: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
275: |
Provide only one exit point in 'operation_final' function |
MISRAC2012-RULE_15_5-a-4 |
|
277: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
278: |
The left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
278: |
Unused function's "memset" return value |
MISRAC2012-RULE_17_7-a-2 |
|
287: |
Provide only one exit point in 'operation_final' function |
MISRAC2012-RULE_15_5-a-4 |
|
290: |
Reserved name '__gcm_enc_final' used |
MISRAC2012-RULE_21_2-a-2 |
|
298: |
Integer constant '0xFFFF0010' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
298: |
Provide only one exit point in '__gcm_enc_final' function |
MISRAC2012-RULE_15_5-a-4 |
|
300: |
Pointer to void type should not be converted to pointer to object type 'const uint8_t *' in function's argument |
MISRAC2012-RULE_11_5-a-4 |
|
300: |
Pointer to void type should not be converted to pointer to object type 'uint8_t *' in function's argument |
MISRAC2012-RULE_11_5-a-4 |
|
301: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
302: |
Provide only one exit point in '__gcm_enc_final' function |
MISRAC2012-RULE_15_5-a-4 |
|
304: |
In the call of the function 'memcpy' the first argument type 'void*' is not compatible with the second argument type 'unsigned
char*'
|
MISRAC2012-RULE_21_15-a-2 |
|
304: |
Unused function's "memcpy" return value |
MISRAC2012-RULE_17_7-a-2 |
|
307: |
Provide only one exit point in '__gcm_enc_final' function |
MISRAC2012-RULE_15_5-a-4 |
|
310: |
The function 'internal_aes_gcm_enc_final' is referenced only in the translation unit where it is defined |
MISRAC2012-RULE_8_7-a-4 |
|
318: |
Reserved name '__gcm_dec_final' used |
MISRAC2012-RULE_21_2-a-2 |
|
326: |
Integer constant '0xFFFF3071' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
326: |
Provide only one exit point in '__gcm_dec_final' function |
MISRAC2012-RULE_15_5-a-4 |
|
328: |
Pointer to void type should not be converted to pointer to object type 'const uint8_t *' in function's argument |
MISRAC2012-RULE_11_5-a-4 |
|
328: |
Pointer to void type should not be converted to pointer to object type 'uint8_t *' in function's argument |
MISRAC2012-RULE_11_5-a-4 |
|
329: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
330: |
Provide only one exit point in '__gcm_dec_final' function |
MISRAC2012-RULE_15_5-a-4 |
|
332: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
333: |
Integer constant '0xFFFF3071' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
333: |
Provide only one exit point in '__gcm_dec_final' function |
MISRAC2012-RULE_15_5-a-4 |
|
335: |
Provide only one exit point in '__gcm_dec_final' function |
MISRAC2012-RULE_15_5-a-4 |
|
338: |
The function 'internal_aes_gcm_dec_final' is referenced only in the translation unit where it is defined |
MISRAC2012-RULE_8_7-a-4 |
| +
|
352: |
Condition "!c" always evaluates to false |
MISRAC2012-RULE_14_3-ac-2 |
| |
|
Start of the path
aes-gcm.c (346): void internal_aes_gcm_inc_ctr(struct internal_aes_gcm_state *state)
aes-gcm.c (348): uint64_t c = 0;
aes-gcm.c (350): __builtin_bswap64(...)
aes-gcm.c (350): c = TEE_U64_FROM_BIG_ENDIAN(state->ctr[1]) + 1;
aes-gcm.c (351): state->ctr[1] = TEE_U64_TO_BIG_ENDIAN(c);
Point where senseless condition is used
aes-gcm.c (352): if (!c) { |
|
|
352: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
381: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
382: |
Provide only one exit point in 'internal_aes_gcm_enc' function |
MISRAC2012-RULE_15_5-a-4 |
|
384: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
386: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
387: |
Provide only one exit point in 'internal_aes_gcm_enc' function |
MISRAC2012-RULE_15_5-a-4 |
|
390: |
Provide only one exit point in 'internal_aes_gcm_enc' function |
MISRAC2012-RULE_15_5-a-4 |
|
404: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
405: |
Provide only one exit point in 'internal_aes_gcm_dec' function |
MISRAC2012-RULE_15_5-a-4 |
|
407: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
409: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
410: |
Provide only one exit point in 'internal_aes_gcm_dec' function |
MISRAC2012-RULE_15_5-a-4 |
|
413: |
Provide only one exit point in 'internal_aes_gcm_dec' function |
MISRAC2012-RULE_15_5-a-4 |
|
419: |
#include statements are not grouped properly. This is the last #include in file. Some statements are in line 18 |
MISRAC2012-RULE_20_1-a-4 |
|
429: |
Pass parameter "aec" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
433: |
Integral type 'unsigned long' should not be converted to pointer to object type 'struct aes_gcm_ctx *' |
MISRAC2012-RULE_11_4-a-4 |
|
433: |
Pointer to object type 'const struct crypto_authenc_ctx *' should not be converted to integral type 'unsigned long' |
MISRAC2012-RULE_11_4-a-4 |
|
433: |
Reserved name '__ptr' used |
MISRAC2012-RULE_21_2-a-2 |
|
436: |
Identifiers given in declaration of 'crypto_aes_gcm_alloc_ctx' function (file: 'crypto_impl.h', line: '268') are: 'ctx' not:
'ctx_ret'
|
MISRAC2012-RULE_8_3-b-2 |
|
438: |
'calloc' function should not be used |
MISRAC2012-RULE_21_3-a-2 |
|
438: |
'calloc' function should not be used |
MISRAC2012-DIR_4_12-a-2 |
|
438: |
Pointer to void type should not be converted to pointer to object type 'struct aes_gcm_ctx *' |
MISRAC2012-RULE_11_5-a-4 |
|
440: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
441: |
Integer constant '0xFFFF000C' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
441: |
Provide only one exit point in 'crypto_aes_gcm_alloc_ctx' function |
MISRAC2012-RULE_15_5-a-4 |
|
446: |
Provide only one exit point in 'crypto_aes_gcm_alloc_ctx' function |
MISRAC2012-RULE_15_5-a-4 |
|
451: |
'free' function should not be used |
MISRAC2012-RULE_21_3-a-2 |
|
451: |
'free' function should not be used |
MISRAC2012-DIR_4_12-a-2 |
|
464: |
Parameter 'aad_len' is not used in function 'aes_gcm_init' |
MISRAC2012-RULE_2_7-a-4 |
|
465: |
Parameter 'payload_len' is not used in function 'aes_gcm_init' |
MISRAC2012-RULE_2_7-a-4 |
|
504: |
Parameter 'aec' is not used in function 'aes_gcm_final' |
MISRAC2012-RULE_2_7-a-4 |
|
504: |
Pass parameter "aec" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
508: |
Identifier 'aes_gcm_ops' is being reused |
MISRAC2012-RULE_5_9-b-4 |
|
526: |
The names of the identifiers 'y' and 'Y' (line: 523 in the 'aes-gcm.c' file) differ only in capitalization |
MISRAC2012-DIR_4_5-a-4 |
|
528: |
The names of the identifiers 'x' and 'X' (line: 523 in the 'aes-gcm.c' file) differ only in capitalization |
MISRAC2012-DIR_4_5-a-4 |
|
535: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
537: |
Shifting operation should be enclosed with if checking that RHS operand does not exceed the upper limit (one less than the
width in bits of the underlying type of the LHS operand)
|
MISRAC2012-RULE_12_2-a-2 |
|
537: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
537: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
537: |
The right hand operand of the '&' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
537: |
The right hand operand of the '&' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
541: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with a narrower essential type (4 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
541: |
The right hand operand of the '&' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
543: |
Integer constant '0xe100000000000000' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
| /optee_os_MISRA/optee_os_ruchi393_core/crypto/cbc-mac.c |
|
35: |
Pass parameter "ctx" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
37: |
The left hand operand of the logical operator '&&' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
37: |
The operands of a logical '&&' in function 'to_cbc_mac_ctx' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
39: |
Integral type 'unsigned long' should not be converted to pointer to object type 'struct crypto_cbc_mac_ctx *' |
MISRAC2012-RULE_11_4-a-4 |
|
39: |
Pointer to object type 'const struct crypto_mac_ctx *' should not be converted to integral type 'unsigned long' |
MISRAC2012-RULE_11_4-a-4 |
|
39: |
Reserved name '__ptr' used |
MISRAC2012-RULE_21_2-a-2 |
|
47: |
Unused function's "memset" return value |
MISRAC2012-RULE_17_7-a-2 |
|
48: |
Unused function's "memset" return value |
MISRAC2012-RULE_17_7-a-2 |
|
64: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
65: |
The value of a composite expression (8 bit essential type) is assigned to an object with wider essential type (64 bit) |
MISRAC2012-RULE_10_6-a-2 |
|
67: |
The left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
67: |
Unused function's "memcpy" return value |
MISRAC2012-RULE_17_7-a-2 |
|
68: |
Parameter 'data' is modified in function 'crypto_cbc_mac_update' |
MISRAC2012-RULE_17_8-a-4 |
|
68: |
The variable 'data' used as the left hand side operand of the '+=' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
69: |
Parameter 'len' is modified in function 'crypto_cbc_mac_update' |
MISRAC2012-RULE_17_8-a-4 |
|
73: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
74: |
Provide only one exit point in 'crypto_cbc_mac_update' function |
MISRAC2012-RULE_15_5-a-4 |
|
83: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
84: |
Provide only one exit point in 'crypto_cbc_mac_update' function |
MISRAC2012-RULE_15_5-a-4 |
|
86: |
Parameter 'data' is modified in function 'crypto_cbc_mac_update' |
MISRAC2012-RULE_17_8-a-4 |
|
86: |
The variable 'data' used as the left hand side operand of the '+=' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
87: |
Parameter 'len' is modified in function 'crypto_cbc_mac_update' |
MISRAC2012-RULE_17_8-a-4 |
|
91: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
92: |
The left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
92: |
Unused function's "memcpy" return value |
MISRAC2012-RULE_17_7-a-2 |
|
93: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with a narrower essential type (1 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
96: |
Provide only one exit point in 'crypto_cbc_mac_update' function |
MISRAC2012-RULE_15_5-a-4 |
|
110: |
The value of a composite expression (8 bit essential type) is assigned to an object with wider essential type (64 bit) |
MISRAC2012-RULE_10_6-a-2 |
|
112: |
The argument number '2' ('essentially unsigned' type) is passed to the function 'memset' as a parameter with the 'essentially
signed' type
|
MISRAC2012-RULE_10_3-b-2 |
|
112: |
The left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
112: |
Unused function's "memset" return value |
MISRAC2012-RULE_17_7-a-2 |
|
114: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
115: |
Integer constant '0xFFFF0007' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
115: |
Provide only one exit point in 'crypto_cbc_mac_final' function |
MISRAC2012-RULE_15_5-a-4 |
|
118: |
The operands of a logical '||' in function 'crypto_cbc_mac_final' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
118: |
The right hand operand of the logical operator '||' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
119: |
Integer constant '0xFFFF0007' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
119: |
Provide only one exit point in 'crypto_cbc_mac_final' function |
MISRAC2012-RULE_15_5-a-4 |
|
121: |
Reserved name '_a' used |
MISRAC2012-RULE_21_2-a-2 |
|
121: |
Reserved name '_b' used |
MISRAC2012-RULE_21_2-a-2 |
|
121: |
Unused function's "memcpy" return value |
MISRAC2012-RULE_17_7-a-2 |
|
121: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
124: |
Provide only one exit point in 'crypto_cbc_mac_final' function |
MISRAC2012-RULE_15_5-a-4 |
|
132: |
'free' function should not be used |
MISRAC2012-RULE_21_3-a-2 |
|
132: |
'free' function should not be used |
MISRAC2012-DIR_4_12-a-2 |
|
146: |
Unused function's "memcpy" return value |
MISRAC2012-RULE_17_7-a-2 |
|
147: |
Unused function's "memcpy" return value |
MISRAC2012-RULE_17_7-a-2 |
|
152: |
Identifier 'crypto_cbc_mac_ops' is being reused |
MISRAC2012-RULE_5_9-b-4 |
|
169: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
170: |
Provide only one exit point in 'crypto_cbc_mac_alloc_ctx' function |
MISRAC2012-RULE_15_5-a-4 |
|
173: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
174: |
Provide only one exit point in 'crypto_cbc_mac_alloc_ctx' function |
MISRAC2012-RULE_15_5-a-4 |
|
176: |
'calloc' function should not be used |
MISRAC2012-RULE_21_3-a-2 |
|
176: |
'calloc' function should not be used |
MISRAC2012-DIR_4_12-a-2 |
|
176: |
Pointer to void type should not be converted to pointer to object type 'struct crypto_cbc_mac_ctx *' |
MISRAC2012-RULE_11_5-a-4 |
|
177: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
179: |
Integer constant '0xFFFF000C' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
179: |
Provide only one exit point in 'crypto_cbc_mac_alloc_ctx' function |
MISRAC2012-RULE_15_5-a-4 |
|
185: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with a narrower essential type (1 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
189: |
Provide only one exit point in 'crypto_cbc_mac_alloc_ctx' function |
MISRAC2012-RULE_15_5-a-4 |
| /optee_os_MISRA/optee_os_ruchi393_core/crypto/crypto.c |
|
19: |
Integer constant '0xFFFF0009' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
| +
|
28: |
Condition "res == 4294901769" always evaluates to true |
MISRAC2012-RULE_14_3-ac-2 |
| |
|
Start of the path
crypto.c (17): TEE_Result crypto_hash_alloc_ctx(void **ctx, uint32_t algo)
crypto.c (19): TEE_Result res = TEE_ERROR_NOT_IMPLEMENTED;
crypto.c (20): struct crypto_hash_ctx *c = NULL;
crypto.c (26): res = drvcrypt_hash_alloc_ctx(&c, algo);
crypto_impl.h (277): return TEE_ERROR_NOT_IMPLEMENTED;
Point where senseless condition is used
crypto.c (28): if (res == TEE_ERROR_NOT_IMPLEMENTED) { |
|
|
28: |
Integer constant '0xFFFF0009' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
52: |
Missing statement or comment before terminating 'break' |
MISRAC2012-RULE_16_4-b-2 |
|
52: |
Missing statement or comment before terminating 'break' |
MISRAC2012-RULE_16_1-f-2 |
|
56: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
64: |
Pointer to void type should not be converted to pointer to object type 'struct crypto_hash_ctx *' |
MISRAC2012-RULE_11_5-a-4 |
|
66: |
The left hand operand of the logical operator '&&' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
66: |
The right hand operand of the logical operator '&&' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
73: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
99: |
Integer constant '0xFFFF0009' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
| +
|
108: |
Condition "res == 4294901769" always evaluates to true |
MISRAC2012-RULE_14_3-ac-2 |
| |
|
Start of the path
crypto.c (97): TEE_Result crypto_cipher_alloc_ctx(void **ctx, uint32_t algo)
crypto.c (99): TEE_Result res = TEE_ERROR_NOT_IMPLEMENTED;
crypto.c (100): struct crypto_cipher_ctx *c = NULL;
crypto.c (106): res = drvcrypt_cipher_alloc_ctx(&c, algo);
crypto_impl.h (289): return TEE_ERROR_NOT_IMPLEMENTED;
Point where senseless condition is used
crypto.c (108): if (res == TEE_ERROR_NOT_IMPLEMENTED) { |
|
|
108: |
Integer constant '0xFFFF0009' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
147: |
Integer constant '0xFFFF0009' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
147: |
Provide only one exit point in 'crypto_cipher_alloc_ctx' function |
MISRAC2012-RULE_15_5-a-4 |
|
151: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
154: |
Provide only one exit point in 'crypto_cipher_alloc_ctx' function |
MISRAC2012-RULE_15_5-a-4 |
|
159: |
Pointer to void type should not be converted to pointer to object type 'struct crypto_cipher_ctx *' |
MISRAC2012-RULE_11_5-a-4 |
|
161: |
The left hand operand of the logical operator '&&' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
161: |
The right hand operand of the logical operator '&&' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
168: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
182: |
The operands of a logical '&&' in function 'crypto_cipher_init' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
182: |
The operands of a logical '&&' in function 'crypto_cipher_init' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
183: |
Integer constant '0xFFFF0006' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
183: |
Provide only one exit point in 'crypto_cipher_init' function |
MISRAC2012-RULE_15_5-a-4 |
|
185: |
Provide only one exit point in 'crypto_cipher_init' function |
MISRAC2012-RULE_15_5-a-4 |
|
189: |
Parameter 'mode' is not used in function 'crypto_cipher_update' |
MISRAC2012-RULE_2_7-a-4 |
|
205: |
The operands of a logical '&&' in function 'crypto_cipher_get_block_size' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
205: |
The operands of a logical '&&' in function 'crypto_cipher_get_block_size' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
206: |
The operands of a logical '&&' in function 'crypto_cipher_get_block_size' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
207: |
Integer constant '0xFFFF0006' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
207: |
Provide only one exit point in 'crypto_cipher_get_block_size' function |
MISRAC2012-RULE_15_5-a-4 |
|
212: |
Provide only one exit point in 'crypto_cipher_get_block_size' function |
MISRAC2012-RULE_15_5-a-4 |
|
216: |
Provide only one exit point in 'crypto_cipher_get_block_size' function |
MISRAC2012-RULE_15_5-a-4 |
|
219: |
Provide only one exit point in 'crypto_cipher_get_block_size' function |
MISRAC2012-RULE_15_5-a-4 |
|
221: |
Integer constant '0xFFFF000A' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
221: |
Provide only one exit point in 'crypto_cipher_get_block_size' function |
MISRAC2012-RULE_15_5-a-4 |
| +
|
236: |
Condition "res == 4294901769" always evaluates to true |
MISRAC2012-RULE_14_3-ac-2 |
| |
|
Start of the path
crypto.c (225): TEE_Result crypto_mac_alloc_ctx(void **ctx, uint32_t algo)
crypto.c (227): TEE_Result res = TEE_SUCCESS;
crypto.c (228): struct crypto_mac_ctx *c = NULL;
crypto.c (234): res = drvcrypt_mac_alloc_ctx(&c, algo);
crypto_impl.h (301): return TEE_ERROR_NOT_IMPLEMENTED;
Point where senseless condition is used
crypto.c (236): if (res == TEE_ERROR_NOT_IMPLEMENTED) { |
|
|
236: |
Integer constant '0xFFFF0009' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
277: |
Integer constant '0xF0000613' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
284: |
Integer constant '0xFFFF000A' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
284: |
Provide only one exit point in 'crypto_mac_alloc_ctx' function |
MISRAC2012-RULE_15_5-a-4 |
|
288: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
291: |
Provide only one exit point in 'crypto_mac_alloc_ctx' function |
MISRAC2012-RULE_15_5-a-4 |
|
296: |
Pointer to void type should not be converted to pointer to object type 'struct crypto_mac_ctx *' |
MISRAC2012-RULE_11_5-a-4 |
|
298: |
The left hand operand of the logical operator '&&' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
298: |
The right hand operand of the logical operator '&&' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
305: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
321: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
322: |
Provide only one exit point in 'crypto_mac_update' function |
MISRAC2012-RULE_15_5-a-4 |
|
324: |
Provide only one exit point in 'crypto_mac_update' function |
MISRAC2012-RULE_15_5-a-4 |
|
349: |
Integer constant '0xFFFF0009' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
349: |
Provide only one exit point in 'crypto_authenc_alloc_ctx' function |
MISRAC2012-RULE_15_5-a-4 |
|
352: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
355: |
Provide only one exit point in 'crypto_authenc_alloc_ctx' function |
MISRAC2012-RULE_15_5-a-4 |
|
360: |
Pointer to void type should not be converted to pointer to object type 'struct crypto_authenc_ctx *' |
MISRAC2012-RULE_11_5-a-4 |
|
362: |
The left hand operand of the logical operator '&&' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
362: |
The right hand operand of the logical operator '&&' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
377: |
Parameter 'mode' is not used in function 'crypto_authenc_update_aad' |
MISRAC2012-RULE_2_7-a-4 |
|
390: |
Integer constant '0xFFFF0010' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
390: |
Provide only one exit point in 'crypto_authenc_update_payload' function |
MISRAC2012-RULE_15_5-a-4 |
|
393: |
Provide only one exit point in 'crypto_authenc_update_payload' function |
MISRAC2012-RULE_15_5-a-4 |
|
403: |
Integer constant '0xFFFF0010' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
403: |
Provide only one exit point in 'crypto_authenc_enc_final' function |
MISRAC2012-RULE_15_5-a-4 |
|
406: |
Provide only one exit point in 'crypto_authenc_enc_final' function |
MISRAC2012-RULE_15_5-a-4 |
|
416: |
Integer constant '0xFFFF0010' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
416: |
Provide only one exit point in 'crypto_authenc_dec_final' function |
MISRAC2012-RULE_15_5-a-4 |
|
419: |
Provide only one exit point in 'crypto_authenc_dec_final' function |
MISRAC2012-RULE_15_5-a-4 |
|
430: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
668: |
Identifiers given in declaration of 'crypto_acipher_alloc_ecc_public_key' function (file: 'crypto.h', line: '191') are: 's'
not: 'key'
|
MISRAC2012-RULE_8_3-b-2 |
|
672: |
Integer constant '0xFFFF0009' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
| +
|
679: |
Condition "res == 4294901769" always evaluates to true |
MISRAC2012-RULE_14_3-ac-2 |
| |
|
Start of the path
crypto.c (668): TEE_Result crypto_acipher_alloc_ecc_public_key(struct ecc_public_key *key,
crypto.c (672): TEE_Result res = TEE_ERROR_NOT_IMPLEMENTED;
crypto.c (678): res = drvcrypt_asym_alloc_ecc_public_key(key, key_type, key_size_bits);
crypto_impl.h (383): return TEE_ERROR_NOT_IMPLEMENTED;
Point where senseless condition is used
crypto.c (679): if (res == TEE_ERROR_NOT_IMPLEMENTED) |
|
|
679: |
Integer constant '0xFFFF0009' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
686: |
Identifiers given in declaration of 'crypto_acipher_alloc_ecc_keypair' function (file: 'crypto.h', line: '194') are: 's' not:
'key'
|
MISRAC2012-RULE_8_3-b-2 |
|
690: |
Integer constant '0xFFFF0009' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
| +
|
697: |
Condition "res == 4294901769" always evaluates to true |
MISRAC2012-RULE_14_3-ac-2 |
| |
|
Start of the path
crypto.c (686): TEE_Result crypto_acipher_alloc_ecc_keypair(struct ecc_keypair *key,
crypto.c (690): TEE_Result res = TEE_ERROR_NOT_IMPLEMENTED;
crypto.c (696): res = drvcrypt_asym_alloc_ecc_keypair(key, key_type, key_size_bits);
crypto_impl.h (391): return TEE_ERROR_NOT_IMPLEMENTED;
Point where senseless condition is used
crypto.c (697): if (res == TEE_ERROR_NOT_IMPLEMENTED) |
|
|
697: |
Integer constant '0xFFFF0009' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
704: |
Identifiers given in declaration of 'crypto_acipher_free_ecc_public_key' function (file: 'crypto.h', line: '197') are: 's'
not: 'key'
|
MISRAC2012-RULE_8_3-b-2 |
|
706: |
The left hand operand of the logical operator '&&' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
706: |
The right hand operand of the logical operator '&&' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
711: |
Identifiers given in declaration of 'crypto_acipher_gen_ecc_key' function (file: 'crypto.h', line: '206') are: 'key_size'
not: 'key_size_bits'
|
MISRAC2012-RULE_8_3-b-2 |
|
714: |
The left hand operand of the logical operator '&&' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
714: |
The right hand operand of the logical operator '&&' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
723: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
725: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
726: |
Integer constant '0xFFFF0009' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
726: |
Provide only one exit point in 'crypto_acipher_ecc_sign' function |
MISRAC2012-RULE_15_5-a-4 |
|
728: |
Provide only one exit point in 'crypto_acipher_ecc_sign' function |
MISRAC2012-RULE_15_5-a-4 |
|
735: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
737: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
738: |
Integer constant '0xFFFF0009' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
738: |
Provide only one exit point in 'crypto_acipher_ecc_verify' function |
MISRAC2012-RULE_15_5-a-4 |
|
740: |
Provide only one exit point in 'crypto_acipher_ecc_verify' function |
MISRAC2012-RULE_15_5-a-4 |
|
748: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
750: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
751: |
Integer constant '0xFFFF0009' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
751: |
Provide only one exit point in 'crypto_acipher_ecc_shared_secret' function |
MISRAC2012-RULE_15_5-a-4 |
|
753: |
Provide only one exit point in 'crypto_acipher_ecc_shared_secret' function |
MISRAC2012-RULE_15_5-a-4 |
|
761: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
763: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
764: |
Integer constant '0xFFFF0009' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
764: |
Provide only one exit point in 'crypto_acipher_sm2_pke_decrypt' function |
MISRAC2012-RULE_15_5-a-4 |
|
766: |
Provide only one exit point in 'crypto_acipher_sm2_pke_decrypt' function |
MISRAC2012-RULE_15_5-a-4 |
|
773: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
775: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
776: |
Integer constant '0xFFFF0009' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
776: |
Provide only one exit point in 'crypto_acipher_sm2_pke_encrypt' function |
MISRAC2012-RULE_15_5-a-4 |
|
778: |
Provide only one exit point in 'crypto_acipher_sm2_pke_encrypt' function |
MISRAC2012-RULE_15_5-a-4 |
|
795: |
Parameter 'data' is not used in function 'crypto_storage_obj_del' |
MISRAC2012-RULE_2_7-a-4 |
|
795: |
Parameter 'len' is not used in function 'crypto_storage_obj_del' |
MISRAC2012-RULE_2_7-a-4 |
|
795: |
Pass parameter "data" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
| /optee_os_MISRA/optee_os_ruchi393_core/crypto/rng_fortuna.c |
|
72: |
Declaration of object 'ring_buffer_spin_lock' does not precede its definition |
MISRAC2012-RULE_8_4-a-2 |
|
72: |
The object 'ring_buffer_spin_lock' is referenced only in the translation unit where it is defined |
MISRAC2012-RULE_8_7-a-4 |
| +
|
77: |
Condition "!counter[0]" always evaluates to false |
MISRAC2012-RULE_14_3-ac-2 |
| |
|
Start of the path
rng_fortuna.c (74): static void inc_counter(uint64_t counter[2])
rng_fortuna.c (76): counter[0]++;
Point where senseless condition is used
rng_fortuna.c (77): if (!counter[0]) |
|
|
77: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
88: |
Pointer to void type should not be converted to pointer to object type 'const uint8_t *' in function's argument |
MISRAC2012-RULE_11_5-a-4 |
|
102: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
103: |
Provide only one exit point in 'key_from_data' function |
MISRAC2012-RULE_15_5-a-4 |
|
105: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
106: |
Provide only one exit point in 'key_from_data' function |
MISRAC2012-RULE_15_5-a-4 |
|
107: |
Provide only one exit point in 'key_from_data' function |
MISRAC2012-RULE_15_5-a-4 |
|
137: |
Missing statement or comment before terminating 'break' |
MISRAC2012-RULE_16_4-b-2 |
|
137: |
Missing statement or comment before terminating 'break' |
MISRAC2012-RULE_16_1-f-2 |
|
137: |
The 'switch' statement contains less than two switch-clauses |
MISRAC2012-RULE_16_6-a-2 |
|
137: |
The 'switch' statement contains less than two switch-clauses |
MISRAC2012-RULE_16_1-h-2 |
|
139: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
140: |
Integer constant '0xFFFF0007' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
140: |
Provide only one exit point in 'crypto_rng_init' function |
MISRAC2012-RULE_15_5-a-4 |
|
142: |
Unused function's "memset" return value |
MISRAC2012-RULE_17_7-a-2 |
|
144: |
Only one 'goto' statement in loop is allowed. This loop contains 'goto' in lines: 147, 150 |
MISRAC2012-RULE_15_4-a-4 |
|
146: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
147: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
149: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
150: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
154: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
155: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
158: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
159: |
Provide only one exit point in 'crypto_rng_init' function |
MISRAC2012-RULE_15_5-a-4 |
|
162: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
163: |
Provide only one exit point in 'crypto_rng_init' function |
MISRAC2012-RULE_15_5-a-4 |
|
165: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
166: |
Provide only one exit point in 'crypto_rng_init' function |
MISRAC2012-RULE_15_5-a-4 |
|
169: |
Provide only one exit point in 'crypto_rng_init' function |
MISRAC2012-RULE_15_5-a-4 |
|
172: |
Provide only one exit point in 'crypto_rng_init' function |
MISRAC2012-RULE_15_5-a-4 |
|
176: |
Parameter 'dlen' is not used in function 'push_ring_buffer' |
MISRAC2012-RULE_2_7-a-4 |
|
178: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with a narrower essential type (1 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
185: |
Essential type of RHS operand (64 bit) is wider than essential type of composite expression in LHS operand (32 bit) |
MISRAC2012-RULE_10_7-a-2 |
|
185: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with a narrower essential type (4 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
187: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
192: |
In the call of the function 'memcpy' the first argument type 'unsigned char*' is not compatible with the second argument type
'void*'
|
MISRAC2012-RULE_21_15-a-2 |
|
192: |
Unused function's "memcpy" return value |
MISRAC2012-RULE_17_7-a-2 |
|
207: |
Provide only one exit point in 'pop_ring_buffer' function |
MISRAC2012-RULE_15_5-a-4 |
|
209: |
Essential type of RHS operand (64 bit) is wider than essential type of composite expression in LHS operand (32 bit) |
MISRAC2012-RULE_10_7-a-2 |
|
209: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with a narrower essential type (4 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
213: |
Reserved name '_a' used |
MISRAC2012-RULE_21_2-a-2 |
|
213: |
Reserved name '_b' used |
MISRAC2012-RULE_21_2-a-2 |
|
213: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
215: |
Unused function's "memcpy" return value |
MISRAC2012-RULE_17_7-a-2 |
|
219: |
Provide only one exit point in 'pop_ring_buffer' function |
MISRAC2012-RULE_15_5-a-4 |
|
223: |
Parameter 'dlen' is not used in function 'add_event' |
MISRAC2012-RULE_2_7-a-4 |
|
227: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with narrower essential type (1 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
230: |
Integer constant '0xFFFF0006' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
230: |
Provide only one exit point in 'add_event' function |
MISRAC2012-RULE_15_5-a-4 |
|
233: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
234: |
Provide only one exit point in 'add_event' function |
MISRAC2012-RULE_15_5-a-4 |
|
236: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
237: |
Provide only one exit point in 'add_event' function |
MISRAC2012-RULE_15_5-a-4 |
|
238: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
245: |
Provide only one exit point in 'add_event' function |
MISRAC2012-RULE_15_5-a-4 |
|
258: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
259: |
Provide only one exit point in 'drain_ring_buffer' function |
MISRAC2012-RULE_15_5-a-4 |
|
262: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
263: |
Provide only one exit point in 'drain_ring_buffer' function |
MISRAC2012-RULE_15_5-a-4 |
|
289: |
'return' statement should be at the end of the 'get_next_pnum' function |
MISRAC2012-RULE_15_5-a-4 |
|
289: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
302: |
The expression of the 'essentially Enum' type is assigned to an object with the 'essentially unsigned' type |
MISRAC2012-RULE_10_3-b-2 |
|
302: |
The left hand operand of the '>>' operator has essentially enum type: crypto_rng_src |
MISRAC2012-RULE_10_1-d-2 |
|
302: |
The left hand operand of the '>>' operator has essentially enum type: crypto_rng_src |
MISRAC2012-RULE_10_1-e-2 |
|
304: |
The left hand operand of the '&' operator has essentially enum type: crypto_rng_src |
MISRAC2012-RULE_10_1-d-2 |
|
304: |
The left hand operand of the '&' operator has essentially enum type: crypto_rng_src |
MISRAC2012-RULE_10_1-e-2 |
|
304: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
304: |
The right hand operand of the '&' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
305: |
The argument number '2' (4 byte essential type) is passed to the function 'push_ring_buffer' as a parameter with a narrower
essential type (1 byte)
|
MISRAC2012-RULE_10_3-a-2 |
|
308: |
The argument number '2' (4 byte essential type) is passed to the function 'add_event' as a parameter with a narrower essential
type (1 byte)
|
MISRAC2012-RULE_10_3-a-2 |
|
308: |
Unused function's "add_event" return value |
MISRAC2012-RULE_17_7-a-2 |
|
309: |
Unused function's "drain_ring_buffer" return value |
MISRAC2012-RULE_17_7-a-2 |
|
317: |
Pointer to void type should not be converted to pointer to object type 'uint8_t *' |
MISRAC2012-RULE_11_5-a-4 |
|
323: |
Pointer to void type should not be converted to pointer to object type 'const uint8_t *' in function's argument |
MISRAC2012-RULE_11_5-a-4 |
|
325: |
The variable 'b' used as the left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
325: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
333: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
334: |
Provide only one exit point in 'generate_blocks' function |
MISRAC2012-RULE_15_5-a-4 |
|
337: |
Provide only one exit point in 'generate_blocks' function |
MISRAC2012-RULE_15_5-a-4 |
|
346: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
347: |
Provide only one exit point in 'generate_random_data' function |
MISRAC2012-RULE_15_5-a-4 |
|
348: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
350: |
Pointer to void type should not be converted to pointer to object type 'uint8_t *' |
MISRAC2012-RULE_11_5-a-4 |
|
350: |
The left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
353: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
354: |
Provide only one exit point in 'generate_random_data' function |
MISRAC2012-RULE_15_5-a-4 |
|
355: |
Unused function's "memcpy" return value |
MISRAC2012-RULE_17_7-a-2 |
|
358: |
Provide only one exit point in 'generate_random_data' function |
MISRAC2012-RULE_15_5-a-4 |
|
375: |
Reserved name 'time' used |
MISRAC2012-RULE_21_2-b-2 |
|
375: |
Reserved name 'time' used |
MISRAC2012-RULE_21_2-c-2 |
|
383: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
384: |
Provide only one exit point in 'reseed_rate_limiting' function |
MISRAC2012-RULE_15_5-a-4 |
|
387: |
Provide only one exit point in 'reseed_rate_limiting' function |
MISRAC2012-RULE_15_5-a-4 |
|
391: |
Provide only one exit point in 'reseed_rate_limiting' function |
MISRAC2012-RULE_15_5-a-4 |
|
399: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
400: |
Provide only one exit point in 'restart_pool' function |
MISRAC2012-RULE_15_5-a-4 |
|
403: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
404: |
Provide only one exit point in 'restart_pool' function |
MISRAC2012-RULE_15_5-a-4 |
|
417: |
Provide only one exit point in 'restart_pool' function |
MISRAC2012-RULE_15_5-a-4 |
|
429: |
Shifting operation should be enclosed with if checking that RHS operand does not exceed the upper limit (one less than the
width in bits of the underlying type of the LHS operand)
|
MISRAC2012-RULE_12_2-a-2 |
|
429: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
429: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
429: |
The operands of a logical '||' in function 'reseed_from_pool' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
429: |
The operands of a logical '||' in function 'reseed_from_pool' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
429: |
The right hand operand of the '&' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
439: |
Provide only one exit point in 'maybe_reseed' function |
MISRAC2012-RULE_15_5-a-4 |
|
442: |
Provide only one exit point in 'maybe_reseed' function |
MISRAC2012-RULE_15_5-a-4 |
|
447: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
448: |
Provide only one exit point in 'maybe_reseed' function |
MISRAC2012-RULE_15_5-a-4 |
|
451: |
The operands of a logical '&&' in function 'maybe_reseed' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
451: |
The operands of a logical '&&' in function 'maybe_reseed' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
453: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
454: |
Provide only one exit point in 'maybe_reseed' function |
MISRAC2012-RULE_15_5-a-4 |
|
455: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
459: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
460: |
Provide only one exit point in 'maybe_reseed' function |
MISRAC2012-RULE_15_5-a-4 |
|
463: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
464: |
Provide only one exit point in 'maybe_reseed' function |
MISRAC2012-RULE_15_5-a-4 |
|
469: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
470: |
Provide only one exit point in 'maybe_reseed' function |
MISRAC2012-RULE_15_5-a-4 |
|
473: |
Provide only one exit point in 'maybe_reseed' function |
MISRAC2012-RULE_15_5-a-4 |
|
480: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
481: |
Integer constant '0xFFFF0007' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
481: |
Provide only one exit point in 'fortuna_read' function |
MISRAC2012-RULE_15_5-a-4 |
|
486: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
487: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
489: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
493: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
494: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
496: |
The argument number '2' ('essentially signed' type) is passed to the function 'generate_blocks' as a parameter with the 'essentially
unsigned' type
|
MISRAC2012-RULE_10_3-b-2 |
|
497: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
498: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
501: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
502: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
507: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
511: |
Provide only one exit point in 'fortuna_read' function |
MISRAC2012-RULE_15_5-a-4 |
|
514: |
Identifiers given in declaration of 'crypto_rng_read' function (file: 'crypto.h', line: '348') are: 'len' not: 'blen' |
MISRAC2012-RULE_8_3-b-2 |
|
523: |
Reserved name '_a' used |
MISRAC2012-RULE_21_2-a-2 |
|
523: |
Reserved name '_b' used |
MISRAC2012-RULE_21_2-a-2 |
|
523: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
524: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
525: |
Provide only one exit point in 'crypto_rng_read' function |
MISRAC2012-RULE_15_5-a-4 |
|
526: |
Pointer to void type should not be converted to pointer to object type 'uint8_t *' |
MISRAC2012-RULE_11_5-a-4 |
|
526: |
The left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
527: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
528: |
Provide only one exit point in 'crypto_rng_read' function |
MISRAC2012-RULE_15_5-a-4 |
| /optee_os_MISRA/optee_os_ruchi393_core/crypto/signed_hdr.c |
|
19: |
A tag name 'shdr' is reused |
MISRAC2012-RULE_5_7-a-2 |
|
19: |
Identifier 'shdr' is hiding an identifier from global or namespace scope |
MISRAC2012-RULE_5_3-a-2 |
|
20: |
Pointer to object type 'const struct shdr *' should not be converted to integral type 'unsigned long' |
MISRAC2012-RULE_11_4-a-4 |
|
24: |
Provide only one exit point in 'shdr_alloc_and_copy' function |
MISRAC2012-RULE_15_5-a-4 |
|
28: |
Provide only one exit point in 'shdr_alloc_and_copy' function |
MISRAC2012-RULE_15_5-a-4 |
|
31: |
Provide only one exit point in 'shdr_alloc_and_copy' function |
MISRAC2012-RULE_15_5-a-4 |
|
33: |
'malloc' function should not be used |
MISRAC2012-RULE_21_3-a-2 |
|
33: |
'malloc' function should not be used |
MISRAC2012-DIR_4_12-a-2 |
|
33: |
Pointer to void type should not be converted to pointer to object type 'struct shdr *' |
MISRAC2012-RULE_11_5-a-4 |
|
34: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
35: |
Provide only one exit point in 'shdr_alloc_and_copy' function |
MISRAC2012-RULE_15_5-a-4 |
|
36: |
Unused function's "memcpy" return value |
MISRAC2012-RULE_17_7-a-2 |
|
40: |
'free' function should not be used |
MISRAC2012-RULE_21_3-a-2 |
|
40: |
'free' function should not be used |
MISRAC2012-DIR_4_12-a-2 |
|
41: |
Provide only one exit point in 'shdr_alloc_and_copy' function |
MISRAC2012-RULE_15_5-a-4 |
|
44: |
Provide only one exit point in 'shdr_alloc_and_copy' function |
MISRAC2012-RULE_15_5-a-4 |
|
47: |
A tag name 'shdr' is reused |
MISRAC2012-RULE_5_7-a-2 |
|
47: |
Identifier 'shdr' is hiding an identifier from global or namespace scope |
MISRAC2012-RULE_5_3-a-2 |
|
55: |
Integer constant '0xFFFF000F' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
55: |
Provide only one exit point in 'shdr_verify_signature' function |
MISRAC2012-RULE_15_5-a-4 |
|
58: |
Integer constant '0xFFFF000F' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
58: |
Provide only one exit point in 'shdr_verify_signature' function |
MISRAC2012-RULE_15_5-a-4 |
|
62: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
63: |
Integer constant '0xFFFF000F' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
63: |
Provide only one exit point in 'shdr_verify_signature' function |
MISRAC2012-RULE_15_5-a-4 |
|
65: |
Integer constant '0xFFFF000F' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
65: |
Provide only one exit point in 'shdr_verify_signature' function |
MISRAC2012-RULE_15_5-a-4 |
|
68: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
69: |
Integer constant '0xFFFF000F' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
69: |
Provide only one exit point in 'shdr_verify_signature' function |
MISRAC2012-RULE_15_5-a-4 |
|
72: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
73: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
76: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
77: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
79: |
The argument number '3' ('essentially unsigned' type) is passed to the function 'crypto_acipher_rsassa_verify' as a parameter
with the 'essentially signed' type
|
MISRAC2012-RULE_10_3-b-2 |
|
80: |
Cast from 'const struct shdr *' removes 'const' qualifier |
MISRAC2012-RULE_11_8-a-2 |
|
80: |
The left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
81: |
Cast from 'const struct shdr *' removes 'const' qualifier |
MISRAC2012-RULE_11_8-a-2 |
|
81: |
The left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
81: |
The left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
84: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
85: |
Integer constant '0xFFFF000F' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
85: |
Provide only one exit point in 'shdr_verify_signature' function |
MISRAC2012-RULE_15_5-a-4 |
|
86: |
Provide only one exit point in 'shdr_verify_signature' function |
MISRAC2012-RULE_15_5-a-4 |
| /optee_os_MISRA/optee_os_ruchi393_core/crypto/sm2-kdf.c |
|
30: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
31: |
Provide only one exit point in 'sm2_kdf' function |
MISRAC2012-RULE_15_5-a-4 |
|
33: |
Only one 'goto' or 'break' statement in loop is allowed. This loop contains 'goto' in lines: 45, 48, 52, 55 and 'break' in
lines: 59
|
MISRAC2012-RULE_15_4-a-4 |
|
33: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
44: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
45: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
47: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
48: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
51: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
52: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
53: |
The argument number '3' ('essentially Enum' type) is passed to the function 'crypto_hash_final' as a parameter with the 'essentially
unsigned' type
|
MISRAC2012-RULE_10_3-b-2 |
|
54: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
55: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
58: |
Unused function's "memcpy" return value |
MISRAC2012-RULE_17_7-a-2 |
|
62: |
The right hand operand of the '+=' operator has essentially enum type: t_hash_size |
MISRAC2012-RULE_10_1-d-2 |
|
62: |
The variable 'out' used as the left hand side operand of the '+=' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
63: |
The right hand operand of the '-=' operator has essentially enum type: t_hash_size |
MISRAC2012-RULE_10_1-d-2 |
|
68: |
Provide only one exit point in 'sm2_kdf' function |
MISRAC2012-RULE_15_5-a-4 |
| /optee_os_MISRA/optee_os_ruchi393_core/crypto/sm3-hash.c |
|
28: |
Pass parameter "ctx" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
30: |
The left hand operand of the logical operator '&&' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
30: |
The operands of a logical '&&' in function 'to_hash_ctx' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
32: |
Integral type 'unsigned long' should not be converted to pointer to object type 'struct sm3_hash_ctx *' |
MISRAC2012-RULE_11_4-a-4 |
|
32: |
Pointer to object type 'const struct crypto_hash_ctx *' should not be converted to integral type 'unsigned long' |
MISRAC2012-RULE_11_4-a-4 |
|
32: |
Reserved name '__ptr' used |
MISRAC2012-RULE_21_2-a-2 |
|
55: |
The expression of the 'essentially Enum' type is assigned to an object with the 'essentially unsigned' type |
MISRAC2012-RULE_10_3-b-2 |
|
60: |
Integer constant '0xFFFF0006' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
60: |
Provide only one exit point in 'op_sm3_hash_final' function |
MISRAC2012-RULE_15_5-a-4 |
|
70: |
Unused function's "memcpy" return value |
MISRAC2012-RULE_17_7-a-2 |
|
72: |
Provide only one exit point in 'op_sm3_hash_final' function |
MISRAC2012-RULE_15_5-a-4 |
|
80: |
'free' function should not be used |
MISRAC2012-RULE_21_3-a-2 |
|
80: |
'free' function should not be used |
MISRAC2012-DIR_4_12-a-2 |
|
92: |
Identifier 'sm3_hash_ops' is being reused |
MISRAC2012-RULE_5_9-b-4 |
|
104: |
'calloc' function should not be used |
MISRAC2012-RULE_21_3-a-2 |
|
104: |
'calloc' function should not be used |
MISRAC2012-DIR_4_12-a-2 |
|
104: |
Pointer to void type should not be converted to pointer to object type 'struct sm3_hash_ctx *' |
MISRAC2012-RULE_11_5-a-4 |
|
105: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
106: |
Integer constant '0xFFFF000C' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
106: |
Provide only one exit point in 'crypto_sm3_alloc_ctx' function |
MISRAC2012-RULE_15_5-a-4 |
|
112: |
Provide only one exit point in 'crypto_sm3_alloc_ctx' function |
MISRAC2012-RULE_15_5-a-4 |
| /optee_os_MISRA/optee_os_ruchi393_core/crypto/sm3-hmac.c |
|
28: |
Pass parameter "ctx" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
30: |
The left hand operand of the logical operator '&&' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
30: |
The operands of a logical '&&' in function 'to_hmac_ctx' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
32: |
Integral type 'unsigned long' should not be converted to pointer to object type 'struct sm3_hmac_ctx *' |
MISRAC2012-RULE_11_4-a-4 |
|
32: |
Pointer to object type 'const struct crypto_mac_ctx *' should not be converted to integral type 'unsigned long' |
MISRAC2012-RULE_11_4-a-4 |
|
32: |
Reserved name '__ptr' used |
MISRAC2012-RULE_21_2-a-2 |
|
55: |
The expression of the 'essentially Enum' type is assigned to an object with the 'essentially unsigned' type |
MISRAC2012-RULE_10_3-b-2 |
|
60: |
Integer constant '0xFFFF0006' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
60: |
Provide only one exit point in 'op_sm3_hmac_final' function |
MISRAC2012-RULE_15_5-a-4 |
|
70: |
Unused function's "memcpy" return value |
MISRAC2012-RULE_17_7-a-2 |
|
72: |
Provide only one exit point in 'op_sm3_hmac_final' function |
MISRAC2012-RULE_15_5-a-4 |
|
80: |
'free' function should not be used |
MISRAC2012-RULE_21_3-a-2 |
|
80: |
'free' function should not be used |
MISRAC2012-DIR_4_12-a-2 |
|
92: |
Identifier 'sm3_hmac_ops' is being reused |
MISRAC2012-RULE_5_9-b-4 |
|
104: |
'calloc' function should not be used |
MISRAC2012-RULE_21_3-a-2 |
|
104: |
'calloc' function should not be used |
MISRAC2012-DIR_4_12-a-2 |
|
104: |
Pointer to void type should not be converted to pointer to object type 'struct sm3_hmac_ctx *' |
MISRAC2012-RULE_11_5-a-4 |
|
105: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
106: |
Integer constant '0xFFFF000C' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
106: |
Provide only one exit point in 'crypto_hmac_sm3_alloc_ctx' function |
MISRAC2012-RULE_15_5-a-4 |
|
112: |
Provide only one exit point in 'crypto_hmac_sm3_alloc_ctx' function |
MISRAC2012-RULE_15_5-a-4 |
| /optee_os_MISRA/optee_os_ruchi393_core/crypto/sm3.c |
|
18: |
Do not define function-like macro: GET_UINT32_BE |
MISRAC2012-DIR_4_9-a-4 |
|
26: |
Do not define function-like macro: PUT_UINT32_BE |
MISRAC2012-DIR_4_9-a-4 |
|
42: |
Integer constant '0xDA8A0600' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
43: |
Integer constant '0xA96F30BC' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
45: |
Integer constant '0xE38DEE4D' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
46: |
Integer constant '0xB0FB0E4E' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
57: |
'for' statement in a function 'sm3_process' should be followed by a block |
MISRAC2012-RULE_15_6-a-2 |
|
59: |
'for' statement in a function 'sm3_process' should be followed by a block |
MISRAC2012-RULE_15_6-a-2 |
|
79: |
Do not define function-like macro: FF0 |
MISRAC2012-DIR_4_9-a-4 |
|
80: |
Do not define function-like macro: FF1 |
MISRAC2012-DIR_4_9-a-4 |
|
82: |
Do not define function-like macro: GG0 |
MISRAC2012-DIR_4_9-a-4 |
|
83: |
Do not define function-like macro: GG1 |
MISRAC2012-DIR_4_9-a-4 |
|
85: |
Do not define function-like macro: SHL |
MISRAC2012-DIR_4_9-a-4 |
|
86: |
Do not define function-like macro: ROTL |
MISRAC2012-DIR_4_9-a-4 |
|
88: |
Do not define function-like macro: P0 |
MISRAC2012-DIR_4_9-a-4 |
|
89: |
Do not define function-like macro: P1 |
MISRAC2012-DIR_4_9-a-4 |
|
92: |
Section of code should not be 'commented out' |
MISRAC2012-DIR_4_4-a-4 |
|
98: |
Shifting operation should be enclosed with if checking that RHS operand lies between zero and one less than the width in bits
of the underlying type of the LHS operand
|
MISRAC2012-RULE_12_2-a-2 |
|
98: |
Shifting operation should be enclosed with if checking that RHS operand lies between zero and one less than the width in bits
of the underlying type of the LHS operand
|
MISRAC2012-RULE_12_2-a-2 |
|
98: |
The left hand operand of the '&' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
98: |
The right hand operand of the '&' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
100: |
Shifting operation should be enclosed with if checking that RHS operand lies between zero and one less than the width in bits
of the underlying type of the LHS operand
|
MISRAC2012-RULE_12_2-a-2 |
|
100: |
The left hand operand of the '&' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
100: |
The right hand operand of the '&' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
101: |
Shifting operation should be enclosed with if checking that RHS operand lies between zero and one less than the width in bits
of the underlying type of the LHS operand
|
MISRAC2012-RULE_12_2-a-2 |
|
101: |
Shifting operation should be enclosed with if checking that RHS operand lies between zero and one less than the width in bits
of the underlying type of the LHS operand
|
MISRAC2012-RULE_12_2-a-2 |
|
101: |
The left hand operand of the '&' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
101: |
The left hand operand of the '&' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
101: |
The right hand operand of the '&' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
101: |
The right hand operand of the '&' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
105: |
'for' statement in a function 'sm3_process' should be followed by a block |
MISRAC2012-RULE_15_6-a-2 |
|
118: |
Shifting operation should be enclosed with if checking that RHS operand lies between zero and one less than the width in bits
of the underlying type of the LHS operand
|
MISRAC2012-RULE_12_2-a-2 |
|
118: |
Shifting operation should be enclosed with if checking that RHS operand lies between zero and one less than the width in bits
of the underlying type of the LHS operand
|
MISRAC2012-RULE_12_2-a-2 |
|
118: |
Shifting operation should be enclosed with if checking that RHS operand lies between zero and one less than the width in bits
of the underlying type of the LHS operand
|
MISRAC2012-RULE_12_2-a-2 |
|
118: |
Shifting operation should be enclosed with if checking that RHS operand lies between zero and one less than the width in bits
of the underlying type of the LHS operand
|
MISRAC2012-RULE_12_2-a-2 |
|
118: |
The left hand operand of the '&' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
118: |
The left hand operand of the '&' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
118: |
The left hand operand of the '&' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
118: |
The right hand operand of the '&' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
118: |
The right hand operand of the '&' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
118: |
The right hand operand of the shift operator '<<' has essentially signed type 'int' |
MISRAC2012-RULE_10_1-f-2 |
|
118: |
The right hand operand of the shift operator '>>' has essentially signed type 'int' |
MISRAC2012-RULE_10_1-f-2 |
|
119: |
Shifting operation should be enclosed with if checking that RHS operand lies between zero and one less than the width in bits
of the underlying type of the LHS operand
|
MISRAC2012-RULE_12_2-a-2 |
|
119: |
Shifting operation should be enclosed with if checking that RHS operand lies between zero and one less than the width in bits
of the underlying type of the LHS operand
|
MISRAC2012-RULE_12_2-a-2 |
|
119: |
The left hand operand of the '&' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
119: |
The right hand operand of the '&' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
123: |
Shifting operation should be enclosed with if checking that RHS operand lies between zero and one less than the width in bits
of the underlying type of the LHS operand
|
MISRAC2012-RULE_12_2-a-2 |
|
123: |
Shifting operation should be enclosed with if checking that RHS operand lies between zero and one less than the width in bits
of the underlying type of the LHS operand
|
MISRAC2012-RULE_12_2-a-2 |
|
123: |
The left hand operand of the '&' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
123: |
The right hand operand of the '&' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
127: |
Shifting operation should be enclosed with if checking that RHS operand lies between zero and one less than the width in bits
of the underlying type of the LHS operand
|
MISRAC2012-RULE_12_2-a-2 |
|
127: |
Shifting operation should be enclosed with if checking that RHS operand lies between zero and one less than the width in bits
of the underlying type of the LHS operand
|
MISRAC2012-RULE_12_2-a-2 |
|
127: |
The left hand operand of the '&' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
127: |
The right hand operand of the '&' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
129: |
Shifting operation should be enclosed with if checking that RHS operand lies between zero and one less than the width in bits
of the underlying type of the LHS operand
|
MISRAC2012-RULE_12_2-a-2 |
|
129: |
The left hand operand of the '&' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
129: |
The right hand operand of the '&' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
133: |
Shifting operation should be enclosed with if checking that RHS operand lies between zero and one less than the width in bits
of the underlying type of the LHS operand
|
MISRAC2012-RULE_12_2-a-2 |
|
133: |
Shifting operation should be enclosed with if checking that RHS operand lies between zero and one less than the width in bits
of the underlying type of the LHS operand
|
MISRAC2012-RULE_12_2-a-2 |
|
133: |
Shifting operation should be enclosed with if checking that RHS operand lies between zero and one less than the width in bits
of the underlying type of the LHS operand
|
MISRAC2012-RULE_12_2-a-2 |
|
133: |
Shifting operation should be enclosed with if checking that RHS operand lies between zero and one less than the width in bits
of the underlying type of the LHS operand
|
MISRAC2012-RULE_12_2-a-2 |
|
133: |
The left hand operand of the '&' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
133: |
The left hand operand of the '&' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
133: |
The left hand operand of the '&' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
133: |
The right hand operand of the '&' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
133: |
The right hand operand of the '&' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
133: |
The right hand operand of the shift operator '<<' has essentially signed type 'int' |
MISRAC2012-RULE_10_1-f-2 |
|
133: |
The right hand operand of the shift operator '>>' has essentially signed type 'int' |
MISRAC2012-RULE_10_1-f-2 |
|
134: |
Shifting operation should be enclosed with if checking that RHS operand lies between zero and one less than the width in bits
of the underlying type of the LHS operand
|
MISRAC2012-RULE_12_2-a-2 |
|
134: |
Shifting operation should be enclosed with if checking that RHS operand lies between zero and one less than the width in bits
of the underlying type of the LHS operand
|
MISRAC2012-RULE_12_2-a-2 |
|
134: |
The left hand operand of the '&' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
134: |
The right hand operand of the '&' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
138: |
Shifting operation should be enclosed with if checking that RHS operand lies between zero and one less than the width in bits
of the underlying type of the LHS operand
|
MISRAC2012-RULE_12_2-a-2 |
|
138: |
Shifting operation should be enclosed with if checking that RHS operand lies between zero and one less than the width in bits
of the underlying type of the LHS operand
|
MISRAC2012-RULE_12_2-a-2 |
|
138: |
The left hand operand of the '&' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
138: |
The right hand operand of the '&' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
142: |
Shifting operation should be enclosed with if checking that RHS operand lies between zero and one less than the width in bits
of the underlying type of the LHS operand
|
MISRAC2012-RULE_12_2-a-2 |
|
142: |
Shifting operation should be enclosed with if checking that RHS operand lies between zero and one less than the width in bits
of the underlying type of the LHS operand
|
MISRAC2012-RULE_12_2-a-2 |
|
142: |
The left hand operand of the '&' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
142: |
The right hand operand of the '&' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
144: |
Shifting operation should be enclosed with if checking that RHS operand lies between zero and one less than the width in bits
of the underlying type of the LHS operand
|
MISRAC2012-RULE_12_2-a-2 |
|
144: |
The left hand operand of the '&' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
144: |
The right hand operand of the '&' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
162: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
163: |
'return' statement should be at the end of the 'sm3_update' function |
MISRAC2012-RULE_15_5-a-4 |
|
165: |
The right hand operand of the '&' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
165: |
The value of a composite expression (32 bit essential type) is assigned to an object with wider essential type (64 bit) |
MISRAC2012-RULE_10_6-a-2 |
|
168: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with a narrower essential type (4 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
173: |
The left hand operand of the logical operator '&&' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
173: |
The operands of a logical '&&' in function 'sm3_update' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
174: |
The left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
174: |
Unused function's "memcpy" return value |
MISRAC2012-RULE_17_7-a-2 |
|
176: |
Parameter 'input' is modified in function 'sm3_update' |
MISRAC2012-RULE_17_8-a-4 |
|
176: |
The variable 'input' used as the left hand side operand of the '+=' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
177: |
Parameter 'ilen' is modified in function 'sm3_update' |
MISRAC2012-RULE_17_8-a-4 |
|
183: |
Parameter 'input' is modified in function 'sm3_update' |
MISRAC2012-RULE_17_8-a-4 |
|
183: |
The variable 'input' used as the left hand side operand of the '+=' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
184: |
Parameter 'ilen' is modified in function 'sm3_update' |
MISRAC2012-RULE_17_8-a-4 |
|
188: |
The left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
188: |
Unused function's "memcpy" return value |
MISRAC2012-RULE_17_7-a-2 |
|
191: |
Global variable 'sm3_padding' is being used only in a single function 'sm3_final' |
MISRAC2012-RULE_8_9-a-4 |
|
210: |
The right hand operand of the '&' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
226: |
The function 'sm3' is referenced only in the translation unit where it is defined |
MISRAC2012-RULE_8_7-a-4 |
|
244: |
Parameter 'keylen' is modified in function 'sm3_hmac_init' |
MISRAC2012-RULE_17_8-a-4 |
|
245: |
Parameter 'key' is modified in function 'sm3_hmac_init' |
MISRAC2012-RULE_17_8-a-4 |
|
248: |
Unused function's "memset" return value |
MISRAC2012-RULE_17_7-a-2 |
|
249: |
Unused function's "memset" return value |
MISRAC2012-RULE_17_7-a-2 |
| /optee_os_MISRA/optee_os_ruchi393_core/crypto/sm4-cbc.c |
|
25: |
Pass parameter "ctx" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
27: |
The left hand operand of the logical operator '&&' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
27: |
The operands of a logical '&&' in function 'to_sm4_cbc_ctx' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
29: |
Integral type 'unsigned long' should not be converted to pointer to object type 'struct sm4_cbc_ctx *' |
MISRAC2012-RULE_11_4-a-4 |
|
29: |
Pointer to object type 'const struct crypto_cipher_ctx *' should not be converted to integral type 'unsigned long' |
MISRAC2012-RULE_11_4-a-4 |
|
29: |
Reserved name '__ptr' used |
MISRAC2012-RULE_21_2-a-2 |
|
34: |
Parameter 'key2' is not used in function 'sm4_cbc_init' |
MISRAC2012-RULE_2_7-a-4 |
|
35: |
Parameter 'key2_len' is not used in function 'sm4_cbc_init' |
MISRAC2012-RULE_2_7-a-4 |
|
40: |
The operands of a logical '||' in function 'sm4_cbc_init' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
40: |
The operands of a logical '||' in function 'sm4_cbc_init' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
41: |
Integer constant '0xFFFF0006' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
41: |
Provide only one exit point in 'sm4_cbc_init' function |
MISRAC2012-RULE_15_5-a-4 |
|
48: |
Unused function's "memcpy" return value |
MISRAC2012-RULE_17_7-a-2 |
|
50: |
Provide only one exit point in 'sm4_cbc_init' function |
MISRAC2012-RULE_15_5-a-4 |
|
54: |
Parameter 'last_block' is not used in function 'sm4_cbc_update' |
MISRAC2012-RULE_2_7-a-4 |
|
74: |
'free' function should not be used |
MISRAC2012-RULE_21_3-a-2 |
|
74: |
'free' function should not be used |
MISRAC2012-DIR_4_12-a-2 |
|
84: |
Unused function's "memcpy" return value |
MISRAC2012-RULE_17_7-a-2 |
|
87: |
Identifier 'sm4_cbc_ops' is being reused |
MISRAC2012-RULE_5_9-b-4 |
|
95: |
Identifiers given in declaration of 'crypto_sm4_cbc_alloc_ctx' function (file: 'crypto_impl.h', line: '221') are: 'ctx' not:
'ctx_ret'
|
MISRAC2012-RULE_8_3-b-2 |
|
99: |
'calloc' function should not be used |
MISRAC2012-RULE_21_3-a-2 |
|
99: |
'calloc' function should not be used |
MISRAC2012-DIR_4_12-a-2 |
|
99: |
Pointer to void type should not be converted to pointer to object type 'struct sm4_cbc_ctx *' |
MISRAC2012-RULE_11_5-a-4 |
|
100: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
101: |
Integer constant '0xFFFF000C' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
101: |
Provide only one exit point in 'crypto_sm4_cbc_alloc_ctx' function |
MISRAC2012-RULE_15_5-a-4 |
|
106: |
Provide only one exit point in 'crypto_sm4_cbc_alloc_ctx' function |
MISRAC2012-RULE_15_5-a-4 |
| /optee_os_MISRA/optee_os_ruchi393_core/crypto/sm4-ctr.c |
|
25: |
Pass parameter "ctx" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
27: |
The left hand operand of the logical operator '&&' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
27: |
The operands of a logical '&&' in function 'to_sm4_ctr_ctx' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
29: |
Integral type 'unsigned long' should not be converted to pointer to object type 'struct sm4_ctr_ctx *' |
MISRAC2012-RULE_11_4-a-4 |
|
29: |
Pointer to object type 'const struct crypto_cipher_ctx *' should not be converted to integral type 'unsigned long' |
MISRAC2012-RULE_11_4-a-4 |
|
29: |
Reserved name '__ptr' used |
MISRAC2012-RULE_21_2-a-2 |
|
33: |
Parameter 'mode' is not used in function 'sm4_ctr_init' |
MISRAC2012-RULE_2_7-a-4 |
|
35: |
Parameter 'key2' is not used in function 'sm4_ctr_init' |
MISRAC2012-RULE_2_7-a-4 |
|
36: |
Parameter 'key2_len' is not used in function 'sm4_ctr_init' |
MISRAC2012-RULE_2_7-a-4 |
|
41: |
The operands of a logical '||' in function 'sm4_ctr_init' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
41: |
The operands of a logical '||' in function 'sm4_ctr_init' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
42: |
Integer constant '0xFFFF0006' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
42: |
Provide only one exit point in 'sm4_ctr_init' function |
MISRAC2012-RULE_15_5-a-4 |
|
45: |
Unused function's "memcpy" return value |
MISRAC2012-RULE_17_7-a-2 |
|
47: |
Provide only one exit point in 'sm4_ctr_init' function |
MISRAC2012-RULE_15_5-a-4 |
|
51: |
Parameter 'last_block' is not used in function 'sm4_ctr_update' |
MISRAC2012-RULE_2_7-a-4 |
|
71: |
'free' function should not be used |
MISRAC2012-RULE_21_3-a-2 |
|
71: |
'free' function should not be used |
MISRAC2012-DIR_4_12-a-2 |
|
81: |
Unused function's "memcpy" return value |
MISRAC2012-RULE_17_7-a-2 |
|
84: |
Identifier 'sm4_ctr_ops' is being reused |
MISRAC2012-RULE_5_9-b-4 |
|
92: |
Identifiers given in declaration of 'crypto_sm4_ctr_alloc_ctx' function (file: 'crypto_impl.h', line: '227') are: 'ctx' not:
'ctx_ret'
|
MISRAC2012-RULE_8_3-b-2 |
|
96: |
'calloc' function should not be used |
MISRAC2012-RULE_21_3-a-2 |
|
96: |
'calloc' function should not be used |
MISRAC2012-DIR_4_12-a-2 |
|
96: |
Pointer to void type should not be converted to pointer to object type 'struct sm4_ctr_ctx *' |
MISRAC2012-RULE_11_5-a-4 |
|
97: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
98: |
Integer constant '0xFFFF000C' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
98: |
Provide only one exit point in 'crypto_sm4_ctr_alloc_ctx' function |
MISRAC2012-RULE_15_5-a-4 |
|
103: |
Provide only one exit point in 'crypto_sm4_ctr_alloc_ctx' function |
MISRAC2012-RULE_15_5-a-4 |
| /optee_os_MISRA/optee_os_ruchi393_core/crypto/sm4-ecb.c |
|
23: |
Pass parameter "ctx" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
25: |
The left hand operand of the logical operator '&&' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
25: |
The operands of a logical '&&' in function 'to_sm4_ecb_ctx' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
27: |
Integral type 'unsigned long' should not be converted to pointer to object type 'struct sm4_ecb_ctx *' |
MISRAC2012-RULE_11_4-a-4 |
|
27: |
Pointer to object type 'const struct crypto_cipher_ctx *' should not be converted to integral type 'unsigned long' |
MISRAC2012-RULE_11_4-a-4 |
|
27: |
Reserved name '__ptr' used |
MISRAC2012-RULE_21_2-a-2 |
|
32: |
Parameter 'key2' is not used in function 'sm4_ecb_init' |
MISRAC2012-RULE_2_7-a-4 |
|
33: |
Parameter 'key2_len' is not used in function 'sm4_ecb_init' |
MISRAC2012-RULE_2_7-a-4 |
|
34: |
Parameter 'iv' is not used in function 'sm4_ecb_init' |
MISRAC2012-RULE_2_7-a-4 |
|
35: |
Parameter 'iv_len' is not used in function 'sm4_ecb_init' |
MISRAC2012-RULE_2_7-a-4 |
|
40: |
Integer constant '0xFFFF0007' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
40: |
Provide only one exit point in 'sm4_ecb_init' function |
MISRAC2012-RULE_15_5-a-4 |
|
47: |
Provide only one exit point in 'sm4_ecb_init' function |
MISRAC2012-RULE_15_5-a-4 |
|
51: |
Parameter 'last_block' is not used in function 'sm4_ecb_update' |
MISRAC2012-RULE_2_7-a-4 |
|
70: |
'free' function should not be used |
MISRAC2012-RULE_21_3-a-2 |
|
70: |
'free' function should not be used |
MISRAC2012-DIR_4_12-a-2 |
|
82: |
Identifier 'sm4_ecb_ops' is being reused |
MISRAC2012-RULE_5_9-b-4 |
|
90: |
Identifiers given in declaration of 'crypto_sm4_ecb_alloc_ctx' function (file: 'crypto_impl.h', line: '215') are: 'ctx' not:
'ctx_ret'
|
MISRAC2012-RULE_8_3-b-2 |
|
94: |
'calloc' function should not be used |
MISRAC2012-RULE_21_3-a-2 |
|
94: |
'calloc' function should not be used |
MISRAC2012-DIR_4_12-a-2 |
|
94: |
Pointer to void type should not be converted to pointer to object type 'struct sm4_ecb_ctx *' |
MISRAC2012-RULE_11_5-a-4 |
|
95: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
96: |
Integer constant '0xFFFF000C' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
96: |
Provide only one exit point in 'crypto_sm4_ecb_alloc_ctx' function |
MISRAC2012-RULE_15_5-a-4 |
|
101: |
Provide only one exit point in 'crypto_sm4_ecb_alloc_ctx' function |
MISRAC2012-RULE_15_5-a-4 |
| /optee_os_MISRA/optee_os_ruchi393_core/crypto/sm4.c |
|
19: |
Do not define function-like macro: GET_UINT32_BE |
MISRAC2012-DIR_4_9-a-4 |
|
27: |
Do not define function-like macro: PUT_UINT32_BE |
MISRAC2012-DIR_4_9-a-4 |
|
35: |
Do not define function-like macro: SHL |
MISRAC2012-DIR_4_9-a-4 |
|
36: |
Do not define function-like macro: ROTL |
MISRAC2012-DIR_4_9-a-4 |
|
38: |
Do not define function-like macro: SWAP |
MISRAC2012-DIR_4_9-a-4 |
|
38: |
Each instance of parameter: 'a' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
38: |
Each instance of parameter: 'a' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
38: |
Each instance of parameter: 'b' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
38: |
Each instance of parameter: 'b' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
43: |
Global variable 'SboxTable' is being used only in a single function 'sm4Sbox' |
MISRAC2012-RULE_8_9-a-4 |
|
79: |
Global variable 'FK' is being used only in a single function 'sm4_setkey' |
MISRAC2012-RULE_8_9-a-4 |
|
80: |
Integer constant '0xa3b1bac6' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
80: |
Integer constant '0xb27022dc' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
84: |
Global variable 'CK' is being used only in a single function 'sm4_setkey' |
MISRAC2012-RULE_8_9-a-4 |
|
86: |
Integer constant '0x8c939aa1' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
86: |
Integer constant '0xa8afb6bd' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
86: |
Integer constant '0xc4cbd2d9' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
87: |
Integer constant '0xe0e7eef5' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
87: |
Integer constant '0xfc030a11' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
88: |
Integer constant '0x888f969d' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
88: |
Integer constant '0xa4abb2b9' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
89: |
Integer constant '0xc0c7ced5' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
89: |
Integer constant '0xdce3eaf1' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
89: |
Integer constant '0xf8ff060d' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
90: |
Integer constant '0x848b9299' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
91: |
Integer constant '0xa0a7aeb5' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
91: |
Integer constant '0xbcc3cad1' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
91: |
Integer constant '0xd8dfe6ed' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
91: |
Integer constant '0xf4fb0209' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
115: |
Integer constant '0xFFFFFFFF' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
115: |
Integer constant '0xFFFFFFFF' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
115: |
Shifting operation should be enclosed with if checking that RHS operand lies between zero and one less than the width in bits
of the underlying type of the LHS operand
|
MISRAC2012-RULE_12_2-a-2 |
|
115: |
Shifting operation should be enclosed with if checking that RHS operand lies between zero and one less than the width in bits
of the underlying type of the LHS operand
|
MISRAC2012-RULE_12_2-a-2 |
|
137: |
Integer constant '0xFFFFFFFF' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
137: |
Integer constant '0xFFFFFFFF' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
137: |
Shifting operation should be enclosed with if checking that RHS operand lies between zero and one less than the width in bits
of the underlying type of the LHS operand
|
MISRAC2012-RULE_12_2-a-2 |
|
169: |
Unused function's "memset" return value |
MISRAC2012-RULE_17_7-a-2 |
|
176: |
'for' statement in a function 'sm4_one_round' should be followed by a block |
MISRAC2012-RULE_15_6-a-2 |
| +
|
200: |
Value of "t" is never used |
MISRAC2012-RULE_2_2-b-2 |
| |
|
Point where value is declared
Point where value is declared
sm4.c (200): SWAP(ctx->sk[i], ctx->sk[31 - i]);
Point(s) where value is overwritten
Point(s) where value is overwritten
sm4.c (200): SWAP(ctx->sk[i], ctx->sk[31 - i]); |
|
|
203: |
Pass parameter "ctx" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
204: |
Pass parameter "output" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
206: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
210: |
Parameter 'input' is modified in function 'sm4_crypt_ecb' |
MISRAC2012-RULE_17_8-a-4 |
|
210: |
The variable 'input' used as the left hand side operand of the '+=' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
211: |
Parameter 'output' is modified in function 'sm4_crypt_ecb' |
MISRAC2012-RULE_17_8-a-4 |
|
211: |
The variable 'output' used as the left hand side operand of the '+=' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
212: |
Parameter 'length' is modified in function 'sm4_crypt_ecb' |
MISRAC2012-RULE_17_8-a-4 |
|
216: |
Pass parameter "ctx" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
222: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
226: |
'for' statement in a function 'sm4_crypt_cbc' should be followed by a block |
MISRAC2012-RULE_15_6-a-2 |
|
229: |
Unused function's "memcpy" return value |
MISRAC2012-RULE_17_7-a-2 |
|
230: |
Parameter 'input' is modified in function 'sm4_crypt_cbc' |
MISRAC2012-RULE_17_8-a-4 |
|
230: |
The variable 'input' used as the left hand side operand of the '+=' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
231: |
Parameter 'output' is modified in function 'sm4_crypt_cbc' |
MISRAC2012-RULE_17_8-a-4 |
|
231: |
The variable 'output' used as the left hand side operand of the '+=' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
232: |
Parameter 'length' is modified in function 'sm4_crypt_cbc' |
MISRAC2012-RULE_17_8-a-4 |
|
237: |
Unused function's "memcpy" return value |
MISRAC2012-RULE_17_7-a-2 |
|
239: |
'for' statement in a function 'sm4_crypt_cbc' should be followed by a block |
MISRAC2012-RULE_15_6-a-2 |
|
241: |
Unused function's "memcpy" return value |
MISRAC2012-RULE_17_7-a-2 |
|
242: |
Parameter 'input' is modified in function 'sm4_crypt_cbc' |
MISRAC2012-RULE_17_8-a-4 |
|
242: |
The variable 'input' used as the left hand side operand of the '+=' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
243: |
Parameter 'output' is modified in function 'sm4_crypt_cbc' |
MISRAC2012-RULE_17_8-a-4 |
|
243: |
The variable 'output' used as the left hand side operand of the '+=' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
244: |
Parameter 'length' is modified in function 'sm4_crypt_cbc' |
MISRAC2012-RULE_17_8-a-4 |
|
249: |
Pass parameter "ctx" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
255: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
258: |
Unused function's "memcpy" return value |
MISRAC2012-RULE_17_7-a-2 |
|
260: |
'for' statement in a function 'sm4_crypt_ctr' should be followed by a block |
MISRAC2012-RULE_15_6-a-2 |
|
262: |
Unused function's "memcpy" return value |
MISRAC2012-RULE_17_7-a-2 |
|
263: |
'for' statement in a function 'sm4_crypt_ctr' should be followed by a block |
MISRAC2012-RULE_15_6-a-2 |
|
264: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
266: |
Parameter 'input' is modified in function 'sm4_crypt_ctr' |
MISRAC2012-RULE_17_8-a-4 |
|
266: |
The variable 'input' used as the left hand side operand of the '+=' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
267: |
Parameter 'output' is modified in function 'sm4_crypt_ctr' |
MISRAC2012-RULE_17_8-a-4 |
|
267: |
The variable 'output' used as the left hand side operand of the '+=' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
268: |
Parameter 'length' is modified in function 'sm4_crypt_ctr' |
MISRAC2012-RULE_17_8-a-4 |
| /optee_os_MISRA/optee_os_ruchi393_core/include/bench.h |
|
51: |
Flexible array member 'cpu_buf' is declared |
MISRAC2012-RULE_18_7-a-2 |
| /optee_os_MISRA/optee_os_ruchi393_core/include/console.h |
|
14: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
40: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
| /optee_os_MISRA/optee_os_ruchi393_core/include/crypto/crypto.h |
|
23: |
Do not use reserved identifiers : __CRYPTO_CRYPTO_H |
MISRAC2012-RULE_21_1-a-2 |
|
27: |
The 'crypto_init' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
85: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
97: |
The 'crypto_bignum_allocate' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
98: |
The 'crypto_bignum_bin2bn' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
100: |
The 'crypto_bignum_num_bytes' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
101: |
The 'crypto_bignum_num_bits' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
102: |
The 'crypto_bignum_bn2bin' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
103: |
The 'crypto_bignum_copy' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
104: |
The 'crypto_bignum_free' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
105: |
The 'crypto_bignum_clear' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
108: |
The 'crypto_bignum_compare' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
112: |
Consider hiding the implementation of the structure 'rsa_keypair' in a translation unit 'aes-cts.c' |
MISRAC2012-DIR_4_8-a-4 |
|
112: |
Consider hiding the implementation of the structure 'rsa_keypair' in a translation unit 'aes-gcm-ghash-tbl.c' |
MISRAC2012-DIR_4_8-a-4 |
|
112: |
Consider hiding the implementation of the structure 'rsa_keypair' in a translation unit 'aes-gcm-sw.c' |
MISRAC2012-DIR_4_8-a-4 |
|
112: |
Consider hiding the implementation of the structure 'rsa_keypair' in a translation unit 'aes-gcm.c' |
MISRAC2012-DIR_4_8-a-4 |
|
112: |
Consider hiding the implementation of the structure 'rsa_keypair' in a translation unit 'boot.c' |
MISRAC2012-DIR_4_8-a-4 |
|
112: |
Consider hiding the implementation of the structure 'rsa_keypair' in a translation unit 'cbc-mac.c' |
MISRAC2012-DIR_4_8-a-4 |
|
112: |
Consider hiding the implementation of the structure 'rsa_keypair' in a translation unit 'crypto.c' |
MISRAC2012-DIR_4_8-a-4 |
|
112: |
Consider hiding the implementation of the structure 'rsa_keypair' in a translation unit 'entry_std.c' |
MISRAC2012-DIR_4_8-a-4 |
|
112: |
Consider hiding the implementation of the structure 'rsa_keypair' in a translation unit 'huk_subkey.c' |
MISRAC2012-DIR_4_8-a-4 |
|
112: |
Consider hiding the implementation of the structure 'rsa_keypair' in a translation unit 'ldelf_syscalls.c' |
MISRAC2012-DIR_4_8-a-4 |
|
112: |
Consider hiding the implementation of the structure 'rsa_keypair' in a translation unit 'ree_fs_ta.c' |
MISRAC2012-DIR_4_8-a-4 |
|
112: |
Consider hiding the implementation of the structure 'rsa_keypair' in a translation unit 'rng_fortuna.c' |
MISRAC2012-DIR_4_8-a-4 |
|
112: |
Consider hiding the implementation of the structure 'rsa_keypair' in a translation unit 'signed_hdr.c' |
MISRAC2012-DIR_4_8-a-4 |
|
112: |
Consider hiding the implementation of the structure 'rsa_keypair' in a translation unit 'sm2-kdf.c' |
MISRAC2012-DIR_4_8-a-4 |
|
112: |
Consider hiding the implementation of the structure 'rsa_keypair' in a translation unit 'sm3-hash.c' |
MISRAC2012-DIR_4_8-a-4 |
|
112: |
Consider hiding the implementation of the structure 'rsa_keypair' in a translation unit 'sm3-hmac.c' |
MISRAC2012-DIR_4_8-a-4 |
|
112: |
Consider hiding the implementation of the structure 'rsa_keypair' in a translation unit 'sm4-cbc.c' |
MISRAC2012-DIR_4_8-a-4 |
|
112: |
Consider hiding the implementation of the structure 'rsa_keypair' in a translation unit 'sm4-ctr.c' |
MISRAC2012-DIR_4_8-a-4 |
|
112: |
Consider hiding the implementation of the structure 'rsa_keypair' in a translation unit 'sm4-ecb.c' |
MISRAC2012-DIR_4_8-a-4 |
|
112: |
Consider hiding the implementation of the structure 'rsa_keypair' in a translation unit 'tee_time_arm_cntpct.c' |
MISRAC2012-DIR_4_8-a-4 |
|
112: |
Consider hiding the implementation of the structure 'rsa_keypair' in a translation unit 'thread_optee_smc.c' |
MISRAC2012-DIR_4_8-a-4 |
|
112: |
Consider hiding the implementation of the structure 'rsa_keypair' in a translation unit 'vendor_props.c' |
MISRAC2012-DIR_4_8-a-4 |
|
125: |
Consider hiding the implementation of the structure 'rsa_public_key' in a translation unit 'aes-cts.c' |
MISRAC2012-DIR_4_8-a-4 |
|
125: |
Consider hiding the implementation of the structure 'rsa_public_key' in a translation unit 'aes-gcm-ghash-tbl.c' |
MISRAC2012-DIR_4_8-a-4 |
|
125: |
Consider hiding the implementation of the structure 'rsa_public_key' in a translation unit 'aes-gcm-sw.c' |
MISRAC2012-DIR_4_8-a-4 |
|
125: |
Consider hiding the implementation of the structure 'rsa_public_key' in a translation unit 'aes-gcm.c' |
MISRAC2012-DIR_4_8-a-4 |
|
125: |
Consider hiding the implementation of the structure 'rsa_public_key' in a translation unit 'boot.c' |
MISRAC2012-DIR_4_8-a-4 |
|
125: |
Consider hiding the implementation of the structure 'rsa_public_key' in a translation unit 'cbc-mac.c' |
MISRAC2012-DIR_4_8-a-4 |
|
125: |
Consider hiding the implementation of the structure 'rsa_public_key' in a translation unit 'crypto.c' |
MISRAC2012-DIR_4_8-a-4 |
|
125: |
Consider hiding the implementation of the structure 'rsa_public_key' in a translation unit 'entry_std.c' |
MISRAC2012-DIR_4_8-a-4 |
|
125: |
Consider hiding the implementation of the structure 'rsa_public_key' in a translation unit 'huk_subkey.c' |
MISRAC2012-DIR_4_8-a-4 |
|
125: |
Consider hiding the implementation of the structure 'rsa_public_key' in a translation unit 'ldelf_syscalls.c' |
MISRAC2012-DIR_4_8-a-4 |
|
125: |
Consider hiding the implementation of the structure 'rsa_public_key' in a translation unit 'ree_fs_ta.c' |
MISRAC2012-DIR_4_8-a-4 |
|
125: |
Consider hiding the implementation of the structure 'rsa_public_key' in a translation unit 'rng_fortuna.c' |
MISRAC2012-DIR_4_8-a-4 |
|
125: |
Consider hiding the implementation of the structure 'rsa_public_key' in a translation unit 'sm2-kdf.c' |
MISRAC2012-DIR_4_8-a-4 |
|
125: |
Consider hiding the implementation of the structure 'rsa_public_key' in a translation unit 'sm3-hash.c' |
MISRAC2012-DIR_4_8-a-4 |
|
125: |
Consider hiding the implementation of the structure 'rsa_public_key' in a translation unit 'sm3-hmac.c' |
MISRAC2012-DIR_4_8-a-4 |
|
125: |
Consider hiding the implementation of the structure 'rsa_public_key' in a translation unit 'sm4-cbc.c' |
MISRAC2012-DIR_4_8-a-4 |
|
125: |
Consider hiding the implementation of the structure 'rsa_public_key' in a translation unit 'sm4-ctr.c' |
MISRAC2012-DIR_4_8-a-4 |
|
125: |
Consider hiding the implementation of the structure 'rsa_public_key' in a translation unit 'sm4-ecb.c' |
MISRAC2012-DIR_4_8-a-4 |
|
125: |
Consider hiding the implementation of the structure 'rsa_public_key' in a translation unit 'tee_time_arm_cntpct.c' |
MISRAC2012-DIR_4_8-a-4 |
|
125: |
Consider hiding the implementation of the structure 'rsa_public_key' in a translation unit 'thread_optee_smc.c' |
MISRAC2012-DIR_4_8-a-4 |
|
125: |
Consider hiding the implementation of the structure 'rsa_public_key' in a translation unit 'vendor_props.c' |
MISRAC2012-DIR_4_8-a-4 |
|
130: |
Consider hiding the implementation of the structure 'dsa_keypair' in a translation unit 'aes-cts.c' |
MISRAC2012-DIR_4_8-a-4 |
|
130: |
Consider hiding the implementation of the structure 'dsa_keypair' in a translation unit 'aes-gcm-ghash-tbl.c' |
MISRAC2012-DIR_4_8-a-4 |
|
130: |
Consider hiding the implementation of the structure 'dsa_keypair' in a translation unit 'aes-gcm-sw.c' |
MISRAC2012-DIR_4_8-a-4 |
|
130: |
Consider hiding the implementation of the structure 'dsa_keypair' in a translation unit 'aes-gcm.c' |
MISRAC2012-DIR_4_8-a-4 |
|
130: |
Consider hiding the implementation of the structure 'dsa_keypair' in a translation unit 'boot.c' |
MISRAC2012-DIR_4_8-a-4 |
|
130: |
Consider hiding the implementation of the structure 'dsa_keypair' in a translation unit 'cbc-mac.c' |
MISRAC2012-DIR_4_8-a-4 |
|
130: |
Consider hiding the implementation of the structure 'dsa_keypair' in a translation unit 'crypto.c' |
MISRAC2012-DIR_4_8-a-4 |
|
130: |
Consider hiding the implementation of the structure 'dsa_keypair' in a translation unit 'entry_std.c' |
MISRAC2012-DIR_4_8-a-4 |
|
130: |
Consider hiding the implementation of the structure 'dsa_keypair' in a translation unit 'huk_subkey.c' |
MISRAC2012-DIR_4_8-a-4 |
|
130: |
Consider hiding the implementation of the structure 'dsa_keypair' in a translation unit 'ldelf_syscalls.c' |
MISRAC2012-DIR_4_8-a-4 |
|
130: |
Consider hiding the implementation of the structure 'dsa_keypair' in a translation unit 'ree_fs_ta.c' |
MISRAC2012-DIR_4_8-a-4 |
|
130: |
Consider hiding the implementation of the structure 'dsa_keypair' in a translation unit 'rng_fortuna.c' |
MISRAC2012-DIR_4_8-a-4 |
|
130: |
Consider hiding the implementation of the structure 'dsa_keypair' in a translation unit 'signed_hdr.c' |
MISRAC2012-DIR_4_8-a-4 |
|
130: |
Consider hiding the implementation of the structure 'dsa_keypair' in a translation unit 'sm2-kdf.c' |
MISRAC2012-DIR_4_8-a-4 |
|
130: |
Consider hiding the implementation of the structure 'dsa_keypair' in a translation unit 'sm3-hash.c' |
MISRAC2012-DIR_4_8-a-4 |
|
130: |
Consider hiding the implementation of the structure 'dsa_keypair' in a translation unit 'sm3-hmac.c' |
MISRAC2012-DIR_4_8-a-4 |
|
130: |
Consider hiding the implementation of the structure 'dsa_keypair' in a translation unit 'sm4-cbc.c' |
MISRAC2012-DIR_4_8-a-4 |
|
130: |
Consider hiding the implementation of the structure 'dsa_keypair' in a translation unit 'sm4-ctr.c' |
MISRAC2012-DIR_4_8-a-4 |
|
130: |
Consider hiding the implementation of the structure 'dsa_keypair' in a translation unit 'sm4-ecb.c' |
MISRAC2012-DIR_4_8-a-4 |
|
130: |
Consider hiding the implementation of the structure 'dsa_keypair' in a translation unit 'tee_time_arm_cntpct.c' |
MISRAC2012-DIR_4_8-a-4 |
|
130: |
Consider hiding the implementation of the structure 'dsa_keypair' in a translation unit 'thread_optee_smc.c' |
MISRAC2012-DIR_4_8-a-4 |
|
130: |
Consider hiding the implementation of the structure 'dsa_keypair' in a translation unit 'vendor_props.c' |
MISRAC2012-DIR_4_8-a-4 |
|
138: |
Consider hiding the implementation of the structure 'dsa_public_key' in a translation unit 'aes-cts.c' |
MISRAC2012-DIR_4_8-a-4 |
|
138: |
Consider hiding the implementation of the structure 'dsa_public_key' in a translation unit 'aes-gcm-ghash-tbl.c' |
MISRAC2012-DIR_4_8-a-4 |
|
138: |
Consider hiding the implementation of the structure 'dsa_public_key' in a translation unit 'aes-gcm-sw.c' |
MISRAC2012-DIR_4_8-a-4 |
|
138: |
Consider hiding the implementation of the structure 'dsa_public_key' in a translation unit 'aes-gcm.c' |
MISRAC2012-DIR_4_8-a-4 |
|
138: |
Consider hiding the implementation of the structure 'dsa_public_key' in a translation unit 'boot.c' |
MISRAC2012-DIR_4_8-a-4 |
|
138: |
Consider hiding the implementation of the structure 'dsa_public_key' in a translation unit 'cbc-mac.c' |
MISRAC2012-DIR_4_8-a-4 |
|
138: |
Consider hiding the implementation of the structure 'dsa_public_key' in a translation unit 'crypto.c' |
MISRAC2012-DIR_4_8-a-4 |
|
138: |
Consider hiding the implementation of the structure 'dsa_public_key' in a translation unit 'entry_std.c' |
MISRAC2012-DIR_4_8-a-4 |
|
138: |
Consider hiding the implementation of the structure 'dsa_public_key' in a translation unit 'huk_subkey.c' |
MISRAC2012-DIR_4_8-a-4 |
|
138: |
Consider hiding the implementation of the structure 'dsa_public_key' in a translation unit 'ldelf_syscalls.c' |
MISRAC2012-DIR_4_8-a-4 |
|
138: |
Consider hiding the implementation of the structure 'dsa_public_key' in a translation unit 'ree_fs_ta.c' |
MISRAC2012-DIR_4_8-a-4 |
|
138: |
Consider hiding the implementation of the structure 'dsa_public_key' in a translation unit 'rng_fortuna.c' |
MISRAC2012-DIR_4_8-a-4 |
|
138: |
Consider hiding the implementation of the structure 'dsa_public_key' in a translation unit 'signed_hdr.c' |
MISRAC2012-DIR_4_8-a-4 |
|
138: |
Consider hiding the implementation of the structure 'dsa_public_key' in a translation unit 'sm2-kdf.c' |
MISRAC2012-DIR_4_8-a-4 |
|
138: |
Consider hiding the implementation of the structure 'dsa_public_key' in a translation unit 'sm3-hash.c' |
MISRAC2012-DIR_4_8-a-4 |
|
138: |
Consider hiding the implementation of the structure 'dsa_public_key' in a translation unit 'sm3-hmac.c' |
MISRAC2012-DIR_4_8-a-4 |
|
138: |
Consider hiding the implementation of the structure 'dsa_public_key' in a translation unit 'sm4-cbc.c' |
MISRAC2012-DIR_4_8-a-4 |
|
138: |
Consider hiding the implementation of the structure 'dsa_public_key' in a translation unit 'sm4-ctr.c' |
MISRAC2012-DIR_4_8-a-4 |
|
138: |
Consider hiding the implementation of the structure 'dsa_public_key' in a translation unit 'sm4-ecb.c' |
MISRAC2012-DIR_4_8-a-4 |
|
138: |
Consider hiding the implementation of the structure 'dsa_public_key' in a translation unit 'tee_time_arm_cntpct.c' |
MISRAC2012-DIR_4_8-a-4 |
|
138: |
Consider hiding the implementation of the structure 'dsa_public_key' in a translation unit 'thread_optee_smc.c' |
MISRAC2012-DIR_4_8-a-4 |
|
138: |
Consider hiding the implementation of the structure 'dsa_public_key' in a translation unit 'vendor_props.c' |
MISRAC2012-DIR_4_8-a-4 |
|
145: |
Consider hiding the implementation of the structure 'dh_keypair' in a translation unit 'aes-cts.c' |
MISRAC2012-DIR_4_8-a-4 |
|
145: |
Consider hiding the implementation of the structure 'dh_keypair' in a translation unit 'aes-gcm-ghash-tbl.c' |
MISRAC2012-DIR_4_8-a-4 |
|
145: |
Consider hiding the implementation of the structure 'dh_keypair' in a translation unit 'aes-gcm-sw.c' |
MISRAC2012-DIR_4_8-a-4 |
|
145: |
Consider hiding the implementation of the structure 'dh_keypair' in a translation unit 'aes-gcm.c' |
MISRAC2012-DIR_4_8-a-4 |
|
145: |
Consider hiding the implementation of the structure 'dh_keypair' in a translation unit 'boot.c' |
MISRAC2012-DIR_4_8-a-4 |
|
145: |
Consider hiding the implementation of the structure 'dh_keypair' in a translation unit 'cbc-mac.c' |
MISRAC2012-DIR_4_8-a-4 |
|
145: |
Consider hiding the implementation of the structure 'dh_keypair' in a translation unit 'crypto.c' |
MISRAC2012-DIR_4_8-a-4 |
|
145: |
Consider hiding the implementation of the structure 'dh_keypair' in a translation unit 'entry_std.c' |
MISRAC2012-DIR_4_8-a-4 |
|
145: |
Consider hiding the implementation of the structure 'dh_keypair' in a translation unit 'huk_subkey.c' |
MISRAC2012-DIR_4_8-a-4 |
|
145: |
Consider hiding the implementation of the structure 'dh_keypair' in a translation unit 'ldelf_syscalls.c' |
MISRAC2012-DIR_4_8-a-4 |
|
145: |
Consider hiding the implementation of the structure 'dh_keypair' in a translation unit 'ree_fs_ta.c' |
MISRAC2012-DIR_4_8-a-4 |
|
145: |
Consider hiding the implementation of the structure 'dh_keypair' in a translation unit 'rng_fortuna.c' |
MISRAC2012-DIR_4_8-a-4 |
|
145: |
Consider hiding the implementation of the structure 'dh_keypair' in a translation unit 'signed_hdr.c' |
MISRAC2012-DIR_4_8-a-4 |
|
145: |
Consider hiding the implementation of the structure 'dh_keypair' in a translation unit 'sm2-kdf.c' |
MISRAC2012-DIR_4_8-a-4 |
|
145: |
Consider hiding the implementation of the structure 'dh_keypair' in a translation unit 'sm3-hash.c' |
MISRAC2012-DIR_4_8-a-4 |
|
145: |
Consider hiding the implementation of the structure 'dh_keypair' in a translation unit 'sm3-hmac.c' |
MISRAC2012-DIR_4_8-a-4 |
|
145: |
Consider hiding the implementation of the structure 'dh_keypair' in a translation unit 'sm4-cbc.c' |
MISRAC2012-DIR_4_8-a-4 |
|
145: |
Consider hiding the implementation of the structure 'dh_keypair' in a translation unit 'sm4-ctr.c' |
MISRAC2012-DIR_4_8-a-4 |
|
145: |
Consider hiding the implementation of the structure 'dh_keypair' in a translation unit 'sm4-ecb.c' |
MISRAC2012-DIR_4_8-a-4 |
|
145: |
Consider hiding the implementation of the structure 'dh_keypair' in a translation unit 'tee_time_arm_cntpct.c' |
MISRAC2012-DIR_4_8-a-4 |
|
145: |
Consider hiding the implementation of the structure 'dh_keypair' in a translation unit 'thread_optee_smc.c' |
MISRAC2012-DIR_4_8-a-4 |
|
145: |
Consider hiding the implementation of the structure 'dh_keypair' in a translation unit 'vendor_props.c' |
MISRAC2012-DIR_4_8-a-4 |
|
159: |
Consider hiding the implementation of the structure 'ecc_public_key' in a translation unit 'aes-cts.c' |
MISRAC2012-DIR_4_8-a-4 |
|
159: |
Consider hiding the implementation of the structure 'ecc_public_key' in a translation unit 'aes-gcm-ghash-tbl.c' |
MISRAC2012-DIR_4_8-a-4 |
|
159: |
Consider hiding the implementation of the structure 'ecc_public_key' in a translation unit 'aes-gcm-sw.c' |
MISRAC2012-DIR_4_8-a-4 |
|
159: |
Consider hiding the implementation of the structure 'ecc_public_key' in a translation unit 'aes-gcm.c' |
MISRAC2012-DIR_4_8-a-4 |
|
159: |
Consider hiding the implementation of the structure 'ecc_public_key' in a translation unit 'boot.c' |
MISRAC2012-DIR_4_8-a-4 |
|
159: |
Consider hiding the implementation of the structure 'ecc_public_key' in a translation unit 'cbc-mac.c' |
MISRAC2012-DIR_4_8-a-4 |
|
159: |
Consider hiding the implementation of the structure 'ecc_public_key' in a translation unit 'entry_std.c' |
MISRAC2012-DIR_4_8-a-4 |
|
159: |
Consider hiding the implementation of the structure 'ecc_public_key' in a translation unit 'huk_subkey.c' |
MISRAC2012-DIR_4_8-a-4 |
|
159: |
Consider hiding the implementation of the structure 'ecc_public_key' in a translation unit 'ldelf_syscalls.c' |
MISRAC2012-DIR_4_8-a-4 |
|
159: |
Consider hiding the implementation of the structure 'ecc_public_key' in a translation unit 'ree_fs_ta.c' |
MISRAC2012-DIR_4_8-a-4 |
|
159: |
Consider hiding the implementation of the structure 'ecc_public_key' in a translation unit 'rng_fortuna.c' |
MISRAC2012-DIR_4_8-a-4 |
|
159: |
Consider hiding the implementation of the structure 'ecc_public_key' in a translation unit 'signed_hdr.c' |
MISRAC2012-DIR_4_8-a-4 |
|
159: |
Consider hiding the implementation of the structure 'ecc_public_key' in a translation unit 'sm2-kdf.c' |
MISRAC2012-DIR_4_8-a-4 |
|
159: |
Consider hiding the implementation of the structure 'ecc_public_key' in a translation unit 'sm3-hash.c' |
MISRAC2012-DIR_4_8-a-4 |
|
159: |
Consider hiding the implementation of the structure 'ecc_public_key' in a translation unit 'sm3-hmac.c' |
MISRAC2012-DIR_4_8-a-4 |
|
159: |
Consider hiding the implementation of the structure 'ecc_public_key' in a translation unit 'sm4-cbc.c' |
MISRAC2012-DIR_4_8-a-4 |
|
159: |
Consider hiding the implementation of the structure 'ecc_public_key' in a translation unit 'sm4-ctr.c' |
MISRAC2012-DIR_4_8-a-4 |
|
159: |
Consider hiding the implementation of the structure 'ecc_public_key' in a translation unit 'sm4-ecb.c' |
MISRAC2012-DIR_4_8-a-4 |
|
159: |
Consider hiding the implementation of the structure 'ecc_public_key' in a translation unit 'tee_time_arm_cntpct.c' |
MISRAC2012-DIR_4_8-a-4 |
|
159: |
Consider hiding the implementation of the structure 'ecc_public_key' in a translation unit 'thread_optee_smc.c' |
MISRAC2012-DIR_4_8-a-4 |
|
159: |
Consider hiding the implementation of the structure 'ecc_public_key' in a translation unit 'vendor_props.c' |
MISRAC2012-DIR_4_8-a-4 |
|
166: |
Consider hiding the implementation of the structure 'ecc_keypair' in a translation unit 'aes-cts.c' |
MISRAC2012-DIR_4_8-a-4 |
|
166: |
Consider hiding the implementation of the structure 'ecc_keypair' in a translation unit 'aes-gcm-ghash-tbl.c' |
MISRAC2012-DIR_4_8-a-4 |
|
166: |
Consider hiding the implementation of the structure 'ecc_keypair' in a translation unit 'aes-gcm-sw.c' |
MISRAC2012-DIR_4_8-a-4 |
|
166: |
Consider hiding the implementation of the structure 'ecc_keypair' in a translation unit 'aes-gcm.c' |
MISRAC2012-DIR_4_8-a-4 |
|
166: |
Consider hiding the implementation of the structure 'ecc_keypair' in a translation unit 'boot.c' |
MISRAC2012-DIR_4_8-a-4 |
|
166: |
Consider hiding the implementation of the structure 'ecc_keypair' in a translation unit 'cbc-mac.c' |
MISRAC2012-DIR_4_8-a-4 |
|
166: |
Consider hiding the implementation of the structure 'ecc_keypair' in a translation unit 'entry_std.c' |
MISRAC2012-DIR_4_8-a-4 |
|
166: |
Consider hiding the implementation of the structure 'ecc_keypair' in a translation unit 'huk_subkey.c' |
MISRAC2012-DIR_4_8-a-4 |
|
166: |
Consider hiding the implementation of the structure 'ecc_keypair' in a translation unit 'ldelf_syscalls.c' |
MISRAC2012-DIR_4_8-a-4 |
|
166: |
Consider hiding the implementation of the structure 'ecc_keypair' in a translation unit 'ree_fs_ta.c' |
MISRAC2012-DIR_4_8-a-4 |
|
166: |
Consider hiding the implementation of the structure 'ecc_keypair' in a translation unit 'rng_fortuna.c' |
MISRAC2012-DIR_4_8-a-4 |
|
166: |
Consider hiding the implementation of the structure 'ecc_keypair' in a translation unit 'signed_hdr.c' |
MISRAC2012-DIR_4_8-a-4 |
|
166: |
Consider hiding the implementation of the structure 'ecc_keypair' in a translation unit 'sm2-kdf.c' |
MISRAC2012-DIR_4_8-a-4 |
|
166: |
Consider hiding the implementation of the structure 'ecc_keypair' in a translation unit 'sm3-hash.c' |
MISRAC2012-DIR_4_8-a-4 |
|
166: |
Consider hiding the implementation of the structure 'ecc_keypair' in a translation unit 'sm3-hmac.c' |
MISRAC2012-DIR_4_8-a-4 |
|
166: |
Consider hiding the implementation of the structure 'ecc_keypair' in a translation unit 'sm4-cbc.c' |
MISRAC2012-DIR_4_8-a-4 |
|
166: |
Consider hiding the implementation of the structure 'ecc_keypair' in a translation unit 'sm4-ctr.c' |
MISRAC2012-DIR_4_8-a-4 |
|
166: |
Consider hiding the implementation of the structure 'ecc_keypair' in a translation unit 'sm4-ecb.c' |
MISRAC2012-DIR_4_8-a-4 |
|
166: |
Consider hiding the implementation of the structure 'ecc_keypair' in a translation unit 'tee_time_arm_cntpct.c' |
MISRAC2012-DIR_4_8-a-4 |
|
166: |
Consider hiding the implementation of the structure 'ecc_keypair' in a translation unit 'thread_optee_smc.c' |
MISRAC2012-DIR_4_8-a-4 |
|
166: |
Consider hiding the implementation of the structure 'ecc_keypair' in a translation unit 'vendor_props.c' |
MISRAC2012-DIR_4_8-a-4 |
|
179: |
The 'crypto_acipher_alloc_rsa_keypair' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
181: |
The 'crypto_acipher_alloc_rsa_public_key' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
183: |
The 'crypto_acipher_free_rsa_public_key' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
184: |
The 'crypto_acipher_free_rsa_keypair' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
185: |
The 'crypto_acipher_alloc_dsa_keypair' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
187: |
The 'crypto_acipher_alloc_dsa_public_key' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
189: |
The 'crypto_acipher_alloc_dh_keypair' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
202: |
The 'crypto_acipher_gen_rsa_key' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
203: |
The 'crypto_acipher_gen_dsa_key' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
204: |
The 'crypto_acipher_gen_dh_key' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
208: |
The 'crypto_acipher_dh_shared_secret' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
212: |
The 'crypto_acipher_rsanopad_decrypt' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
215: |
The 'crypto_acipher_rsanopad_encrypt' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
218: |
The 'crypto_acipher_rsaes_decrypt' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
222: |
The 'crypto_acipher_rsaes_encrypt' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
228: |
The 'crypto_acipher_rsassa_sign' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
229: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
232: |
The 'crypto_acipher_rsassa_verify' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
234: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
237: |
The 'crypto_acipher_dsa_sign' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
240: |
The 'crypto_acipher_dsa_verify' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
252: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
260: |
Consider hiding the implementation of the structure 'sm2_kep_parms' in a translation unit 'aes-cts.c' |
MISRAC2012-DIR_4_8-a-4 |
|
260: |
Consider hiding the implementation of the structure 'sm2_kep_parms' in a translation unit 'aes-gcm-ghash-tbl.c' |
MISRAC2012-DIR_4_8-a-4 |
|
260: |
Consider hiding the implementation of the structure 'sm2_kep_parms' in a translation unit 'aes-gcm-sw.c' |
MISRAC2012-DIR_4_8-a-4 |
|
260: |
Consider hiding the implementation of the structure 'sm2_kep_parms' in a translation unit 'aes-gcm.c' |
MISRAC2012-DIR_4_8-a-4 |
|
260: |
Consider hiding the implementation of the structure 'sm2_kep_parms' in a translation unit 'boot.c' |
MISRAC2012-DIR_4_8-a-4 |
|
260: |
Consider hiding the implementation of the structure 'sm2_kep_parms' in a translation unit 'cbc-mac.c' |
MISRAC2012-DIR_4_8-a-4 |
|
260: |
Consider hiding the implementation of the structure 'sm2_kep_parms' in a translation unit 'crypto.c' |
MISRAC2012-DIR_4_8-a-4 |
|
260: |
Consider hiding the implementation of the structure 'sm2_kep_parms' in a translation unit 'entry_std.c' |
MISRAC2012-DIR_4_8-a-4 |
|
260: |
Consider hiding the implementation of the structure 'sm2_kep_parms' in a translation unit 'huk_subkey.c' |
MISRAC2012-DIR_4_8-a-4 |
|
260: |
Consider hiding the implementation of the structure 'sm2_kep_parms' in a translation unit 'ldelf_syscalls.c' |
MISRAC2012-DIR_4_8-a-4 |
|
260: |
Consider hiding the implementation of the structure 'sm2_kep_parms' in a translation unit 'ree_fs_ta.c' |
MISRAC2012-DIR_4_8-a-4 |
|
260: |
Consider hiding the implementation of the structure 'sm2_kep_parms' in a translation unit 'rng_fortuna.c' |
MISRAC2012-DIR_4_8-a-4 |
|
260: |
Consider hiding the implementation of the structure 'sm2_kep_parms' in a translation unit 'signed_hdr.c' |
MISRAC2012-DIR_4_8-a-4 |
|
260: |
Consider hiding the implementation of the structure 'sm2_kep_parms' in a translation unit 'sm2-kdf.c' |
MISRAC2012-DIR_4_8-a-4 |
|
260: |
Consider hiding the implementation of the structure 'sm2_kep_parms' in a translation unit 'sm3-hash.c' |
MISRAC2012-DIR_4_8-a-4 |
|
260: |
Consider hiding the implementation of the structure 'sm2_kep_parms' in a translation unit 'sm3-hmac.c' |
MISRAC2012-DIR_4_8-a-4 |
|
260: |
Consider hiding the implementation of the structure 'sm2_kep_parms' in a translation unit 'sm4-cbc.c' |
MISRAC2012-DIR_4_8-a-4 |
|
260: |
Consider hiding the implementation of the structure 'sm2_kep_parms' in a translation unit 'sm4-ctr.c' |
MISRAC2012-DIR_4_8-a-4 |
|
260: |
Consider hiding the implementation of the structure 'sm2_kep_parms' in a translation unit 'sm4-ecb.c' |
MISRAC2012-DIR_4_8-a-4 |
|
260: |
Consider hiding the implementation of the structure 'sm2_kep_parms' in a translation unit 'tee_time_arm_cntpct.c' |
MISRAC2012-DIR_4_8-a-4 |
|
260: |
Consider hiding the implementation of the structure 'sm2_kep_parms' in a translation unit 'thread_optee_smc.c' |
MISRAC2012-DIR_4_8-a-4 |
|
260: |
Consider hiding the implementation of the structure 'sm2_kep_parms' in a translation unit 'vendor_props.c' |
MISRAC2012-DIR_4_8-a-4 |
|
274: |
The 'crypto_acipher_sm2_kep_derive' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
287: |
The 'hash_sha256_check' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
298: |
The 'hash_sha512_256_compute' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
301: |
Do not define function-like macro: CRYPTO_RNG_SRC_IS_QUICK |
MISRAC2012-DIR_4_9-a-4 |
|
312: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
312: |
The left hand operand of the '|' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
312: |
The right hand operand of the '|' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
313: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
313: |
The left hand operand of the '|' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
313: |
The right hand operand of the '|' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
314: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
314: |
The left hand operand of the '|' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
314: |
The right hand operand of the '|' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
337: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
358: |
The 'crypto_aes_expand_enc_key' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
360: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
370: |
The 'crypto_aes_enc_block' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
371: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
| /optee_os_MISRA/optee_os_ruchi393_core/include/crypto/crypto_impl.h |
|
8: |
Do not use reserved identifiers : __CRYPTO_CRYPTO_IMPL_H |
MISRAC2012-RULE_21_1-a-2 |
|
17: |
Consider hiding the implementation of the structure 'crypto_hash_ctx' in a translation unit 'aes-cts.c' |
MISRAC2012-DIR_4_8-a-4 |
|
17: |
Consider hiding the implementation of the structure 'crypto_hash_ctx' in a translation unit 'aes-gcm.c' |
MISRAC2012-DIR_4_8-a-4 |
|
17: |
Consider hiding the implementation of the structure 'crypto_hash_ctx' in a translation unit 'cbc-mac.c' |
MISRAC2012-DIR_4_8-a-4 |
|
17: |
Consider hiding the implementation of the structure 'crypto_hash_ctx' in a translation unit 'sm3-hmac.c' |
MISRAC2012-DIR_4_8-a-4 |
|
17: |
Consider hiding the implementation of the structure 'crypto_hash_ctx' in a translation unit 'sm4-cbc.c' |
MISRAC2012-DIR_4_8-a-4 |
|
17: |
Consider hiding the implementation of the structure 'crypto_hash_ctx' in a translation unit 'sm4-ctr.c' |
MISRAC2012-DIR_4_8-a-4 |
|
17: |
Consider hiding the implementation of the structure 'crypto_hash_ctx' in a translation unit 'sm4-ecb.c' |
MISRAC2012-DIR_4_8-a-4 |
|
21: |
Consider hiding the implementation of the structure 'crypto_hash_ops' in a translation unit 'aes-cts.c' |
MISRAC2012-DIR_4_8-a-4 |
|
21: |
Consider hiding the implementation of the structure 'crypto_hash_ops' in a translation unit 'aes-gcm.c' |
MISRAC2012-DIR_4_8-a-4 |
|
21: |
Consider hiding the implementation of the structure 'crypto_hash_ops' in a translation unit 'cbc-mac.c' |
MISRAC2012-DIR_4_8-a-4 |
|
21: |
Consider hiding the implementation of the structure 'crypto_hash_ops' in a translation unit 'sm3-hmac.c' |
MISRAC2012-DIR_4_8-a-4 |
|
21: |
Consider hiding the implementation of the structure 'crypto_hash_ops' in a translation unit 'sm4-cbc.c' |
MISRAC2012-DIR_4_8-a-4 |
|
21: |
Consider hiding the implementation of the structure 'crypto_hash_ops' in a translation unit 'sm4-ctr.c' |
MISRAC2012-DIR_4_8-a-4 |
|
21: |
Consider hiding the implementation of the structure 'crypto_hash_ops' in a translation unit 'sm4-ecb.c' |
MISRAC2012-DIR_4_8-a-4 |
|
32: |
Do not define function-like macro: CRYPTO_ALLOC_CTX_NOT_IMPLEMENTED |
MISRAC2012-DIR_4_9-a-4 |
|
34: |
Preprocessor operator ## should not be used |
MISRAC2012-RULE_20_10-a-4 |
|
34: |
Preprocessor operator ## should not be used |
MISRAC2012-RULE_20_10-a-4 |
|
34: |
Preprocessor operator ## should not be used |
MISRAC2012-RULE_20_10-a-4 |
|
34: |
Preprocessor operator ## should not be used |
MISRAC2012-RULE_20_10-a-4 |
|
38: |
The 'crypto_md5_alloc_ctx' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
44: |
The 'crypto_sha1_alloc_ctx' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
50: |
The 'crypto_sha224_alloc_ctx' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
56: |
The 'crypto_sha256_alloc_ctx' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
62: |
The 'crypto_sha384_alloc_ctx' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
68: |
The 'crypto_sha512_alloc_ctx' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
83: |
Consider hiding the implementation of the structure 'crypto_mac_ctx' in a translation unit 'aes-cts.c' |
MISRAC2012-DIR_4_8-a-4 |
|
83: |
Consider hiding the implementation of the structure 'crypto_mac_ctx' in a translation unit 'aes-gcm.c' |
MISRAC2012-DIR_4_8-a-4 |
|
83: |
Consider hiding the implementation of the structure 'crypto_mac_ctx' in a translation unit 'sm3-hash.c' |
MISRAC2012-DIR_4_8-a-4 |
|
83: |
Consider hiding the implementation of the structure 'crypto_mac_ctx' in a translation unit 'sm4-cbc.c' |
MISRAC2012-DIR_4_8-a-4 |
|
83: |
Consider hiding the implementation of the structure 'crypto_mac_ctx' in a translation unit 'sm4-ctr.c' |
MISRAC2012-DIR_4_8-a-4 |
|
83: |
Consider hiding the implementation of the structure 'crypto_mac_ctx' in a translation unit 'sm4-ecb.c' |
MISRAC2012-DIR_4_8-a-4 |
|
87: |
Consider hiding the implementation of the structure 'crypto_mac_ops' in a translation unit 'aes-cts.c' |
MISRAC2012-DIR_4_8-a-4 |
|
87: |
Consider hiding the implementation of the structure 'crypto_mac_ops' in a translation unit 'aes-gcm.c' |
MISRAC2012-DIR_4_8-a-4 |
|
87: |
Consider hiding the implementation of the structure 'crypto_mac_ops' in a translation unit 'sm3-hash.c' |
MISRAC2012-DIR_4_8-a-4 |
|
87: |
Consider hiding the implementation of the structure 'crypto_mac_ops' in a translation unit 'sm4-cbc.c' |
MISRAC2012-DIR_4_8-a-4 |
|
87: |
Consider hiding the implementation of the structure 'crypto_mac_ops' in a translation unit 'sm4-ctr.c' |
MISRAC2012-DIR_4_8-a-4 |
|
87: |
Consider hiding the implementation of the structure 'crypto_mac_ops' in a translation unit 'sm4-ecb.c' |
MISRAC2012-DIR_4_8-a-4 |
|
100: |
The 'crypto_hmac_md5_alloc_ctx' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
101: |
The 'crypto_hmac_sha1_alloc_ctx' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
102: |
The 'crypto_hmac_sha224_alloc_ctx' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
103: |
The 'crypto_hmac_sha256_alloc_ctx' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
104: |
The 'crypto_hmac_sha384_alloc_ctx' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
105: |
The 'crypto_hmac_sha512_alloc_ctx' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
138: |
The 'crypto_aes_cmac_alloc_ctx' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
139: |
The 'crypto_des3_cmac_alloc_ctx' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
149: |
Consider hiding the implementation of the structure 'crypto_cipher_ctx' in a translation unit 'aes-gcm.c' |
MISRAC2012-DIR_4_8-a-4 |
|
149: |
Consider hiding the implementation of the structure 'crypto_cipher_ctx' in a translation unit 'cbc-mac.c' |
MISRAC2012-DIR_4_8-a-4 |
|
149: |
Consider hiding the implementation of the structure 'crypto_cipher_ctx' in a translation unit 'sm3-hash.c' |
MISRAC2012-DIR_4_8-a-4 |
|
149: |
Consider hiding the implementation of the structure 'crypto_cipher_ctx' in a translation unit 'sm3-hmac.c' |
MISRAC2012-DIR_4_8-a-4 |
|
153: |
Consider hiding the implementation of the structure 'crypto_cipher_ops' in a translation unit 'aes-gcm.c' |
MISRAC2012-DIR_4_8-a-4 |
|
153: |
Consider hiding the implementation of the structure 'crypto_cipher_ops' in a translation unit 'cbc-mac.c' |
MISRAC2012-DIR_4_8-a-4 |
|
153: |
Consider hiding the implementation of the structure 'crypto_cipher_ops' in a translation unit 'sm3-hash.c' |
MISRAC2012-DIR_4_8-a-4 |
|
153: |
Consider hiding the implementation of the structure 'crypto_cipher_ops' in a translation unit 'sm3-hmac.c' |
MISRAC2012-DIR_4_8-a-4 |
|
169: |
The 'crypto_aes_ecb_alloc_ctx' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
175: |
The 'crypto_aes_cbc_alloc_ctx' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
181: |
The 'crypto_aes_ctr_alloc_ctx' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
193: |
The 'crypto_aes_xts_alloc_ctx' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
199: |
The 'crypto_des_ecb_alloc_ctx' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
200: |
The 'crypto_des3_ecb_alloc_ctx' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
207: |
The 'crypto_des_cbc_alloc_ctx' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
208: |
The 'crypto_des3_cbc_alloc_ctx' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
236: |
Consider hiding the implementation of the structure 'crypto_authenc_ctx' in a translation unit 'aes-cts.c' |
MISRAC2012-DIR_4_8-a-4 |
|
236: |
Consider hiding the implementation of the structure 'crypto_authenc_ctx' in a translation unit 'cbc-mac.c' |
MISRAC2012-DIR_4_8-a-4 |
|
236: |
Consider hiding the implementation of the structure 'crypto_authenc_ctx' in a translation unit 'sm3-hash.c' |
MISRAC2012-DIR_4_8-a-4 |
|
236: |
Consider hiding the implementation of the structure 'crypto_authenc_ctx' in a translation unit 'sm3-hmac.c' |
MISRAC2012-DIR_4_8-a-4 |
|
236: |
Consider hiding the implementation of the structure 'crypto_authenc_ctx' in a translation unit 'sm4-cbc.c' |
MISRAC2012-DIR_4_8-a-4 |
|
236: |
Consider hiding the implementation of the structure 'crypto_authenc_ctx' in a translation unit 'sm4-ctr.c' |
MISRAC2012-DIR_4_8-a-4 |
|
236: |
Consider hiding the implementation of the structure 'crypto_authenc_ctx' in a translation unit 'sm4-ecb.c' |
MISRAC2012-DIR_4_8-a-4 |
|
240: |
Consider hiding the implementation of the structure 'crypto_authenc_ops' in a translation unit 'aes-cts.c' |
MISRAC2012-DIR_4_8-a-4 |
|
240: |
Consider hiding the implementation of the structure 'crypto_authenc_ops' in a translation unit 'cbc-mac.c' |
MISRAC2012-DIR_4_8-a-4 |
|
240: |
Consider hiding the implementation of the structure 'crypto_authenc_ops' in a translation unit 'sm3-hash.c' |
MISRAC2012-DIR_4_8-a-4 |
|
240: |
Consider hiding the implementation of the structure 'crypto_authenc_ops' in a translation unit 'sm3-hmac.c' |
MISRAC2012-DIR_4_8-a-4 |
|
240: |
Consider hiding the implementation of the structure 'crypto_authenc_ops' in a translation unit 'sm4-cbc.c' |
MISRAC2012-DIR_4_8-a-4 |
|
240: |
Consider hiding the implementation of the structure 'crypto_authenc_ops' in a translation unit 'sm4-ctr.c' |
MISRAC2012-DIR_4_8-a-4 |
|
240: |
Consider hiding the implementation of the structure 'crypto_authenc_ops' in a translation unit 'sm4-ecb.c' |
MISRAC2012-DIR_4_8-a-4 |
|
267: |
The 'crypto_aes_ccm_alloc_ctx' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
274: |
Parameter 'ctx' is not used in function 'drvcrypt_hash_alloc_ctx' |
MISRAC2012-RULE_2_7-a-4 |
|
274: |
Pass parameter "ctx" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
275: |
Parameter 'algo' is not used in function 'drvcrypt_hash_alloc_ctx' |
MISRAC2012-RULE_2_7-a-4 |
|
277: |
Integer constant '0xFFFF0009' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
286: |
Parameter 'ctx' is not used in function 'drvcrypt_cipher_alloc_ctx' |
MISRAC2012-RULE_2_7-a-4 |
|
286: |
Pass parameter "ctx" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
287: |
Parameter 'algo' is not used in function 'drvcrypt_cipher_alloc_ctx' |
MISRAC2012-RULE_2_7-a-4 |
|
289: |
Integer constant '0xFFFF0009' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
298: |
Parameter 'ctx' is not used in function 'drvcrypt_mac_alloc_ctx' |
MISRAC2012-RULE_2_7-a-4 |
|
298: |
Pass parameter "ctx" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
299: |
Parameter 'algo' is not used in function 'drvcrypt_mac_alloc_ctx' |
MISRAC2012-RULE_2_7-a-4 |
|
301: |
Integer constant '0xFFFF0009' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
314: |
Consider hiding the implementation of the structure 'crypto_ecc_public_ops' in a translation unit 'aes-cts.c' |
MISRAC2012-DIR_4_8-a-4 |
|
314: |
Consider hiding the implementation of the structure 'crypto_ecc_public_ops' in a translation unit 'aes-gcm.c' |
MISRAC2012-DIR_4_8-a-4 |
|
314: |
Consider hiding the implementation of the structure 'crypto_ecc_public_ops' in a translation unit 'cbc-mac.c' |
MISRAC2012-DIR_4_8-a-4 |
|
314: |
Consider hiding the implementation of the structure 'crypto_ecc_public_ops' in a translation unit 'sm3-hash.c' |
MISRAC2012-DIR_4_8-a-4 |
|
314: |
Consider hiding the implementation of the structure 'crypto_ecc_public_ops' in a translation unit 'sm3-hmac.c' |
MISRAC2012-DIR_4_8-a-4 |
|
314: |
Consider hiding the implementation of the structure 'crypto_ecc_public_ops' in a translation unit 'sm4-cbc.c' |
MISRAC2012-DIR_4_8-a-4 |
|
314: |
Consider hiding the implementation of the structure 'crypto_ecc_public_ops' in a translation unit 'sm4-ctr.c' |
MISRAC2012-DIR_4_8-a-4 |
|
314: |
Consider hiding the implementation of the structure 'crypto_ecc_public_ops' in a translation unit 'sm4-ecb.c' |
MISRAC2012-DIR_4_8-a-4 |
|
315: |
An external identifier with the same name 'free' was declared in the 'malloc.h' file in line 11 |
MISRAC2012-RULE_5_8-a-2 |
|
333: |
Consider hiding the implementation of the structure 'crypto_ecc_keypair_ops' in a translation unit 'aes-cts.c' |
MISRAC2012-DIR_4_8-a-4 |
|
333: |
Consider hiding the implementation of the structure 'crypto_ecc_keypair_ops' in a translation unit 'aes-gcm.c' |
MISRAC2012-DIR_4_8-a-4 |
|
333: |
Consider hiding the implementation of the structure 'crypto_ecc_keypair_ops' in a translation unit 'cbc-mac.c' |
MISRAC2012-DIR_4_8-a-4 |
|
333: |
Consider hiding the implementation of the structure 'crypto_ecc_keypair_ops' in a translation unit 'sm3-hash.c' |
MISRAC2012-DIR_4_8-a-4 |
|
333: |
Consider hiding the implementation of the structure 'crypto_ecc_keypair_ops' in a translation unit 'sm3-hmac.c' |
MISRAC2012-DIR_4_8-a-4 |
|
333: |
Consider hiding the implementation of the structure 'crypto_ecc_keypair_ops' in a translation unit 'sm4-cbc.c' |
MISRAC2012-DIR_4_8-a-4 |
|
333: |
Consider hiding the implementation of the structure 'crypto_ecc_keypair_ops' in a translation unit 'sm4-ctr.c' |
MISRAC2012-DIR_4_8-a-4 |
|
333: |
Consider hiding the implementation of the structure 'crypto_ecc_keypair_ops' in a translation unit 'sm4-ecb.c' |
MISRAC2012-DIR_4_8-a-4 |
|
346: |
The 'crypto_asym_alloc_ecc_public_key' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
349: |
The 'crypto_asym_alloc_ecc_keypair' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
379: |
Parameter 'key' is not used in function 'drvcrypt_asym_alloc_ecc_public_key' |
MISRAC2012-RULE_2_7-a-4 |
|
379: |
Pass parameter "key" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
380: |
Parameter 'key_type' is not used in function 'drvcrypt_asym_alloc_ecc_public_key' |
MISRAC2012-RULE_2_7-a-4 |
|
381: |
Parameter 'key_size_bits' is not used in function 'drvcrypt_asym_alloc_ecc_public_key' |
MISRAC2012-RULE_2_7-a-4 |
|
383: |
Integer constant '0xFFFF0009' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
387: |
Parameter 'key' is not used in function 'drvcrypt_asym_alloc_ecc_keypair' |
MISRAC2012-RULE_2_7-a-4 |
|
387: |
Pass parameter "key" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
388: |
Parameter 'key_type' is not used in function 'drvcrypt_asym_alloc_ecc_keypair' |
MISRAC2012-RULE_2_7-a-4 |
|
389: |
Parameter 'key_size_bits' is not used in function 'drvcrypt_asym_alloc_ecc_keypair' |
MISRAC2012-RULE_2_7-a-4 |
|
391: |
Integer constant '0xFFFF0009' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
| /optee_os_MISRA/optee_os_ruchi393_core/include/crypto/internal_aes-gcm.h |
|
8: |
Do not use reserved identifiers : __CRYPTO_INTERNAL_AES_GCM_H |
MISRAC2012-RULE_21_1-a-2 |
|
50: |
Consider hiding the implementation of the structure 'internal_aes_gcm_ctx' in a translation unit 'aes-gcm-ghash-tbl.c' |
MISRAC2012-DIR_4_8-a-4 |
|
50: |
Consider hiding the implementation of the structure 'internal_aes_gcm_ctx' in a translation unit 'aes-gcm-sw.c' |
MISRAC2012-DIR_4_8-a-4 |
|
92: |
Pointer to void type should not be converted to pointer to object type 'uint64_t *' |
MISRAC2012-RULE_11_5-a-4 |
|
93: |
Pointer to void type should not be converted to pointer to object type 'const uint64_t *' |
MISRAC2012-RULE_11_5-a-4 |
|
95: |
Do not use the '_Alignof' operator |
MISRAC2012-RULE_1_4-h-2 |
|
95: |
Pointer to void type should not be converted to arithmetic type 'unsigned long' |
MISRAC2012-RULE_11_6-a-2 |
|
95: |
Potential macro 'ALIGNMENT_IS_OK' used as '1' parameter of potential macro 'assert' |
MISRAC2012-RULE_20_12-a-2 |
|
96: |
Do not use the '_Alignof' operator |
MISRAC2012-RULE_1_4-h-2 |
|
96: |
Pointer to void type should not be converted to arithmetic type 'unsigned long' |
MISRAC2012-RULE_11_6-a-2 |
|
96: |
Potential macro 'ALIGNMENT_IS_OK' used as '1' parameter of potential macro 'assert' |
MISRAC2012-RULE_20_12-a-2 |
|
104: |
Pointer to void type should not be converted to arithmetic type 'unsigned long' |
MISRAC2012-RULE_11_6-a-2 |
|
104: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
129: |
The identifier 'internal_aes_gcm_update_payload_blocks' has the same first 31 characters of the name as the identifier 'internal_aes_gcm_update_payload'
defined in the 'internal_aes-gcm.h' file in line '61'
|
MISRAC2012-RULE_5_1-a-2 |
| /optee_os_MISRA/optee_os_ruchi393_core/include/drivers/gic.h |
|
8: |
Do not use reserved identifiers : __DRIVERS_GIC_H |
MISRAC2012-RULE_21_1-a-2 |
|
14: |
Do not define function-like macro: GIC_SGI |
MISRAC2012-DIR_4_9-a-4 |
|
15: |
Do not define function-like macro: GIC_PPI |
MISRAC2012-DIR_4_9-a-4 |
|
16: |
Do not define function-like macro: GIC_SPI |
MISRAC2012-DIR_4_9-a-4 |
|
30: |
The 'gic_init' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
32: |
The 'gic_init_base_addr' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
35: |
The 'gic_cpu_init' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
37: |
The 'gic_it_handle' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
39: |
The 'gic_dump_state' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
| /optee_os_MISRA/optee_os_ruchi393_core/include/drivers/pl011.h |
|
18: |
The 'pl011_init' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
| /optee_os_MISRA/optee_os_ruchi393_core/include/drivers/serial.h |
|
6: |
Do not use reserved identifiers : __DRIVERS_SERIAL_H |
MISRAC2012-RULE_21_1-a-2 |
|
19: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
22: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
39: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
40: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
| /optee_os_MISRA/optee_os_ruchi393_core/include/drivers/tzc400.h |
|
59: |
Do not use reserved identifiers : __DRIVERS_TZC400_H |
MISRAC2012-RULE_21_1-a-2 |
|
79: |
Do not define function-like macro: FAIL_FILTER_OFF |
MISRAC2012-DIR_4_9-a-4 |
|
81: |
Do not define function-like macro: FAIL_ADDRESS_LOW |
MISRAC2012-DIR_4_9-a-4 |
|
82: |
Do not define function-like macro: FAIL_ADDRESS_HIGH |
MISRAC2012-DIR_4_9-a-4 |
|
83: |
Do not define function-like macro: FAIL_CONTROL |
MISRAC2012-DIR_4_9-a-4 |
|
84: |
Do not define function-like macro: FAIL_ID |
MISRAC2012-DIR_4_9-a-4 |
|
92: |
Do not define function-like macro: REGION_NUM_OFF |
MISRAC2012-DIR_4_9-a-4 |
|
167: |
Do not define function-like macro: REG_ATTR_FILTER_BIT |
MISRAC2012-DIR_4_9-a-4 |
|
167: |
Each instance of parameter: 'x' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
177: |
Do not define function-like macro: TZC_REGION_ACCESS_RD |
MISRAC2012-DIR_4_9-a-4 |
|
178: |
Each instance of parameter: 'id' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
180: |
Do not define function-like macro: TZC_REGION_ACCESS_WR |
MISRAC2012-DIR_4_9-a-4 |
|
181: |
Each instance of parameter: 'id' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
183: |
Do not define function-like macro: TZC_REGION_ACCESS_RDWR |
MISRAC2012-DIR_4_9-a-4 |
|
209: |
The left hand operand of the '|' operator has essentially enum type: tzc_action |
MISRAC2012-RULE_10_1-d-2 |
|
209: |
The left hand operand of the '|' operator has essentially enum type: tzc_action |
MISRAC2012-RULE_10_1-e-2 |
|
209: |
The right hand operand of the '|' operator has essentially enum type: tzc_action |
MISRAC2012-RULE_10_1-d-2 |
|
209: |
The right hand operand of the '|' operator has essentially enum type: tzc_action |
MISRAC2012-RULE_10_1-e-2 |
|
220: |
The left hand operand of the '|' operator has essentially enum type: tzc_region_attributes |
MISRAC2012-RULE_10_1-d-2 |
|
220: |
The left hand operand of the '|' operator has essentially enum type: tzc_region_attributes |
MISRAC2012-RULE_10_1-e-2 |
|
220: |
The right hand operand of the '|' operator has essentially enum type: tzc_region_attributes |
MISRAC2012-RULE_10_1-d-2 |
|
220: |
The right hand operand of the '|' operator has essentially enum type: tzc_region_attributes |
MISRAC2012-RULE_10_1-e-2 |
|
223: |
Consider hiding the implementation of the structure 'tzc_region_config' in a translation unit 'main.c' |
MISRAC2012-DIR_4_8-a-4 |
|
231: |
The 'tzc_init' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
232: |
The 'tzc_configure_region' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
233: |
The 'tzc_get_region_config' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
234: |
The 'tzc_enable_filters' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
235: |
The 'tzc_disable_filters' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
236: |
The 'tzc_set_action' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
238: |
The 'tzc_fail_dump' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
239: |
The 'tzc_int_clear' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
| /optee_os_MISRA/optee_os_ruchi393_core/include/gen-asm-defines.h |
|
9: |
Do not define function-like macro: DEFINE |
MISRAC2012-DIR_4_9-a-4 |
|
10: |
Preprocessor operator # should not be used |
MISRAC2012-RULE_20_10-a-4 |
|
10: |
Preprocessor operator # should not be used |
MISRAC2012-RULE_20_10-a-4 |
| /optee_os_MISRA/optee_os_ruchi393_core/include/initcall.h |
|
16: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
22: |
Do not define function-like macro: __define_initcall |
MISRAC2012-DIR_4_9-a-4 |
|
22: |
Do not use reserved identifiers : __define_initcall |
MISRAC2012-RULE_21_1-a-2 |
|
23: |
Each instance of parameter: 'lvl' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
23: |
Preprocessor operator ## should not be used |
MISRAC2012-RULE_20_10-a-4 |
|
25: |
Preprocessor operator # should not be used |
MISRAC2012-RULE_20_10-a-4 |
|
27: |
Do not define function-like macro: __define_initcall |
MISRAC2012-DIR_4_9-a-4 |
|
27: |
Do not use reserved identifiers : __define_initcall |
MISRAC2012-RULE_21_1-a-2 |
|
28: |
Each instance of parameter: 'lvl' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
28: |
Preprocessor operator ## should not be used |
MISRAC2012-RULE_20_10-a-4 |
|
39: |
Do not define function-like macro: early_init |
MISRAC2012-DIR_4_9-a-4 |
|
39: |
Each instance of parameter: 'fn' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
40: |
Do not define function-like macro: early_init_late |
MISRAC2012-DIR_4_9-a-4 |
|
40: |
Each instance of parameter: 'fn' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
41: |
Do not define function-like macro: service_init |
MISRAC2012-DIR_4_9-a-4 |
|
41: |
Each instance of parameter: 'fn' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
42: |
Do not define function-like macro: service_init_late |
MISRAC2012-DIR_4_9-a-4 |
|
42: |
Each instance of parameter: 'fn' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
43: |
Do not define function-like macro: driver_init |
MISRAC2012-DIR_4_9-a-4 |
|
43: |
Each instance of parameter: 'fn' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
44: |
Do not define function-like macro: driver_init_late |
MISRAC2012-DIR_4_9-a-4 |
|
44: |
Each instance of parameter: 'fn' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
46: |
Do not define function-like macro: boot_final |
MISRAC2012-DIR_4_9-a-4 |
|
46: |
Each instance of parameter: 'fn' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
| /optee_os_MISRA/optee_os_ruchi393_core/include/io.h |
|
20: |
Do not define function-like macro: READ_ONCE |
MISRAC2012-DIR_4_9-a-4 |
|
24: |
Integral type 'unsigned long' should not be converted to pointer to object type 'volatile uint8_t *' |
MISRAC2012-RULE_11_4-a-4 |
|
29: |
Integral type 'unsigned long' should not be converted to pointer to object type 'volatile uint16_t *' |
MISRAC2012-RULE_11_4-a-4 |
|
34: |
Integral type 'unsigned long' should not be converted to pointer to object type 'volatile uint32_t *' |
MISRAC2012-RULE_11_4-a-4 |
|
39: |
Integral type 'unsigned long' should not be converted to pointer to object type 'volatile uint8_t *' |
MISRAC2012-RULE_11_4-a-4 |
|
44: |
Integral type 'unsigned long' should not be converted to pointer to object type 'volatile uint16_t *' |
MISRAC2012-RULE_11_4-a-4 |
|
49: |
Integral type 'unsigned long' should not be converted to pointer to object type 'volatile uint32_t *' |
MISRAC2012-RULE_11_4-a-4 |
|
69: |
Pointer to void type should not be converted to pointer to object type 'const uint64_t *' |
MISRAC2012-RULE_11_5-a-4 |
|
74: |
Pointer to void type should not be converted to pointer to object type 'uint64_t *' |
MISRAC2012-RULE_11_5-a-4 |
|
79: |
Pointer to void type should not be converted to pointer to object type 'const uint32_t *' |
MISRAC2012-RULE_11_5-a-4 |
|
84: |
Pointer to void type should not be converted to pointer to object type 'uint32_t *' |
MISRAC2012-RULE_11_5-a-4 |
|
89: |
Pointer to void type should not be converted to pointer to object type 'const uint16_t *' |
MISRAC2012-RULE_11_5-a-4 |
|
94: |
Pointer to void type should not be converted to pointer to object type 'uint16_t *' |
MISRAC2012-RULE_11_5-a-4 |
|
99: |
Cast from 'const void *' removes 'const' qualifier |
MISRAC2012-RULE_11_8-a-2 |
|
99: |
Pointer to void type should not be converted to pointer to object type 'uint32_t *' |
MISRAC2012-RULE_11_5-a-4 |
|
104: |
Pointer to void type should not be converted to pointer to object type 'const uint32_t *' |
MISRAC2012-RULE_11_5-a-4 |
|
109: |
Cast from 'const void *' removes 'const' qualifier |
MISRAC2012-RULE_11_8-a-2 |
|
109: |
Pointer to void type should not be converted to pointer to object type 'uint64_t *' |
MISRAC2012-RULE_11_5-a-4 |
|
114: |
Pointer to void type should not be converted to pointer to object type 'const uint64_t *' |
MISRAC2012-RULE_11_5-a-4 |
| /optee_os_MISRA/optee_os_ruchi393_core/include/keep.h |
|
14: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
22: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
28: |
#include statements are not grouped properly. This is the last #include in file. Some statements are in line 10 |
MISRAC2012-RULE_20_1-a-4 |
|
30: |
Do not define function-like macro: __DECLARE_KEEP_PAGER2 |
MISRAC2012-DIR_4_9-a-4 |
|
30: |
Do not use reserved identifiers : __DECLARE_KEEP_PAGER2 |
MISRAC2012-RULE_21_1-a-2 |
|
31: |
Preprocessor operator ## should not be used |
MISRAC2012-RULE_20_10-a-4 |
|
32: |
Preprocessor operator ## should not be used |
MISRAC2012-RULE_20_10-a-4 |
|
32: |
Preprocessor operator ## should not be used |
MISRAC2012-RULE_20_10-a-4 |
|
32: |
Preprocessor operator ## should not be used |
MISRAC2012-RULE_20_10-a-4 |
|
35: |
Do not define function-like macro: __DECLARE_KEEP_PAGER1 |
MISRAC2012-DIR_4_9-a-4 |
|
35: |
Do not use reserved identifiers : __DECLARE_KEEP_PAGER1 |
MISRAC2012-RULE_21_1-a-2 |
|
35: |
Each instance of parameter: 'file_id' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
35: |
Each instance of parameter: 'sym' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
36: |
Do not define function-like macro: DECLARE_KEEP_PAGER |
MISRAC2012-DIR_4_9-a-4 |
|
36: |
Each instance of parameter: 'sym' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
38: |
Do not define function-like macro: __DECLARE_KEEP_INIT2 |
MISRAC2012-DIR_4_9-a-4 |
|
38: |
Do not use reserved identifiers : __DECLARE_KEEP_INIT2 |
MISRAC2012-RULE_21_1-a-2 |
|
39: |
Preprocessor operator ## should not be used |
MISRAC2012-RULE_20_10-a-4 |
|
39: |
Preprocessor operator ## should not be used |
MISRAC2012-RULE_20_10-a-4 |
|
40: |
Preprocessor operator ## should not be used |
MISRAC2012-RULE_20_10-a-4 |
|
40: |
Preprocessor operator ## should not be used |
MISRAC2012-RULE_20_10-a-4 |
|
40: |
Preprocessor operator ## should not be used |
MISRAC2012-RULE_20_10-a-4 |
|
43: |
Do not define function-like macro: __DECLARE_KEEP_INIT1 |
MISRAC2012-DIR_4_9-a-4 |
|
43: |
Do not use reserved identifiers : __DECLARE_KEEP_INIT1 |
MISRAC2012-RULE_21_1-a-2 |
|
43: |
Each instance of parameter: 'file_id' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
43: |
Each instance of parameter: 'sym' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
44: |
Do not define function-like macro: DECLARE_KEEP_INIT |
MISRAC2012-DIR_4_9-a-4 |
|
44: |
Each instance of parameter: 'sym' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
| /optee_os_MISRA/optee_os_ruchi393_core/include/kernel/asan.h |
|
6: |
Do not use reserved identifiers : __KERNEL_ASAN_H |
MISRAC2012-RULE_21_1-a-2 |
|
20: |
Reserved name 'va_end' used |
MISRAC2012-RULE_21_2-b-2 |
|
20: |
Reserved name 'va_end' used |
MISRAC2012-RULE_21_2-c-2 |
|
20: |
The 'asan_set_shadowed' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
20: |
The identifier 'va_end' shall not be used |
MISRAC2012-RULE_17_1-a-2 |
|
20: |
The identifier 'va_end' shall not be used |
MISRAC2012-RULE_17_1-b-2 |
|
21: |
The 'asan_start' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
27: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
31: |
Parameter 'begin' is not used in function 'asan_tag_no_access' |
MISRAC2012-RULE_2_7-a-4 |
|
32: |
Parameter 'end' is not used in function 'asan_tag_no_access' |
MISRAC2012-RULE_2_7-a-4 |
|
35: |
Parameter 'begin' is not used in function 'asan_tag_access' |
MISRAC2012-RULE_2_7-a-4 |
|
36: |
Parameter 'end' is not used in function 'asan_tag_access' |
MISRAC2012-RULE_2_7-a-4 |
|
39: |
Parameter 'begin' is not used in function 'asan_tag_heap_free' |
MISRAC2012-RULE_2_7-a-4 |
|
40: |
Parameter 'end' is not used in function 'asan_tag_heap_free' |
MISRAC2012-RULE_2_7-a-4 |
|
44: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
| /optee_os_MISRA/optee_os_ruchi393_core/include/kernel/dt.h |
|
35: |
Consider hiding the implementation of the structure 'dt_node_info' in a translation unit 'abort.c' |
MISRAC2012-DIR_4_8-a-4 |
|
35: |
Consider hiding the implementation of the structure 'dt_node_info' in a translation unit 'boot.c' |
MISRAC2012-DIR_4_8-a-4 |
|
35: |
Consider hiding the implementation of the structure 'dt_node_info' in a translation unit 'console.c' |
MISRAC2012-DIR_4_8-a-4 |
|
35: |
Consider hiding the implementation of the structure 'dt_node_info' in a translation unit 'core_mmu.c' |
MISRAC2012-DIR_4_8-a-4 |
|
35: |
Consider hiding the implementation of the structure 'dt_node_info' in a translation unit 'core_mmu_lpae.c' |
MISRAC2012-DIR_4_8-a-4 |
|
35: |
Consider hiding the implementation of the structure 'dt_node_info' in a translation unit 'entry_std.c' |
MISRAC2012-DIR_4_8-a-4 |
|
35: |
Consider hiding the implementation of the structure 'dt_node_info' in a translation unit 'initcall.c' |
MISRAC2012-DIR_4_8-a-4 |
|
35: |
Consider hiding the implementation of the structure 'dt_node_info' in a translation unit 'ldelf_loader.c' |
MISRAC2012-DIR_4_8-a-4 |
|
35: |
Consider hiding the implementation of the structure 'dt_node_info' in a translation unit 'ldelf_syscalls.c' |
MISRAC2012-DIR_4_8-a-4 |
|
35: |
Consider hiding the implementation of the structure 'dt_node_info' in a translation unit 'mobj.c' |
MISRAC2012-DIR_4_8-a-4 |
|
35: |
Consider hiding the implementation of the structure 'dt_node_info' in a translation unit 'mobj_dyn_shm.c' |
MISRAC2012-DIR_4_8-a-4 |
|
35: |
Consider hiding the implementation of the structure 'dt_node_info' in a translation unit 'pseudo_ta.c' |
MISRAC2012-DIR_4_8-a-4 |
|
35: |
Consider hiding the implementation of the structure 'dt_node_info' in a translation unit 'thread.c' |
MISRAC2012-DIR_4_8-a-4 |
|
35: |
Consider hiding the implementation of the structure 'dt_node_info' in a translation unit 'unwind_arm64.c' |
MISRAC2012-DIR_4_8-a-4 |
|
36: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
38: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
39: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
48: |
Consider hiding the implementation of the structure 'dt_device_match' in a translation unit 'abort.c' |
MISRAC2012-DIR_4_8-a-4 |
|
48: |
Consider hiding the implementation of the structure 'dt_device_match' in a translation unit 'boot.c' |
MISRAC2012-DIR_4_8-a-4 |
|
48: |
Consider hiding the implementation of the structure 'dt_device_match' in a translation unit 'console.c' |
MISRAC2012-DIR_4_8-a-4 |
|
48: |
Consider hiding the implementation of the structure 'dt_device_match' in a translation unit 'core_mmu.c' |
MISRAC2012-DIR_4_8-a-4 |
|
48: |
Consider hiding the implementation of the structure 'dt_device_match' in a translation unit 'core_mmu_lpae.c' |
MISRAC2012-DIR_4_8-a-4 |
|
48: |
Consider hiding the implementation of the structure 'dt_device_match' in a translation unit 'entry_std.c' |
MISRAC2012-DIR_4_8-a-4 |
|
48: |
Consider hiding the implementation of the structure 'dt_device_match' in a translation unit 'initcall.c' |
MISRAC2012-DIR_4_8-a-4 |
|
48: |
Consider hiding the implementation of the structure 'dt_device_match' in a translation unit 'ldelf_loader.c' |
MISRAC2012-DIR_4_8-a-4 |
|
48: |
Consider hiding the implementation of the structure 'dt_device_match' in a translation unit 'ldelf_syscalls.c' |
MISRAC2012-DIR_4_8-a-4 |
|
48: |
Consider hiding the implementation of the structure 'dt_device_match' in a translation unit 'mobj.c' |
MISRAC2012-DIR_4_8-a-4 |
|
48: |
Consider hiding the implementation of the structure 'dt_device_match' in a translation unit 'mobj_dyn_shm.c' |
MISRAC2012-DIR_4_8-a-4 |
|
48: |
Consider hiding the implementation of the structure 'dt_device_match' in a translation unit 'pseudo_ta.c' |
MISRAC2012-DIR_4_8-a-4 |
|
48: |
Consider hiding the implementation of the structure 'dt_device_match' in a translation unit 'thread.c' |
MISRAC2012-DIR_4_8-a-4 |
|
48: |
Consider hiding the implementation of the structure 'dt_device_match' in a translation unit 'unwind_arm64.c' |
MISRAC2012-DIR_4_8-a-4 |
|
58: |
Do not use reserved identifiers : __dt_driver |
MISRAC2012-RULE_21_1-a-2 |
|
67: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
69: |
Reserved name '__dt_driver_start' used |
MISRAC2012-RULE_21_2-a-2 |
|
71: |
Reserved name '__dt_driver_end' used |
MISRAC2012-RULE_21_2-a-2 |
|
87: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
87: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
97: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
109: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
109: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
119: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
119: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
129: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
129: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
139: |
Reserved name '_fdt_reg_base_address' used |
MISRAC2012-RULE_21_2-a-2 |
|
139: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
145: |
Reserved name '_fdt_reg_size' used |
MISRAC2012-RULE_21_2-a-2 |
|
145: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
152: |
Reserved name '_fdt_get_status' used |
MISRAC2012-RULE_21_2-a-2 |
|
152: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
152: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
162: |
Reserved name '_fdt_fill_device_info' used |
MISRAC2012-RULE_21_2-a-2 |
|
162: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
178: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
183: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
183: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
190: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
196: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
201: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
201: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
209: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
215: |
Do not define function-like macro: for_each_dt_driver |
MISRAC2012-DIR_4_9-a-4 |
|
216: |
Each instance of parameter: 'drv' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
216: |
Each instance of parameter: 'drv' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
216: |
Each instance of parameter: 'drv' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
| /optee_os_MISRA/optee_os_ruchi393_core/include/kernel/early_ta.h |
|
14: |
Do not define function-like macro: for_each_early_ta |
MISRAC2012-DIR_4_9-a-4 |
|
15: |
Each instance of parameter: '_ta' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
| /optee_os_MISRA/optee_os_ruchi393_core/include/kernel/handle.h |
|
37: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
43: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
50: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
| /optee_os_MISRA/optee_os_ruchi393_core/include/kernel/huk_subkey.h |
|
7: |
Do not use reserved identifiers : __KERNEL_HUK_SUBKEY_H |
MISRAC2012-RULE_21_1-a-2 |
| /optee_os_MISRA/optee_os_ruchi393_core/include/kernel/interrupt.h |
|
6: |
Do not use reserved identifiers : __KERNEL_INTERRUPT_H |
MISRAC2012-RULE_21_1-a-2 |
|
19: |
Consider hiding the implementation of the structure 'itr_ops' in a translation unit 'main.c' |
MISRAC2012-DIR_4_8-a-4 |
|
67: |
The 'itr_core_handler' function should not be declared with the '_Noreturn' specifier |
MISRAC2012-RULE_1_4-b-2 |
| /optee_os_MISRA/optee_os_ruchi393_core/include/kernel/ldelf_loader.h |
|
8: |
Whole code in file should be secured from multiple inclusion |
MISRAC2012-DIR_4_10-a-2 |
|
17: |
The 'ldelf_dump_ftrace' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
| /optee_os_MISRA/optee_os_ruchi393_core/include/kernel/ldelf_syscalls.h |
|
12: |
Whole code in file should be secured from multiple inclusion |
MISRAC2012-DIR_4_10-a-2 |
|
23: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
27: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
29: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
31: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
33: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
34: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
35: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
36: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
| /optee_os_MISRA/optee_os_ruchi393_core/include/kernel/linker.h |
|
6: |
Do not use reserved identifiers : __KERNEL_LINKER_H |
MISRAC2012-RULE_21_1-a-2 |
|
65: |
Do not define function-like macro: EMIT_SECTION_INFO_SYMBOLS |
MISRAC2012-DIR_4_9-a-4 |
|
66: |
Preprocessor operator ## should not be used |
MISRAC2012-RULE_20_10-a-4 |
|
66: |
Preprocessor operator ## should not be used |
MISRAC2012-RULE_20_10-a-4 |
|
67: |
Preprocessor operator ## should not be used |
MISRAC2012-RULE_20_10-a-4 |
|
67: |
Preprocessor operator ## should not be used |
MISRAC2012-RULE_20_10-a-4 |
|
68: |
Preprocessor operator ## should not be used |
MISRAC2012-RULE_20_10-a-4 |
|
68: |
Preprocessor operator ## should not be used |
MISRAC2012-RULE_20_10-a-4 |
|
70: |
Reserved name '__vcore_unpg_rx_end' used |
MISRAC2012-RULE_21_2-a-2 |
|
70: |
Reserved name '__vcore_unpg_rx_size' used |
MISRAC2012-RULE_21_2-a-2 |
|
70: |
Reserved name '__vcore_unpg_rx_start' used |
MISRAC2012-RULE_21_2-a-2 |
|
70: |
The '__vcore_unpg_rx_end' object has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
70: |
The '__vcore_unpg_rx_size' object has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
70: |
The '__vcore_unpg_rx_start' object has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
71: |
Reserved name '__vcore_unpg_ro_end' used |
MISRAC2012-RULE_21_2-a-2 |
|
71: |
Reserved name '__vcore_unpg_ro_size' used |
MISRAC2012-RULE_21_2-a-2 |
|
71: |
Reserved name '__vcore_unpg_ro_start' used |
MISRAC2012-RULE_21_2-a-2 |
|
71: |
The '__vcore_unpg_ro_end' object has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
71: |
The '__vcore_unpg_ro_size' object has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
71: |
The '__vcore_unpg_ro_start' object has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
72: |
Reserved name '__vcore_unpg_rw_end' used |
MISRAC2012-RULE_21_2-a-2 |
|
72: |
Reserved name '__vcore_unpg_rw_size' used |
MISRAC2012-RULE_21_2-a-2 |
|
72: |
Reserved name '__vcore_unpg_rw_start' used |
MISRAC2012-RULE_21_2-a-2 |
|
72: |
The '__vcore_unpg_rw_end' object has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
72: |
The '__vcore_unpg_rw_size' object has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
72: |
The '__vcore_unpg_rw_start' object has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
73: |
Reserved name '__vcore_nex_rw_end' used |
MISRAC2012-RULE_21_2-a-2 |
|
73: |
Reserved name '__vcore_nex_rw_size' used |
MISRAC2012-RULE_21_2-a-2 |
|
73: |
Reserved name '__vcore_nex_rw_start' used |
MISRAC2012-RULE_21_2-a-2 |
|
73: |
The '__vcore_nex_rw_end' object has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
73: |
The '__vcore_nex_rw_size' object has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
73: |
The '__vcore_nex_rw_start' object has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
74: |
Reserved name '__vcore_init_ro_end' used |
MISRAC2012-RULE_21_2-a-2 |
|
74: |
Reserved name '__vcore_init_ro_size' used |
MISRAC2012-RULE_21_2-a-2 |
|
74: |
Reserved name '__vcore_init_ro_start' used |
MISRAC2012-RULE_21_2-a-2 |
|
74: |
The '__vcore_init_ro_end' object has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
74: |
The '__vcore_init_ro_size' object has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
74: |
The '__vcore_init_ro_start' object has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
75: |
Reserved name '__vcore_init_rx_end' used |
MISRAC2012-RULE_21_2-a-2 |
|
75: |
Reserved name '__vcore_init_rx_size' used |
MISRAC2012-RULE_21_2-a-2 |
|
75: |
Reserved name '__vcore_init_rx_start' used |
MISRAC2012-RULE_21_2-a-2 |
|
75: |
The '__vcore_init_rx_end' object has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
75: |
The '__vcore_init_rx_size' object has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
75: |
The '__vcore_init_rx_start' object has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
77: |
#undef directive is being used to undefine 'EMIT_SECTION_INFO_SYMBOLS' macro |
MISRAC2012-RULE_20_5-a-4 |
|
79: |
'__text_start ' array size should be stated explicitly or defined implicitly by initialisation |
MISRAC2012-RULE_8_11-a-4 |
|
79: |
Reserved name '__text_start' used |
MISRAC2012-RULE_21_2-a-2 |
|
79: |
The '__text_start' object has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
80: |
'__end ' array size should be stated explicitly or defined implicitly by initialisation |
MISRAC2012-RULE_8_11-a-4 |
|
80: |
Reserved name '__end' used |
MISRAC2012-RULE_21_2-a-2 |
|
80: |
The '__end' object has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
82: |
'__identity_map_init_start ' array size should be stated explicitly or defined implicitly by initialisation |
MISRAC2012-RULE_8_11-a-4 |
|
82: |
Reserved name '__identity_map_init_start' used |
MISRAC2012-RULE_21_2-a-2 |
|
82: |
The '__identity_map_init_start' object has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
83: |
'__identity_map_init_end ' array size should be stated explicitly or defined implicitly by initialisation |
MISRAC2012-RULE_8_11-a-4 |
|
83: |
Reserved name '__identity_map_init_end' used |
MISRAC2012-RULE_21_2-a-2 |
|
83: |
The '__identity_map_init_end' object has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
85: |
'__data_start ' array size should be stated explicitly or defined implicitly by initialisation |
MISRAC2012-RULE_8_11-a-4 |
|
85: |
Reserved name '__data_start' used |
MISRAC2012-RULE_21_2-a-2 |
|
85: |
The '__data_start' object has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
86: |
'__data_end ' array size should be stated explicitly or defined implicitly by initialisation |
MISRAC2012-RULE_8_11-a-4 |
|
86: |
Reserved name '__data_end' used |
MISRAC2012-RULE_21_2-a-2 |
|
86: |
The '__data_end' object has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
87: |
'__rodata_start ' array size should be stated explicitly or defined implicitly by initialisation |
MISRAC2012-RULE_8_11-a-4 |
|
87: |
Reserved name '__rodata_start' used |
MISRAC2012-RULE_21_2-a-2 |
|
87: |
The '__rodata_start' object has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
88: |
'__rodata_end ' array size should be stated explicitly or defined implicitly by initialisation |
MISRAC2012-RULE_8_11-a-4 |
|
88: |
Reserved name '__rodata_end' used |
MISRAC2012-RULE_21_2-a-2 |
|
88: |
The '__rodata_end' object has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
89: |
'__bss_start ' array size should be stated explicitly or defined implicitly by initialisation |
MISRAC2012-RULE_8_11-a-4 |
|
89: |
Reserved name '__bss_start' used |
MISRAC2012-RULE_21_2-a-2 |
|
89: |
The '__bss_start' object has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
90: |
'__bss_end ' array size should be stated explicitly or defined implicitly by initialisation |
MISRAC2012-RULE_8_11-a-4 |
|
90: |
Reserved name '__bss_end' used |
MISRAC2012-RULE_21_2-a-2 |
|
90: |
The '__bss_end' object has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
91: |
'__nozi_start ' array size should be stated explicitly or defined implicitly by initialisation |
MISRAC2012-RULE_8_11-a-4 |
|
91: |
Reserved name '__nozi_start' used |
MISRAC2012-RULE_21_2-a-2 |
|
91: |
The '__nozi_start' object has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
92: |
'__nozi_end ' array size should be stated explicitly or defined implicitly by initialisation |
MISRAC2012-RULE_8_11-a-4 |
|
92: |
Reserved name '__nozi_end' used |
MISRAC2012-RULE_21_2-a-2 |
|
92: |
The '__nozi_end' object has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
93: |
'__nozi_stack_start ' array size should be stated explicitly or defined implicitly by initialisation |
MISRAC2012-RULE_8_11-a-4 |
|
93: |
Reserved name '__nozi_stack_start' used |
MISRAC2012-RULE_21_2-a-2 |
|
93: |
The '__nozi_stack_start' object has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
94: |
'__nozi_stack_end ' array size should be stated explicitly or defined implicitly by initialisation |
MISRAC2012-RULE_8_11-a-4 |
|
94: |
Reserved name '__nozi_stack_end' used |
MISRAC2012-RULE_21_2-a-2 |
|
94: |
The '__nozi_stack_end' object has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
95: |
'__init_start ' array size should be stated explicitly or defined implicitly by initialisation |
MISRAC2012-RULE_8_11-a-4 |
|
95: |
Reserved name '__init_start' used |
MISRAC2012-RULE_21_2-a-2 |
|
95: |
The '__init_start' object has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
96: |
'__init_end ' array size should be stated explicitly or defined implicitly by initialisation |
MISRAC2012-RULE_8_11-a-4 |
|
96: |
Reserved name '__init_end' used |
MISRAC2012-RULE_21_2-a-2 |
|
96: |
The '__init_end' object has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
98: |
'__heap1_start ' array size should be stated explicitly or defined implicitly by initialisation |
MISRAC2012-RULE_8_11-a-4 |
|
98: |
Reserved name '__heap1_start' used |
MISRAC2012-RULE_21_2-a-2 |
|
98: |
The '__heap1_start' object has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
99: |
'__heap1_end ' array size should be stated explicitly or defined implicitly by initialisation |
MISRAC2012-RULE_8_11-a-4 |
|
99: |
Reserved name '__heap1_end' used |
MISRAC2012-RULE_21_2-a-2 |
|
99: |
The '__heap1_end' object has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
100: |
'__heap2_start ' array size should be stated explicitly or defined implicitly by initialisation |
MISRAC2012-RULE_8_11-a-4 |
|
100: |
Reserved name '__heap2_start' used |
MISRAC2012-RULE_21_2-a-2 |
|
100: |
The '__heap2_start' object has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
101: |
'__heap2_end ' array size should be stated explicitly or defined implicitly by initialisation |
MISRAC2012-RULE_8_11-a-4 |
|
101: |
Reserved name '__heap2_end' used |
MISRAC2012-RULE_21_2-a-2 |
|
101: |
The '__heap2_end' object has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
103: |
'__nex_heap_start ' array size should be stated explicitly or defined implicitly by initialisation |
MISRAC2012-RULE_8_11-a-4 |
|
103: |
Reserved name '__nex_heap_start' used |
MISRAC2012-RULE_21_2-a-2 |
|
103: |
The '__nex_heap_start' object has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
104: |
'__nex_heap_end ' array size should be stated explicitly or defined implicitly by initialisation |
MISRAC2012-RULE_8_11-a-4 |
|
104: |
Reserved name '__nex_heap_end' used |
MISRAC2012-RULE_21_2-a-2 |
|
104: |
The '__nex_heap_end' object has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
106: |
'__pageable_part_start ' array size should be stated explicitly or defined implicitly by initialisation |
MISRAC2012-RULE_8_11-a-4 |
|
106: |
Reserved name '__pageable_part_start' used |
MISRAC2012-RULE_21_2-a-2 |
|
106: |
The '__pageable_part_start' object has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
107: |
'__pageable_part_end ' array size should be stated explicitly or defined implicitly by initialisation |
MISRAC2012-RULE_8_11-a-4 |
|
107: |
Reserved name '__pageable_part_end' used |
MISRAC2012-RULE_21_2-a-2 |
|
107: |
The '__pageable_part_end' object has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
108: |
'__pageable_start ' array size should be stated explicitly or defined implicitly by initialisation |
MISRAC2012-RULE_8_11-a-4 |
|
108: |
Reserved name '__pageable_start' used |
MISRAC2012-RULE_21_2-a-2 |
|
108: |
The '__pageable_start' object has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
109: |
'__pageable_end ' array size should be stated explicitly or defined implicitly by initialisation |
MISRAC2012-RULE_8_11-a-4 |
|
109: |
Reserved name '__pageable_end' used |
MISRAC2012-RULE_21_2-a-2 |
|
109: |
The '__pageable_end' object has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
113: |
'__asan_shadow_start ' array size should be stated explicitly or defined implicitly by initialisation |
MISRAC2012-RULE_8_11-a-4 |
|
113: |
Reserved name '__asan_shadow_start' used |
MISRAC2012-RULE_21_2-a-2 |
|
113: |
The '__asan_shadow_start' object has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
114: |
'__asan_shadow_end ' array size should be stated explicitly or defined implicitly by initialisation |
MISRAC2012-RULE_8_11-a-4 |
|
114: |
Reserved name '__asan_shadow_end' used |
MISRAC2012-RULE_21_2-a-2 |
|
114: |
The '__asan_shadow_end' object has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
115: |
'__asan_shadow_size ' array size should be stated explicitly or defined implicitly by initialisation |
MISRAC2012-RULE_8_11-a-4 |
|
115: |
Reserved name '__asan_shadow_size' used |
MISRAC2012-RULE_21_2-a-2 |
|
115: |
The '__asan_shadow_size' object has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
119: |
'__asan_map_start ' array size should be stated explicitly or defined implicitly by initialisation |
MISRAC2012-RULE_8_11-a-4 |
|
119: |
Reserved name '__asan_map_start' used |
MISRAC2012-RULE_21_2-a-2 |
|
119: |
The '__asan_map_start' object has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
120: |
'__asan_map_end ' array size should be stated explicitly or defined implicitly by initialisation |
MISRAC2012-RULE_8_11-a-4 |
|
120: |
Reserved name '__asan_map_end' used |
MISRAC2012-RULE_21_2-a-2 |
|
120: |
The '__asan_map_end' object has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
121: |
'__asan_map_size ' array size should be stated explicitly or defined implicitly by initialisation |
MISRAC2012-RULE_8_11-a-4 |
|
121: |
Reserved name '__asan_map_size' used |
MISRAC2012-RULE_21_2-a-2 |
|
121: |
The '__asan_map_size' object has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
123: |
Reserved name '__ctor_list' used |
MISRAC2012-RULE_21_2-a-2 |
|
123: |
The '__ctor_list' object has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
124: |
Reserved name '__ctor_end' used |
MISRAC2012-RULE_21_2-a-2 |
|
124: |
The '__ctor_end' object has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
127: |
Reserved name '__rodata_dtdrv_start' used |
MISRAC2012-RULE_21_2-a-2 |
|
127: |
The '__rodata_dtdrv_start' object has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
128: |
Reserved name '__rodata_dtdrv_end' used |
MISRAC2012-RULE_21_2-a-2 |
|
128: |
The '__rodata_dtdrv_end' object has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
131: |
'core_v_str ' array size should be stated explicitly or defined implicitly by initialisation |
MISRAC2012-RULE_8_11-a-4 |
|
131: |
The 'core_v_str' object has no definition |
MISRAC2012-RULE_8_6-a-2 |
| /optee_os_MISRA/optee_os_ruchi393_core/include/kernel/lockdep.h |
|
7: |
Do not use reserved identifiers : __KERNEL_LOCKDEP_H |
MISRAC2012-RULE_21_1-a-2 |
|
21: |
Consider hiding the implementation of the structure 'lockdep_edge' in a translation unit 'thread.c' |
MISRAC2012-DIR_4_8-a-4 |
|
31: |
Consider hiding the implementation of the structure 'lockdep_node' in a translation unit 'thread.c' |
MISRAC2012-DIR_4_8-a-4 |
|
38: |
Consider hiding the implementation of the structure 'lockdep_node_head' in a translation unit 'thread.c' |
MISRAC2012-DIR_4_8-a-4 |
|
42: |
Consider hiding the implementation of the structure 'lockdep_lock' in a translation unit 'thread.c' |
MISRAC2012-DIR_4_8-a-4 |
|
48: |
Consider hiding the implementation of the structure 'lockdep_lock_head' in a translation unit 'thread.c' |
MISRAC2012-DIR_4_8-a-4 |
|
138: |
Parameter 'g' is not used in function 'lockdep_lock_acquire' |
MISRAC2012-RULE_2_7-a-4 |
|
138: |
Pass parameter "g" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
139: |
Parameter 'o' is not used in function 'lockdep_lock_acquire' |
MISRAC2012-RULE_2_7-a-4 |
|
139: |
Pass parameter "o" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
140: |
Parameter 'id' is not used in function 'lockdep_lock_acquire' |
MISRAC2012-RULE_2_7-a-4 |
|
143: |
Parameter 'o' is not used in function 'lockdep_lock_release' |
MISRAC2012-RULE_2_7-a-4 |
|
143: |
Pass parameter "o" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
144: |
Parameter 'id' is not used in function 'lockdep_lock_release' |
MISRAC2012-RULE_2_7-a-4 |
|
148: |
Parameter 'graph' is not used in function 'lockdep_lock_destroy' |
MISRAC2012-RULE_2_7-a-4 |
|
148: |
Pass parameter "graph" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
149: |
Parameter 'id' is not used in function 'lockdep_lock_destroy' |
MISRAC2012-RULE_2_7-a-4 |
| /optee_os_MISRA/optee_os_ruchi393_core/include/kernel/msg_param.h |
|
74: |
Shifting operation should be enclosed with if checking that RHS operand lies between zero and one less than the width in bits
of the underlying type of the LHS operand
|
MISRAC2012-RULE_12_2-a-2 |
|
78: |
Provide only one exit point in 'msg_param_attr_is_tmem' function |
MISRAC2012-RULE_15_5-a-4 |
|
80: |
Provide only one exit point in 'msg_param_attr_is_tmem' function |
MISRAC2012-RULE_15_5-a-4 |
| /optee_os_MISRA/optee_os_ruchi393_core/include/kernel/mutex.h |
|
14: |
The basic numerical type 'unsigned' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
16: |
The basic numerical type 'short' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
21: |
Consider hiding the implementation of the structure 'recursive_mutex' in a translation unit 'abort.c' |
MISRAC2012-DIR_4_8-a-4 |
|
21: |
Consider hiding the implementation of the structure 'recursive_mutex' in a translation unit 'arch_svc.c' |
MISRAC2012-DIR_4_8-a-4 |
|
21: |
Consider hiding the implementation of the structure 'recursive_mutex' in a translation unit 'asm-defines.c' |
MISRAC2012-DIR_4_8-a-4 |
|
21: |
Consider hiding the implementation of the structure 'recursive_mutex' in a translation unit 'boot.c' |
MISRAC2012-DIR_4_8-a-4 |
|
21: |
Consider hiding the implementation of the structure 'recursive_mutex' in a translation unit 'cache.c' |
MISRAC2012-DIR_4_8-a-4 |
|
21: |
Consider hiding the implementation of the structure 'recursive_mutex' in a translation unit 'console.c' |
MISRAC2012-DIR_4_8-a-4 |
|
21: |
Consider hiding the implementation of the structure 'recursive_mutex' in a translation unit 'core_mmu.c' |
MISRAC2012-DIR_4_8-a-4 |
|
21: |
Consider hiding the implementation of the structure 'recursive_mutex' in a translation unit 'core_mmu_lpae.c' |
MISRAC2012-DIR_4_8-a-4 |
|
21: |
Consider hiding the implementation of the structure 'recursive_mutex' in a translation unit 'dt.c' |
MISRAC2012-DIR_4_8-a-4 |
|
21: |
Consider hiding the implementation of the structure 'recursive_mutex' in a translation unit 'entry_fast.c' |
MISRAC2012-DIR_4_8-a-4 |
|
21: |
Consider hiding the implementation of the structure 'recursive_mutex' in a translation unit 'entry_std.c' |
MISRAC2012-DIR_4_8-a-4 |
|
21: |
Consider hiding the implementation of the structure 'recursive_mutex' in a translation unit 'ldelf_loader.c' |
MISRAC2012-DIR_4_8-a-4 |
|
21: |
Consider hiding the implementation of the structure 'recursive_mutex' in a translation unit 'ldelf_syscalls.c' |
MISRAC2012-DIR_4_8-a-4 |
|
21: |
Consider hiding the implementation of the structure 'recursive_mutex' in a translation unit 'link_dummies_init.c' |
MISRAC2012-DIR_4_8-a-4 |
|
21: |
Consider hiding the implementation of the structure 'recursive_mutex' in a translation unit 'link_dummies_paged.c' |
MISRAC2012-DIR_4_8-a-4 |
|
21: |
Consider hiding the implementation of the structure 'recursive_mutex' in a translation unit 'main.c' |
MISRAC2012-DIR_4_8-a-4 |
|
21: |
Consider hiding the implementation of the structure 'recursive_mutex' in a translation unit 'mobj.c' |
MISRAC2012-DIR_4_8-a-4 |
|
21: |
Consider hiding the implementation of the structure 'recursive_mutex' in a translation unit 'mobj_dyn_shm.c' |
MISRAC2012-DIR_4_8-a-4 |
|
21: |
Consider hiding the implementation of the structure 'recursive_mutex' in a translation unit 'msg_param.c' |
MISRAC2012-DIR_4_8-a-4 |
|
21: |
Consider hiding the implementation of the structure 'recursive_mutex' in a translation unit 'panic.c' |
MISRAC2012-DIR_4_8-a-4 |
|
21: |
Consider hiding the implementation of the structure 'recursive_mutex' in a translation unit 'pgt_cache.c' |
MISRAC2012-DIR_4_8-a-4 |
|
21: |
Consider hiding the implementation of the structure 'recursive_mutex' in a translation unit 'pm.c' |
MISRAC2012-DIR_4_8-a-4 |
|
21: |
Consider hiding the implementation of the structure 'recursive_mutex' in a translation unit 'pseudo_ta.c' |
MISRAC2012-DIR_4_8-a-4 |
|
21: |
Consider hiding the implementation of the structure 'recursive_mutex' in a translation unit 'ree_fs_ta.c' |
MISRAC2012-DIR_4_8-a-4 |
|
21: |
Consider hiding the implementation of the structure 'recursive_mutex' in a translation unit 'rng_fortuna.c' |
MISRAC2012-DIR_4_8-a-4 |
|
21: |
Consider hiding the implementation of the structure 'recursive_mutex' in a translation unit 'rpc_io_i2c.c' |
MISRAC2012-DIR_4_8-a-4 |
|
21: |
Consider hiding the implementation of the structure 'recursive_mutex' in a translation unit 'spin_lock_debug.c' |
MISRAC2012-DIR_4_8-a-4 |
|
21: |
Consider hiding the implementation of the structure 'recursive_mutex' in a translation unit 'tee_mm.c' |
MISRAC2012-DIR_4_8-a-4 |
|
21: |
Consider hiding the implementation of the structure 'recursive_mutex' in a translation unit 'tee_time.c' |
MISRAC2012-DIR_4_8-a-4 |
|
21: |
Consider hiding the implementation of the structure 'recursive_mutex' in a translation unit 'tee_time_arm_cntpct.c' |
MISRAC2012-DIR_4_8-a-4 |
|
21: |
Consider hiding the implementation of the structure 'recursive_mutex' in a translation unit 'thread.c' |
MISRAC2012-DIR_4_8-a-4 |
|
21: |
Consider hiding the implementation of the structure 'recursive_mutex' in a translation unit 'thread_optee_smc.c' |
MISRAC2012-DIR_4_8-a-4 |
|
21: |
Consider hiding the implementation of the structure 'recursive_mutex' in a translation unit 'timer_a64.c' |
MISRAC2012-DIR_4_8-a-4 |
|
21: |
Consider hiding the implementation of the structure 'recursive_mutex' in a translation unit 'trace_ext.c' |
MISRAC2012-DIR_4_8-a-4 |
|
21: |
Consider hiding the implementation of the structure 'recursive_mutex' in a translation unit 'unwind_arm64.c' |
MISRAC2012-DIR_4_8-a-4 |
|
21: |
Consider hiding the implementation of the structure 'recursive_mutex' in a translation unit 'vendor_props.c' |
MISRAC2012-DIR_4_8-a-4 |
|
23: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
37: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
40: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
41: |
Do not define function-like macro: mutex_unlock |
MISRAC2012-DIR_4_9-a-4 |
|
43: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
44: |
Do not define function-like macro: mutex_lock |
MISRAC2012-DIR_4_9-a-4 |
|
46: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
47: |
Do not define function-like macro: mutex_trylock |
MISRAC2012-DIR_4_9-a-4 |
|
49: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
50: |
Do not define function-like macro: mutex_read_unlock |
MISRAC2012-DIR_4_9-a-4 |
|
52: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
53: |
Do not define function-like macro: mutex_read_lock |
MISRAC2012-DIR_4_9-a-4 |
|
55: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
56: |
Do not define function-like macro: mutex_read_trylock |
MISRAC2012-DIR_4_9-a-4 |
|
59: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
60: |
Do not define function-like macro: mutex_unlock_recursive |
MISRAC2012-DIR_4_9-a-4 |
|
64: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
65: |
Do not define function-like macro: mutex_lock_recursive |
MISRAC2012-DIR_4_9-a-4 |
|
68: |
The identifier 'mutex_unlock' has the same name (or the first 31 characters of the name) as the macro defined in the current
translation unit
|
MISRAC2012-RULE_5_5-a-2 |
|
68: |
The identifier 'mutex_unlock' has the same name (or the first 63 characters of the name) as the macro defined in the current
translation unit
|
MISRAC2012-RULE_5_5-b-2 |
|
69: |
The identifier 'mutex_lock' has the same name (or the first 31 characters of the name) as the macro defined in the current
translation unit
|
MISRAC2012-RULE_5_5-a-2 |
|
69: |
The identifier 'mutex_lock' has the same name (or the first 63 characters of the name) as the macro defined in the current
translation unit
|
MISRAC2012-RULE_5_5-b-2 |
|
70: |
The identifier 'mutex_trylock' has the same name (or the first 31 characters of the name) as the macro defined in the current
translation unit
|
MISRAC2012-RULE_5_5-a-2 |
|
70: |
The identifier 'mutex_trylock' has the same name (or the first 63 characters of the name) as the macro defined in the current
translation unit
|
MISRAC2012-RULE_5_5-b-2 |
|
71: |
The identifier 'mutex_read_unlock' has the same name (or the first 31 characters of the name) as the macro defined in the
current translation unit
|
MISRAC2012-RULE_5_5-a-2 |
|
71: |
The identifier 'mutex_read_unlock' has the same name (or the first 63 characters of the name) as the macro defined in the
current translation unit
|
MISRAC2012-RULE_5_5-b-2 |
|
72: |
The identifier 'mutex_read_lock' has the same name (or the first 31 characters of the name) as the macro defined in the current
translation unit
|
MISRAC2012-RULE_5_5-a-2 |
|
72: |
The identifier 'mutex_read_lock' has the same name (or the first 63 characters of the name) as the macro defined in the current
translation unit
|
MISRAC2012-RULE_5_5-b-2 |
|
73: |
The identifier 'mutex_read_trylock' has the same name (or the first 31 characters of the name) as the macro defined in the
current translation unit
|
MISRAC2012-RULE_5_5-a-2 |
|
73: |
The identifier 'mutex_read_trylock' has the same name (or the first 63 characters of the name) as the macro defined in the
current translation unit
|
MISRAC2012-RULE_5_5-b-2 |
|
75: |
The identifier 'mutex_unlock_recursive' has the same name (or the first 31 characters of the name) as the macro defined in
the current translation unit
|
MISRAC2012-RULE_5_5-a-2 |
|
75: |
The identifier 'mutex_unlock_recursive' has the same name (or the first 63 characters of the name) as the macro defined in
the current translation unit
|
MISRAC2012-RULE_5_5-b-2 |
|
76: |
The identifier 'mutex_lock_recursive' has the same name (or the first 31 characters of the name) as the macro defined in the
current translation unit
|
MISRAC2012-RULE_5_5-a-2 |
|
76: |
The identifier 'mutex_lock_recursive' has the same name (or the first 63 characters of the name) as the macro defined in the
current translation unit
|
MISRAC2012-RULE_5_5-b-2 |
|
80: |
The basic numerical type 'unsigned' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
89: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
90: |
Do not define function-like macro: condvar_signal |
MISRAC2012-DIR_4_9-a-4 |
|
92: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
93: |
Do not define function-like macro: condvar_broadcast |
MISRAC2012-DIR_4_9-a-4 |
|
96: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
97: |
Do not define function-like macro: condvar_wait |
MISRAC2012-DIR_4_9-a-4 |
|
99: |
The identifier 'condvar_signal' has the same name (or the first 31 characters of the name) as the macro defined in the current
translation unit
|
MISRAC2012-RULE_5_5-a-2 |
|
99: |
The identifier 'condvar_signal' has the same name (or the first 63 characters of the name) as the macro defined in the current
translation unit
|
MISRAC2012-RULE_5_5-b-2 |
|
100: |
The identifier 'condvar_broadcast' has the same name (or the first 31 characters of the name) as the macro defined in the
current translation unit
|
MISRAC2012-RULE_5_5-a-2 |
|
100: |
The identifier 'condvar_broadcast' has the same name (or the first 63 characters of the name) as the macro defined in the
current translation unit
|
MISRAC2012-RULE_5_5-b-2 |
|
101: |
The identifier 'condvar_wait' has the same name (or the first 31 characters of the name) as the macro defined in the current
translation unit
|
MISRAC2012-RULE_5_5-a-2 |
|
101: |
The identifier 'condvar_wait' has the same name (or the first 63 characters of the name) as the macro defined in the current
translation unit
|
MISRAC2012-RULE_5_5-b-2 |
| /optee_os_MISRA/optee_os_ruchi393_core/include/kernel/panic.h |
|
13: |
Do not define function-like macro: __panic |
MISRAC2012-DIR_4_9-a-4 |
|
13: |
Do not use reserved identifiers : __panic |
MISRAC2012-RULE_21_1-a-2 |
|
13: |
Each instance of parameter: 'str' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
15: |
Do not define function-like macro: __panic |
MISRAC2012-DIR_4_9-a-4 |
|
15: |
Do not use reserved identifiers : __panic |
MISRAC2012-RULE_21_1-a-2 |
|
15: |
Each instance of parameter: 'str' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
18: |
A tag name 'file' is reused |
MISRAC2012-RULE_5_7-a-2 |
|
18: |
Reserved name '__do_panic' used |
MISRAC2012-RULE_21_2-a-2 |
|
18: |
The '__do_panic' function should not be declared with the '_Noreturn' specifier |
MISRAC2012-RULE_1_4-b-2 |
|
18: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
31: |
Do not define function-like macro: _panic0 |
MISRAC2012-DIR_4_9-a-4 |
|
31: |
Do not use reserved identifiers : _panic0 |
MISRAC2012-RULE_21_1-a-2 |
|
32: |
Do not define function-like macro: _panic1 |
MISRAC2012-DIR_4_9-a-4 |
|
32: |
Do not use reserved identifiers : _panic1 |
MISRAC2012-RULE_21_1-a-2 |
|
33: |
Do not define function-like macro: _panic_fn |
MISRAC2012-DIR_4_9-a-4 |
|
33: |
Do not use reserved identifiers : _panic_fn |
MISRAC2012-RULE_21_1-a-2 |
|
33: |
Each instance of parameter: 'name' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
34: |
Do not define function-like macro: panic |
MISRAC2012-DIR_4_9-a-4 |
|
34: |
Preprocessor operator ## should not be used |
MISRAC2012-RULE_20_10-a-4 |
| /optee_os_MISRA/optee_os_ruchi393_core/include/kernel/pm.h |
|
7: |
Do not use reserved identifiers : __KERNEL_PM_H |
MISRAC2012-RULE_21_1-a-2 |
|
54: |
Do not define function-like macro: PM_CALLBACK_HANDLE_INITIALIZER |
MISRAC2012-DIR_4_9-a-4 |
|
61: |
Do not define function-like macro: PM_CALLBACK_GET_HANDLE |
MISRAC2012-DIR_4_9-a-4 |
|
67: |
Section of code should not be 'commented out' |
MISRAC2012-DIR_4_4-a-4 |
|
131: |
The expression of the 'essentially Enum' type is assigned to an object with the 'essentially unsigned' type |
MISRAC2012-RULE_10_3-b-2 |
|
146: |
The expression of the 'essentially Enum' type is assigned to an object with the 'essentially unsigned' type |
MISRAC2012-RULE_10_3-b-2 |
| /optee_os_MISRA/optee_os_ruchi393_core/include/kernel/pseudo_ta.h |
|
43: |
Do not define function-like macro: pseudo_ta_register |
MISRAC2012-DIR_4_9-a-4 |
|
57: |
Integral type 'unsigned long' should not be converted to pointer to object type 'struct pseudo_ta_ctx *' |
MISRAC2012-RULE_11_4-a-4 |
|
57: |
Pointer to object type 'const struct ts_ctx *' should not be converted to integral type 'unsigned long' |
MISRAC2012-RULE_11_4-a-4 |
|
57: |
Reserved name '__ptr' used |
MISRAC2012-RULE_21_2-a-2 |
| /optee_os_MISRA/optee_os_ruchi393_core/include/kernel/refcount.h |
|
7: |
Do not use reserved identifiers : __KERNEL_REFCOUNT_H |
MISRAC2012-RULE_21_1-a-2 |
|
11: |
Do not embed "//" comment marker inside C-style comment: /* * Reference counter * * When val is 0, refcount_inc() does not
change the value and returns false. * Otherwise, it increments the value and returns true. * * refcount_dec() decrements the
value and returns true when the call * caused the value to become 0, false otherwise. * * Since each call to refcount_dec()
is supposed to match a call to * refcount_inc(), refcount_dec() called for val == 0 should never happen. * * This behaviour
makes this pattern possible: * if (!refcount_inc(r)) { * mutex_lock(m); * // Some other thread may have initialized o by now
so check that * // we still need to initialize o. * if (!o) { * o = initialize(); * refcount_set(r, 1); * } * mutex_unlock(m);
* } * * or * if (refcount_dec(r)) { * mutex_lock(m); * // Now that we have the mutex o can't be ininialized/uninitialized
* // by any other thread, check that the refcount value is still 0 * // to guard against the thread above already having reinitialized
o * if (!refcount_val(r) && o) * uninitialize(o) * mutex_unlock(m); * } * * where r if the reference counter, o is the object
and m the mutex * protecting the object. */
|
MISRAC2012-RULE_3_1-b-2 |
|
11: |
Section of code should not be 'commented out' |
MISRAC2012-DIR_4_4-a-4 |
|
51: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
59: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
64: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
| /optee_os_MISRA/optee_os_ruchi393_core/include/kernel/rpc_io_i2c.h |
|
7: |
Do not use reserved identifiers : __RPC_IO_I2C_H |
MISRAC2012-RULE_21_1-a-2 |
| /optee_os_MISRA/optee_os_ruchi393_core/include/kernel/tee_common.h |
|
32: |
Do not define function-like macro: tee_mtime_init |
MISRAC2012-DIR_4_9-a-4 |
|
33: |
Do not define function-like macro: tee_mtime_stamp |
MISRAC2012-DIR_4_9-a-4 |
|
34: |
Do not define function-like macro: tee_mtime_report |
MISRAC2012-DIR_4_9-a-4 |
|
35: |
Do not define function-like macro: tee_mtime_perftest |
MISRAC2012-DIR_4_9-a-4 |
| /optee_os_MISRA/optee_os_ruchi393_core/include/kernel/tee_common_otp.h |
|
14: |
Consider hiding the implementation of the structure 'tee_hw_unique_key' in a translation unit 'vendor_props.c' |
MISRAC2012-DIR_4_8-a-4 |
|
19: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
| /optee_os_MISRA/optee_os_ruchi393_core/include/kernel/tee_misc.h |
|
14: |
Do not define function-like macro: TEE_B2HS_HSBUF_SIZE |
MISRAC2012-DIR_4_9-a-4 |
|
15: |
Do not define function-like macro: TEE_HS2B_BBUF_SIZE |
MISRAC2012-DIR_4_9-a-4 |
|
15: |
Each instance of parameter: 'x' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
| /optee_os_MISRA/optee_os_ruchi393_core/include/kernel/tee_ta_manager.h |
|
27: |
Consider hiding the implementation of the structure 'tee_ta_session_head' in a translation unit 'mutex.c' |
MISRAC2012-DIR_4_8-a-4 |
|
27: |
Consider hiding the implementation of the structure 'tee_ta_session_head' in a translation unit 'panic.c' |
MISRAC2012-DIR_4_8-a-4 |
|
27: |
Consider hiding the implementation of the structure 'tee_ta_session_head' in a translation unit 'rng_fortuna.c' |
MISRAC2012-DIR_4_8-a-4 |
|
27: |
Consider hiding the implementation of the structure 'tee_ta_session_head' in a translation unit 'timer_a64.c' |
MISRAC2012-DIR_4_8-a-4 |
|
27: |
Consider hiding the implementation of the structure 'tee_ta_session_head' in a translation unit 'unwind_arm64.c' |
MISRAC2012-DIR_4_8-a-4 |
|
27: |
Consider hiding the implementation of the structure 'tee_ta_session_head' in a translation unit 'vendor_props.c' |
MISRAC2012-DIR_4_8-a-4 |
|
38: |
A tag name 'mobj' is reused |
MISRAC2012-RULE_5_7-a-2 |
|
43: |
Consider hiding the implementation of the structure 'tee_ta_param' in a translation unit 'abort.c' |
MISRAC2012-DIR_4_8-a-4 |
|
43: |
Consider hiding the implementation of the structure 'tee_ta_param' in a translation unit 'arch_svc.c' |
MISRAC2012-DIR_4_8-a-4 |
|
43: |
Consider hiding the implementation of the structure 'tee_ta_param' in a translation unit 'asm-defines.c' |
MISRAC2012-DIR_4_8-a-4 |
|
43: |
Consider hiding the implementation of the structure 'tee_ta_param' in a translation unit 'boot.c' |
MISRAC2012-DIR_4_8-a-4 |
|
43: |
Consider hiding the implementation of the structure 'tee_ta_param' in a translation unit 'cache.c' |
MISRAC2012-DIR_4_8-a-4 |
|
43: |
Consider hiding the implementation of the structure 'tee_ta_param' in a translation unit 'console.c' |
MISRAC2012-DIR_4_8-a-4 |
|
43: |
Consider hiding the implementation of the structure 'tee_ta_param' in a translation unit 'core_mmu.c' |
MISRAC2012-DIR_4_8-a-4 |
|
43: |
Consider hiding the implementation of the structure 'tee_ta_param' in a translation unit 'core_mmu_lpae.c' |
MISRAC2012-DIR_4_8-a-4 |
|
43: |
Consider hiding the implementation of the structure 'tee_ta_param' in a translation unit 'dt.c' |
MISRAC2012-DIR_4_8-a-4 |
|
43: |
Consider hiding the implementation of the structure 'tee_ta_param' in a translation unit 'entry_fast.c' |
MISRAC2012-DIR_4_8-a-4 |
|
43: |
Consider hiding the implementation of the structure 'tee_ta_param' in a translation unit 'ldelf_loader.c' |
MISRAC2012-DIR_4_8-a-4 |
|
43: |
Consider hiding the implementation of the structure 'tee_ta_param' in a translation unit 'ldelf_syscalls.c' |
MISRAC2012-DIR_4_8-a-4 |
|
43: |
Consider hiding the implementation of the structure 'tee_ta_param' in a translation unit 'link_dummies_init.c' |
MISRAC2012-DIR_4_8-a-4 |
|
43: |
Consider hiding the implementation of the structure 'tee_ta_param' in a translation unit 'link_dummies_paged.c' |
MISRAC2012-DIR_4_8-a-4 |
|
43: |
Consider hiding the implementation of the structure 'tee_ta_param' in a translation unit 'main.c' |
MISRAC2012-DIR_4_8-a-4 |
|
43: |
Consider hiding the implementation of the structure 'tee_ta_param' in a translation unit 'mobj.c' |
MISRAC2012-DIR_4_8-a-4 |
|
43: |
Consider hiding the implementation of the structure 'tee_ta_param' in a translation unit 'mobj_dyn_shm.c' |
MISRAC2012-DIR_4_8-a-4 |
|
43: |
Consider hiding the implementation of the structure 'tee_ta_param' in a translation unit 'msg_param.c' |
MISRAC2012-DIR_4_8-a-4 |
|
43: |
Consider hiding the implementation of the structure 'tee_ta_param' in a translation unit 'mutex.c' |
MISRAC2012-DIR_4_8-a-4 |
|
43: |
Consider hiding the implementation of the structure 'tee_ta_param' in a translation unit 'panic.c' |
MISRAC2012-DIR_4_8-a-4 |
|
43: |
Consider hiding the implementation of the structure 'tee_ta_param' in a translation unit 'pgt_cache.c' |
MISRAC2012-DIR_4_8-a-4 |
|
43: |
Consider hiding the implementation of the structure 'tee_ta_param' in a translation unit 'pm.c' |
MISRAC2012-DIR_4_8-a-4 |
|
43: |
Consider hiding the implementation of the structure 'tee_ta_param' in a translation unit 'ree_fs_ta.c' |
MISRAC2012-DIR_4_8-a-4 |
|
43: |
Consider hiding the implementation of the structure 'tee_ta_param' in a translation unit 'rng_fortuna.c' |
MISRAC2012-DIR_4_8-a-4 |
|
43: |
Consider hiding the implementation of the structure 'tee_ta_param' in a translation unit 'rpc_io_i2c.c' |
MISRAC2012-DIR_4_8-a-4 |
|
43: |
Consider hiding the implementation of the structure 'tee_ta_param' in a translation unit 'spin_lock_debug.c' |
MISRAC2012-DIR_4_8-a-4 |
|
43: |
Consider hiding the implementation of the structure 'tee_ta_param' in a translation unit 'tee_mm.c' |
MISRAC2012-DIR_4_8-a-4 |
|
43: |
Consider hiding the implementation of the structure 'tee_ta_param' in a translation unit 'tee_time.c' |
MISRAC2012-DIR_4_8-a-4 |
|
43: |
Consider hiding the implementation of the structure 'tee_ta_param' in a translation unit 'tee_time_arm_cntpct.c' |
MISRAC2012-DIR_4_8-a-4 |
|
43: |
Consider hiding the implementation of the structure 'tee_ta_param' in a translation unit 'thread.c' |
MISRAC2012-DIR_4_8-a-4 |
|
43: |
Consider hiding the implementation of the structure 'tee_ta_param' in a translation unit 'thread_optee_smc.c' |
MISRAC2012-DIR_4_8-a-4 |
|
43: |
Consider hiding the implementation of the structure 'tee_ta_param' in a translation unit 'timer_a64.c' |
MISRAC2012-DIR_4_8-a-4 |
|
43: |
Consider hiding the implementation of the structure 'tee_ta_param' in a translation unit 'trace_ext.c' |
MISRAC2012-DIR_4_8-a-4 |
|
43: |
Consider hiding the implementation of the structure 'tee_ta_param' in a translation unit 'unwind_arm64.c' |
MISRAC2012-DIR_4_8-a-4 |
|
43: |
Consider hiding the implementation of the structure 'tee_ta_param' in a translation unit 'vendor_props.c' |
MISRAC2012-DIR_4_8-a-4 |
|
45: |
The 'union' keyword shall not be used |
MISRAC2012-RULE_19_2-a-4 |
|
68: |
Consider hiding the implementation of the structure 'tee_ta_ctx' in a translation unit 'mutex.c' |
MISRAC2012-DIR_4_8-a-4 |
|
68: |
Consider hiding the implementation of the structure 'tee_ta_ctx' in a translation unit 'panic.c' |
MISRAC2012-DIR_4_8-a-4 |
|
68: |
Consider hiding the implementation of the structure 'tee_ta_ctx' in a translation unit 'rng_fortuna.c' |
MISRAC2012-DIR_4_8-a-4 |
|
68: |
Consider hiding the implementation of the structure 'tee_ta_ctx' in a translation unit 'timer_a64.c' |
MISRAC2012-DIR_4_8-a-4 |
|
68: |
Consider hiding the implementation of the structure 'tee_ta_ctx' in a translation unit 'unwind_arm64.c' |
MISRAC2012-DIR_4_8-a-4 |
|
68: |
Consider hiding the implementation of the structure 'tee_ta_ctx' in a translation unit 'vendor_props.c' |
MISRAC2012-DIR_4_8-a-4 |
|
71: |
A tag name 'ts_ctx' is reused |
MISRAC2012-RULE_5_7-a-2 |
|
79: |
Consider hiding the implementation of the structure 'tee_ta_session' in a translation unit 'abort.c' |
MISRAC2012-DIR_4_8-a-4 |
|
79: |
Consider hiding the implementation of the structure 'tee_ta_session' in a translation unit 'arch_svc.c' |
MISRAC2012-DIR_4_8-a-4 |
|
79: |
Consider hiding the implementation of the structure 'tee_ta_session' in a translation unit 'asm-defines.c' |
MISRAC2012-DIR_4_8-a-4 |
|
79: |
Consider hiding the implementation of the structure 'tee_ta_session' in a translation unit 'boot.c' |
MISRAC2012-DIR_4_8-a-4 |
|
79: |
Consider hiding the implementation of the structure 'tee_ta_session' in a translation unit 'cache.c' |
MISRAC2012-DIR_4_8-a-4 |
|
79: |
Consider hiding the implementation of the structure 'tee_ta_session' in a translation unit 'console.c' |
MISRAC2012-DIR_4_8-a-4 |
|
79: |
Consider hiding the implementation of the structure 'tee_ta_session' in a translation unit 'core_mmu.c' |
MISRAC2012-DIR_4_8-a-4 |
|
79: |
Consider hiding the implementation of the structure 'tee_ta_session' in a translation unit 'core_mmu_lpae.c' |
MISRAC2012-DIR_4_8-a-4 |
|
79: |
Consider hiding the implementation of the structure 'tee_ta_session' in a translation unit 'dt.c' |
MISRAC2012-DIR_4_8-a-4 |
|
79: |
Consider hiding the implementation of the structure 'tee_ta_session' in a translation unit 'entry_fast.c' |
MISRAC2012-DIR_4_8-a-4 |
|
79: |
Consider hiding the implementation of the structure 'tee_ta_session' in a translation unit 'ldelf_loader.c' |
MISRAC2012-DIR_4_8-a-4 |
|
79: |
Consider hiding the implementation of the structure 'tee_ta_session' in a translation unit 'ldelf_syscalls.c' |
MISRAC2012-DIR_4_8-a-4 |
|
79: |
Consider hiding the implementation of the structure 'tee_ta_session' in a translation unit 'link_dummies_init.c' |
MISRAC2012-DIR_4_8-a-4 |
|
79: |
Consider hiding the implementation of the structure 'tee_ta_session' in a translation unit 'link_dummies_paged.c' |
MISRAC2012-DIR_4_8-a-4 |
|
79: |
Consider hiding the implementation of the structure 'tee_ta_session' in a translation unit 'main.c' |
MISRAC2012-DIR_4_8-a-4 |
|
79: |
Consider hiding the implementation of the structure 'tee_ta_session' in a translation unit 'mobj.c' |
MISRAC2012-DIR_4_8-a-4 |
|
79: |
Consider hiding the implementation of the structure 'tee_ta_session' in a translation unit 'mobj_dyn_shm.c' |
MISRAC2012-DIR_4_8-a-4 |
|
79: |
Consider hiding the implementation of the structure 'tee_ta_session' in a translation unit 'msg_param.c' |
MISRAC2012-DIR_4_8-a-4 |
|
79: |
Consider hiding the implementation of the structure 'tee_ta_session' in a translation unit 'mutex.c' |
MISRAC2012-DIR_4_8-a-4 |
|
79: |
Consider hiding the implementation of the structure 'tee_ta_session' in a translation unit 'panic.c' |
MISRAC2012-DIR_4_8-a-4 |
|
79: |
Consider hiding the implementation of the structure 'tee_ta_session' in a translation unit 'pgt_cache.c' |
MISRAC2012-DIR_4_8-a-4 |
|
79: |
Consider hiding the implementation of the structure 'tee_ta_session' in a translation unit 'pm.c' |
MISRAC2012-DIR_4_8-a-4 |
|
79: |
Consider hiding the implementation of the structure 'tee_ta_session' in a translation unit 'ree_fs_ta.c' |
MISRAC2012-DIR_4_8-a-4 |
|
79: |
Consider hiding the implementation of the structure 'tee_ta_session' in a translation unit 'rng_fortuna.c' |
MISRAC2012-DIR_4_8-a-4 |
|
79: |
Consider hiding the implementation of the structure 'tee_ta_session' in a translation unit 'rpc_io_i2c.c' |
MISRAC2012-DIR_4_8-a-4 |
|
79: |
Consider hiding the implementation of the structure 'tee_ta_session' in a translation unit 'spin_lock_debug.c' |
MISRAC2012-DIR_4_8-a-4 |
|
79: |
Consider hiding the implementation of the structure 'tee_ta_session' in a translation unit 'tee_mm.c' |
MISRAC2012-DIR_4_8-a-4 |
|
79: |
Consider hiding the implementation of the structure 'tee_ta_session' in a translation unit 'tee_time.c' |
MISRAC2012-DIR_4_8-a-4 |
|
79: |
Consider hiding the implementation of the structure 'tee_ta_session' in a translation unit 'tee_time_arm_cntpct.c' |
MISRAC2012-DIR_4_8-a-4 |
|
79: |
Consider hiding the implementation of the structure 'tee_ta_session' in a translation unit 'thread.c' |
MISRAC2012-DIR_4_8-a-4 |
|
79: |
Consider hiding the implementation of the structure 'tee_ta_session' in a translation unit 'thread_optee_smc.c' |
MISRAC2012-DIR_4_8-a-4 |
|
79: |
Consider hiding the implementation of the structure 'tee_ta_session' in a translation unit 'timer_a64.c' |
MISRAC2012-DIR_4_8-a-4 |
|
79: |
Consider hiding the implementation of the structure 'tee_ta_session' in a translation unit 'trace_ext.c' |
MISRAC2012-DIR_4_8-a-4 |
|
79: |
Consider hiding the implementation of the structure 'tee_ta_session' in a translation unit 'unwind_arm64.c' |
MISRAC2012-DIR_4_8-a-4 |
|
79: |
Consider hiding the implementation of the structure 'tee_ta_session' in a translation unit 'vendor_props.c' |
MISRAC2012-DIR_4_8-a-4 |
|
92: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
150: |
Parameter 'pc' is not used in function 'tee_ta_gprof_sample_pc' |
MISRAC2012-RULE_2_7-a-4 |
| +
|
167: |
Integer overflow: value of (__ptr - 24) will be 18,446,744,073,709,551,592 instead of -24 (result type: 64 bits, unsigned,
min: 0, max: 18,446,744,073,709,551,615)
|
MISRAC2012-DIR_4_1-k-2 |
| |
|
Start of the path
tee_ta_manager.h (166): is_ta_ctx(...)
tee_ta_manager.c (977): bool is_ta_ctx(struct ts_ctx *ctx)
tee_ta_manager.c (979): is_user_ta_ctx(...)
user_ta.c (408): bool is_user_ta_ctx(struct ts_ctx *ctx)
user_ta.c (410): return ctx && ctx->ops == _user_ta_ops; *** Condition evaluation: ctx (assuming 0) -> ctx = 0 *** Condition evaluation: (ctx != 0) (assuming false)
tee_ta_manager.c (979): return is_user_ta_ctx(ctx) || is_pseudo_ta_ctx(ctx); *** Condition evaluation: is_user_ta_ctx(...) (false) *** Condition evaluation: (int)is_pseudo_ta_ctx(...) (assuming true)
tee_ta_manager.h (166): assert(is_ta_ctx(ctx));
Integer overflow point
tee_ta_manager.h (167): return container_of(ctx, struct tee_ta_ctx, ts_ctx); *** Variable assignment: __ptr = ctx -> __ptr = 0 *** Variable assignment: tmp$0 = (unsigned long)__ptr -> tmp$0 = 0 *** Variable assignment: tmp$1 = (tmp$0 - 24) -> tmp$1 = 18446744073709551592 |
|
|
167: |
Integral type 'unsigned long' should not be converted to pointer to object type 'struct tee_ta_ctx *' |
MISRAC2012-RULE_11_4-a-4 |
|
167: |
Pointer to object type 'const struct ts_ctx *' should not be converted to integral type 'unsigned long' |
MISRAC2012-RULE_11_4-a-4 |
|
167: |
Reserved name '__ptr' used |
MISRAC2012-RULE_21_2-a-2 |
| /optee_os_MISRA/optee_os_ruchi393_core/include/kernel/tee_time.h |
|
11: |
Reserved name 'time' used |
MISRAC2012-RULE_21_2-b-2 |
|
11: |
Reserved name 'time' used |
MISRAC2012-RULE_21_2-c-2 |
|
13: |
Reserved name 'time' used |
MISRAC2012-RULE_21_2-b-2 |
|
13: |
Reserved name 'time' used |
MISRAC2012-RULE_21_2-c-2 |
|
14: |
Reserved name 'time' used |
MISRAC2012-RULE_21_2-b-2 |
|
14: |
Reserved name 'time' used |
MISRAC2012-RULE_21_2-c-2 |
|
15: |
Reserved name 'time' used |
MISRAC2012-RULE_21_2-b-2 |
|
15: |
Reserved name 'time' used |
MISRAC2012-RULE_21_2-c-2 |
| /optee_os_MISRA/optee_os_ruchi393_core/include/kernel/time_source.h |
|
1: |
Multiple include guard should appear as first #ifndef or #if preprocessor directive |
MISRAC2012-DIR_4_10-a-2 |
|
15: |
Do not define function-like macro: REGISTER_TIME_SOURCE |
MISRAC2012-DIR_4_9-a-4 |
|
17: |
Each instance of parameter: 'source' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
20: |
Reserved name '_time_source' used |
MISRAC2012-RULE_21_2-a-2 |
| /optee_os_MISRA/optee_os_ruchi393_core/include/kernel/timer.h |
|
7: |
Do not use reserved identifiers : __TIMER_H |
MISRAC2012-RULE_21_1-a-2 |
| /optee_os_MISRA/optee_os_ruchi393_core/include/kernel/tpm.h |
|
7: |
Do not use reserved identifiers : __KERNEL_TPM_H__ |
MISRAC2012-RULE_21_1-a-2 |
|
33: |
Parameter 'buf' is not used in function 'tpm_get_event_log' |
MISRAC2012-RULE_2_7-a-4 |
|
33: |
Pass parameter "buf" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
34: |
Parameter 'size' is not used in function 'tpm_get_event_log' |
MISRAC2012-RULE_2_7-a-4 |
|
34: |
Pass parameter "size" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
36: |
Integer constant '0xFFFF000A' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
39: |
Parameter 'fdt' is not used in function 'tpm_map_log_area' |
MISRAC2012-RULE_2_7-a-4 |
|
39: |
Pass parameter "fdt" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
| /optee_os_MISRA/optee_os_ruchi393_core/include/kernel/trace_ta.h |
|
12: |
Do not define function-like macro: TAMSG |
MISRAC2012-DIR_4_9-a-4 |
|
13: |
Do not define function-like macro: TAMSG_RAW |
MISRAC2012-DIR_4_9-a-4 |
|
15: |
Do not define function-like macro: TAMSG |
MISRAC2012-DIR_4_9-a-4 |
|
16: |
Do not define function-like macro: TAMSG_RAW |
MISRAC2012-DIR_4_9-a-4 |
| /optee_os_MISRA/optee_os_ruchi393_core/include/kernel/ts_manager.h |
|
9: |
Do not use reserved identifiers : __KERNEL_TS_MANAGER_H |
MISRAC2012-RULE_21_1-a-2 |
|
42: |
Consider hiding the implementation of the structure 'ts_ops' in a translation unit 'arch_svc.c' |
MISRAC2012-DIR_4_8-a-4 |
|
42: |
Consider hiding the implementation of the structure 'ts_ops' in a translation unit 'asm-defines.c' |
MISRAC2012-DIR_4_8-a-4 |
|
42: |
Consider hiding the implementation of the structure 'ts_ops' in a translation unit 'boot.c' |
MISRAC2012-DIR_4_8-a-4 |
|
42: |
Consider hiding the implementation of the structure 'ts_ops' in a translation unit 'cache.c' |
MISRAC2012-DIR_4_8-a-4 |
|
42: |
Consider hiding the implementation of the structure 'ts_ops' in a translation unit 'console.c' |
MISRAC2012-DIR_4_8-a-4 |
|
42: |
Consider hiding the implementation of the structure 'ts_ops' in a translation unit 'core_mmu_lpae.c' |
MISRAC2012-DIR_4_8-a-4 |
|
42: |
Consider hiding the implementation of the structure 'ts_ops' in a translation unit 'dt.c' |
MISRAC2012-DIR_4_8-a-4 |
|
42: |
Consider hiding the implementation of the structure 'ts_ops' in a translation unit 'entry_fast.c' |
MISRAC2012-DIR_4_8-a-4 |
|
42: |
Consider hiding the implementation of the structure 'ts_ops' in a translation unit 'entry_std.c' |
MISRAC2012-DIR_4_8-a-4 |
|
42: |
Consider hiding the implementation of the structure 'ts_ops' in a translation unit 'link_dummies_init.c' |
MISRAC2012-DIR_4_8-a-4 |
|
42: |
Consider hiding the implementation of the structure 'ts_ops' in a translation unit 'link_dummies_paged.c' |
MISRAC2012-DIR_4_8-a-4 |
|
42: |
Consider hiding the implementation of the structure 'ts_ops' in a translation unit 'main.c' |
MISRAC2012-DIR_4_8-a-4 |
|
42: |
Consider hiding the implementation of the structure 'ts_ops' in a translation unit 'mobj.c' |
MISRAC2012-DIR_4_8-a-4 |
|
42: |
Consider hiding the implementation of the structure 'ts_ops' in a translation unit 'mobj_dyn_shm.c' |
MISRAC2012-DIR_4_8-a-4 |
|
42: |
Consider hiding the implementation of the structure 'ts_ops' in a translation unit 'msg_param.c' |
MISRAC2012-DIR_4_8-a-4 |
|
42: |
Consider hiding the implementation of the structure 'ts_ops' in a translation unit 'mutex.c' |
MISRAC2012-DIR_4_8-a-4 |
|
42: |
Consider hiding the implementation of the structure 'ts_ops' in a translation unit 'panic.c' |
MISRAC2012-DIR_4_8-a-4 |
|
42: |
Consider hiding the implementation of the structure 'ts_ops' in a translation unit 'pgt_cache.c' |
MISRAC2012-DIR_4_8-a-4 |
|
42: |
Consider hiding the implementation of the structure 'ts_ops' in a translation unit 'pm.c' |
MISRAC2012-DIR_4_8-a-4 |
|
42: |
Consider hiding the implementation of the structure 'ts_ops' in a translation unit 'ree_fs_ta.c' |
MISRAC2012-DIR_4_8-a-4 |
|
42: |
Consider hiding the implementation of the structure 'ts_ops' in a translation unit 'rng_fortuna.c' |
MISRAC2012-DIR_4_8-a-4 |
|
42: |
Consider hiding the implementation of the structure 'ts_ops' in a translation unit 'rpc_io_i2c.c' |
MISRAC2012-DIR_4_8-a-4 |
|
42: |
Consider hiding the implementation of the structure 'ts_ops' in a translation unit 'spin_lock_debug.c' |
MISRAC2012-DIR_4_8-a-4 |
|
42: |
Consider hiding the implementation of the structure 'ts_ops' in a translation unit 'tee_mm.c' |
MISRAC2012-DIR_4_8-a-4 |
|
42: |
Consider hiding the implementation of the structure 'ts_ops' in a translation unit 'tee_time.c' |
MISRAC2012-DIR_4_8-a-4 |
|
42: |
Consider hiding the implementation of the structure 'ts_ops' in a translation unit 'tee_time_arm_cntpct.c' |
MISRAC2012-DIR_4_8-a-4 |
|
42: |
Consider hiding the implementation of the structure 'ts_ops' in a translation unit 'thread.c' |
MISRAC2012-DIR_4_8-a-4 |
|
42: |
Consider hiding the implementation of the structure 'ts_ops' in a translation unit 'thread_optee_smc.c' |
MISRAC2012-DIR_4_8-a-4 |
|
42: |
Consider hiding the implementation of the structure 'ts_ops' in a translation unit 'timer_a64.c' |
MISRAC2012-DIR_4_8-a-4 |
|
42: |
Consider hiding the implementation of the structure 'ts_ops' in a translation unit 'trace_ext.c' |
MISRAC2012-DIR_4_8-a-4 |
|
42: |
Consider hiding the implementation of the structure 'ts_ops' in a translation unit 'unwind_arm64.c' |
MISRAC2012-DIR_4_8-a-4 |
|
42: |
Consider hiding the implementation of the structure 'ts_ops' in a translation unit 'vendor_props.c' |
MISRAC2012-DIR_4_8-a-4 |
|
49: |
Identifier 'get_instance_id' is already used as static object or function identifier |
MISRAC2012-RULE_5_9-a-4 |
| /optee_os_MISRA/optee_os_ruchi393_core/include/kernel/ts_store.h |
|
7: |
Do not use reserved identifiers : __KERNEL_TS_STORE_H |
MISRAC2012-RULE_21_1-a-2 |
|
12: |
Consider hiding the implementation of the structure 'ts_store_ops' in a translation unit 'arch_svc.c' |
MISRAC2012-DIR_4_8-a-4 |
|
12: |
Consider hiding the implementation of the structure 'ts_store_ops' in a translation unit 'ldelf_loader.c' |
MISRAC2012-DIR_4_8-a-4 |
|
35: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
69: |
Do not define function-like macro: REGISTER_TA_STORE |
MISRAC2012-DIR_4_9-a-4 |
|
70: |
Preprocessor operator ## should not be used |
MISRAC2012-RULE_20_10-a-4 |
|
71: |
Each instance of parameter: 'prio' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
80: |
Do not define function-like macro: REGISTER_SP_STORE |
MISRAC2012-DIR_4_9-a-4 |
|
81: |
Preprocessor operator ## should not be used |
MISRAC2012-RULE_20_10-a-4 |
|
82: |
Each instance of parameter: 'prio' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
| /optee_os_MISRA/optee_os_ruchi393_core/include/kernel/user_access.h |
|
7: |
Do not use reserved identifiers : __KERNEL_USER_ACCESS_H |
MISRAC2012-RULE_21_1-a-2 |
|
42: |
Arithmetic type 'unsigned long' should not be converted to pointer to void type |
MISRAC2012-RULE_11_6-a-2 |
| /optee_os_MISRA/optee_os_ruchi393_core/include/kernel/user_mode_ctx.h |
|
8: |
Do not use reserved identifiers : __KERNEL_USER_MODE_CTX_H |
MISRAC2012-RULE_21_1-a-2 |
| +
|
19: |
Condition "is_sp_ctx(...)" always evaluates to false |
MISRAC2012-RULE_14_3-ac-2 |
| |
|
Start of the path
user_mode_ctx.h (17): static inline bool is_user_mode_ctx(struct ts_ctx *ctx)
user_mode_ctx.h (19): is_user_ta_ctx(...)
user_ta.c (410): return ctx && ctx->ops == _user_ta_ops; *** Condition evaluation: (ctx != 0) (assuming false)
user_mode_ctx.h (19): is_stmm_ctx(...)
stmm_sp.h (147): return IS_ENABLED(CFG_WITH_STMM_SP) &&
user_mode_ctx.h (19): is_sp_ctx(...)
secure_partition.h (55): return false;
Point where senseless condition is used
user_mode_ctx.h (19): return is_user_ta_ctx(ctx) || is_stmm_ctx(ctx) || is_sp_ctx(ctx); |
|
| +
|
19: |
Condition "is_stmm_ctx(...)" always evaluates to false |
MISRAC2012-RULE_14_3-ac-2 |
| |
|
Start of the path
user_mode_ctx.h (17): static inline bool is_user_mode_ctx(struct ts_ctx *ctx)
user_mode_ctx.h (19): is_user_ta_ctx(...)
user_ta.c (410): return ctx && ctx->ops == _user_ta_ops; *** Condition evaluation: (ctx != 0) (assuming false)
user_mode_ctx.h (19): is_stmm_ctx(...)
stmm_sp.h (147): return IS_ENABLED(CFG_WITH_STMM_SP) &&
Point where senseless condition is used
user_mode_ctx.h (19): return is_user_ta_ctx(ctx) || is_stmm_ctx(ctx) || is_sp_ctx(ctx); |
|
|
19: |
The operands of a logical '||' in function 'is_user_mode_ctx' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
19: |
The operands of a logical '||' in function 'is_user_mode_ctx' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
19: |
The operands of a logical '||' in function 'is_user_mode_ctx' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
24: |
Conditional statement 'if' in a function 'to_user_mode_ctx' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
25: |
Provide only one exit point in 'to_user_mode_ctx' function |
MISRAC2012-RULE_15_5-a-4 |
| +
|
26: |
Condition "is_sp_ctx(...)" always evaluates to false |
MISRAC2012-RULE_14_3-ac-2 |
| |
|
Start of the path
user_mode_ctx.h (22): static inline struct user_mode_ctx *to_user_mode_ctx(struct ts_ctx *ctx)
user_mode_ctx.h (24): is_user_ta_ctx(...)
user_ta.c (410): return ctx && ctx->ops == _user_ta_ops; *** Condition evaluation: (ctx != 0) (assuming false)
user_mode_ctx.h (24): if (is_user_ta_ctx(ctx)) *** Condition evaluation: is_user_ta_ctx(...) (false)
user_mode_ctx.h (26): is_sp_ctx(...)
secure_partition.h (55): return false;
Point where senseless condition is used
user_mode_ctx.h (26): else if (is_sp_ctx(ctx)) |
|
|
26: |
Conditional statement 'if' in a function 'to_user_mode_ctx' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
27: |
Provide only one exit point in 'to_user_mode_ctx' function |
MISRAC2012-RULE_15_5-a-4 |
|
29: |
An 'else' statement in a function 'to_user_mode_ctx' shall be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
29: |
Provide only one exit point in 'to_user_mode_ctx' function |
MISRAC2012-RULE_15_5-a-4 |
| /optee_os_MISRA/optee_os_ruchi393_core/include/kernel/user_mode_ctx_struct.h |
|
8: |
Do not use reserved identifiers : __KERNEL_USER_MODE_CTX_STRUCT_H |
MISRAC2012-RULE_21_1-a-2 |
|
32: |
A tag name 'vm_info' is reused |
MISRAC2012-RULE_5_7-a-2 |
|
37: |
A tag name 'ts_ctx' is reused |
MISRAC2012-RULE_5_7-a-2 |
| /optee_os_MISRA/optee_os_ruchi393_core/include/kernel/user_ta.h |
|
35: |
Consider hiding the implementation of the structure 'user_ta_ctx' in a translation unit 'asm-defines.c' |
MISRAC2012-DIR_4_8-a-4 |
|
35: |
Consider hiding the implementation of the structure 'user_ta_ctx' in a translation unit 'boot.c' |
MISRAC2012-DIR_4_8-a-4 |
|
35: |
Consider hiding the implementation of the structure 'user_ta_ctx' in a translation unit 'cache.c' |
MISRAC2012-DIR_4_8-a-4 |
|
35: |
Consider hiding the implementation of the structure 'user_ta_ctx' in a translation unit 'console.c' |
MISRAC2012-DIR_4_8-a-4 |
|
35: |
Consider hiding the implementation of the structure 'user_ta_ctx' in a translation unit 'core_mmu_lpae.c' |
MISRAC2012-DIR_4_8-a-4 |
|
35: |
Consider hiding the implementation of the structure 'user_ta_ctx' in a translation unit 'dt.c' |
MISRAC2012-DIR_4_8-a-4 |
|
35: |
Consider hiding the implementation of the structure 'user_ta_ctx' in a translation unit 'entry_fast.c' |
MISRAC2012-DIR_4_8-a-4 |
|
35: |
Consider hiding the implementation of the structure 'user_ta_ctx' in a translation unit 'entry_std.c' |
MISRAC2012-DIR_4_8-a-4 |
|
35: |
Consider hiding the implementation of the structure 'user_ta_ctx' in a translation unit 'link_dummies_init.c' |
MISRAC2012-DIR_4_8-a-4 |
|
35: |
Consider hiding the implementation of the structure 'user_ta_ctx' in a translation unit 'link_dummies_paged.c' |
MISRAC2012-DIR_4_8-a-4 |
|
35: |
Consider hiding the implementation of the structure 'user_ta_ctx' in a translation unit 'main.c' |
MISRAC2012-DIR_4_8-a-4 |
|
35: |
Consider hiding the implementation of the structure 'user_ta_ctx' in a translation unit 'mobj.c' |
MISRAC2012-DIR_4_8-a-4 |
|
35: |
Consider hiding the implementation of the structure 'user_ta_ctx' in a translation unit 'mobj_dyn_shm.c' |
MISRAC2012-DIR_4_8-a-4 |
|
35: |
Consider hiding the implementation of the structure 'user_ta_ctx' in a translation unit 'msg_param.c' |
MISRAC2012-DIR_4_8-a-4 |
|
35: |
Consider hiding the implementation of the structure 'user_ta_ctx' in a translation unit 'pgt_cache.c' |
MISRAC2012-DIR_4_8-a-4 |
|
35: |
Consider hiding the implementation of the structure 'user_ta_ctx' in a translation unit 'pm.c' |
MISRAC2012-DIR_4_8-a-4 |
|
35: |
Consider hiding the implementation of the structure 'user_ta_ctx' in a translation unit 'pseudo_ta.c' |
MISRAC2012-DIR_4_8-a-4 |
|
35: |
Consider hiding the implementation of the structure 'user_ta_ctx' in a translation unit 'ree_fs_ta.c' |
MISRAC2012-DIR_4_8-a-4 |
|
35: |
Consider hiding the implementation of the structure 'user_ta_ctx' in a translation unit 'rpc_io_i2c.c' |
MISRAC2012-DIR_4_8-a-4 |
|
35: |
Consider hiding the implementation of the structure 'user_ta_ctx' in a translation unit 'spin_lock_debug.c' |
MISRAC2012-DIR_4_8-a-4 |
|
35: |
Consider hiding the implementation of the structure 'user_ta_ctx' in a translation unit 'tee_mm.c' |
MISRAC2012-DIR_4_8-a-4 |
|
35: |
Consider hiding the implementation of the structure 'user_ta_ctx' in a translation unit 'tee_time.c' |
MISRAC2012-DIR_4_8-a-4 |
|
35: |
Consider hiding the implementation of the structure 'user_ta_ctx' in a translation unit 'tee_time_arm_cntpct.c' |
MISRAC2012-DIR_4_8-a-4 |
|
35: |
Consider hiding the implementation of the structure 'user_ta_ctx' in a translation unit 'thread.c' |
MISRAC2012-DIR_4_8-a-4 |
|
35: |
Consider hiding the implementation of the structure 'user_ta_ctx' in a translation unit 'thread_optee_smc.c' |
MISRAC2012-DIR_4_8-a-4 |
|
35: |
Consider hiding the implementation of the structure 'user_ta_ctx' in a translation unit 'trace_ext.c' |
MISRAC2012-DIR_4_8-a-4 |
|
57: |
Integral type 'unsigned long' should not be converted to pointer to object type 'struct user_ta_ctx *' |
MISRAC2012-RULE_11_4-a-4 |
|
57: |
Pointer to object type 'const struct ts_ctx *' should not be converted to integral type 'unsigned long' |
MISRAC2012-RULE_11_4-a-4 |
|
57: |
Reserved name '__ptr' used |
MISRAC2012-RULE_21_2-a-2 |
| /optee_os_MISRA/optee_os_ruchi393_core/include/kernel/virtualization.h |
|
23: |
The 'virt_guest_created' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
36: |
The 'virt_guest_destroyed' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
48: |
The 'virt_set_guest' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
58: |
The 'virt_unset_guest' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
66: |
The 'virt_on_stdcall' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
78: |
The 'virt_init_memory' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
83: |
The 'virt_get_memory_map' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
90: |
The 'virt_get_ta_ram' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
| /optee_os_MISRA/optee_os_ruchi393_core/include/kernel/wait_queue.h |
|
17: |
Consider hiding the implementation of the structure 'wait_queue_elem' in a translation unit 'abort.c' |
MISRAC2012-DIR_4_8-a-4 |
|
17: |
Consider hiding the implementation of the structure 'wait_queue_elem' in a translation unit 'arch_svc.c' |
MISRAC2012-DIR_4_8-a-4 |
|
17: |
Consider hiding the implementation of the structure 'wait_queue_elem' in a translation unit 'asm-defines.c' |
MISRAC2012-DIR_4_8-a-4 |
|
17: |
Consider hiding the implementation of the structure 'wait_queue_elem' in a translation unit 'boot.c' |
MISRAC2012-DIR_4_8-a-4 |
|
17: |
Consider hiding the implementation of the structure 'wait_queue_elem' in a translation unit 'cache.c' |
MISRAC2012-DIR_4_8-a-4 |
|
17: |
Consider hiding the implementation of the structure 'wait_queue_elem' in a translation unit 'console.c' |
MISRAC2012-DIR_4_8-a-4 |
|
17: |
Consider hiding the implementation of the structure 'wait_queue_elem' in a translation unit 'core_mmu.c' |
MISRAC2012-DIR_4_8-a-4 |
|
17: |
Consider hiding the implementation of the structure 'wait_queue_elem' in a translation unit 'core_mmu_lpae.c' |
MISRAC2012-DIR_4_8-a-4 |
|
17: |
Consider hiding the implementation of the structure 'wait_queue_elem' in a translation unit 'dt.c' |
MISRAC2012-DIR_4_8-a-4 |
|
17: |
Consider hiding the implementation of the structure 'wait_queue_elem' in a translation unit 'entry_fast.c' |
MISRAC2012-DIR_4_8-a-4 |
|
17: |
Consider hiding the implementation of the structure 'wait_queue_elem' in a translation unit 'entry_std.c' |
MISRAC2012-DIR_4_8-a-4 |
|
17: |
Consider hiding the implementation of the structure 'wait_queue_elem' in a translation unit 'ldelf_loader.c' |
MISRAC2012-DIR_4_8-a-4 |
|
17: |
Consider hiding the implementation of the structure 'wait_queue_elem' in a translation unit 'ldelf_syscalls.c' |
MISRAC2012-DIR_4_8-a-4 |
|
17: |
Consider hiding the implementation of the structure 'wait_queue_elem' in a translation unit 'link_dummies_init.c' |
MISRAC2012-DIR_4_8-a-4 |
|
17: |
Consider hiding the implementation of the structure 'wait_queue_elem' in a translation unit 'link_dummies_paged.c' |
MISRAC2012-DIR_4_8-a-4 |
|
17: |
Consider hiding the implementation of the structure 'wait_queue_elem' in a translation unit 'main.c' |
MISRAC2012-DIR_4_8-a-4 |
|
17: |
Consider hiding the implementation of the structure 'wait_queue_elem' in a translation unit 'mobj.c' |
MISRAC2012-DIR_4_8-a-4 |
|
17: |
Consider hiding the implementation of the structure 'wait_queue_elem' in a translation unit 'mobj_dyn_shm.c' |
MISRAC2012-DIR_4_8-a-4 |
|
17: |
Consider hiding the implementation of the structure 'wait_queue_elem' in a translation unit 'msg_param.c' |
MISRAC2012-DIR_4_8-a-4 |
|
17: |
Consider hiding the implementation of the structure 'wait_queue_elem' in a translation unit 'panic.c' |
MISRAC2012-DIR_4_8-a-4 |
|
17: |
Consider hiding the implementation of the structure 'wait_queue_elem' in a translation unit 'pgt_cache.c' |
MISRAC2012-DIR_4_8-a-4 |
|
17: |
Consider hiding the implementation of the structure 'wait_queue_elem' in a translation unit 'pm.c' |
MISRAC2012-DIR_4_8-a-4 |
|
17: |
Consider hiding the implementation of the structure 'wait_queue_elem' in a translation unit 'pseudo_ta.c' |
MISRAC2012-DIR_4_8-a-4 |
|
17: |
Consider hiding the implementation of the structure 'wait_queue_elem' in a translation unit 'ree_fs_ta.c' |
MISRAC2012-DIR_4_8-a-4 |
|
17: |
Consider hiding the implementation of the structure 'wait_queue_elem' in a translation unit 'rng_fortuna.c' |
MISRAC2012-DIR_4_8-a-4 |
|
17: |
Consider hiding the implementation of the structure 'wait_queue_elem' in a translation unit 'rpc_io_i2c.c' |
MISRAC2012-DIR_4_8-a-4 |
|
17: |
Consider hiding the implementation of the structure 'wait_queue_elem' in a translation unit 'spin_lock_debug.c' |
MISRAC2012-DIR_4_8-a-4 |
|
17: |
Consider hiding the implementation of the structure 'wait_queue_elem' in a translation unit 'tee_mm.c' |
MISRAC2012-DIR_4_8-a-4 |
|
17: |
Consider hiding the implementation of the structure 'wait_queue_elem' in a translation unit 'tee_time.c' |
MISRAC2012-DIR_4_8-a-4 |
|
17: |
Consider hiding the implementation of the structure 'wait_queue_elem' in a translation unit 'tee_time_arm_cntpct.c' |
MISRAC2012-DIR_4_8-a-4 |
|
17: |
Consider hiding the implementation of the structure 'wait_queue_elem' in a translation unit 'thread.c' |
MISRAC2012-DIR_4_8-a-4 |
|
17: |
Consider hiding the implementation of the structure 'wait_queue_elem' in a translation unit 'thread_optee_smc.c' |
MISRAC2012-DIR_4_8-a-4 |
|
17: |
Consider hiding the implementation of the structure 'wait_queue_elem' in a translation unit 'timer_a64.c' |
MISRAC2012-DIR_4_8-a-4 |
|
17: |
Consider hiding the implementation of the structure 'wait_queue_elem' in a translation unit 'trace_ext.c' |
MISRAC2012-DIR_4_8-a-4 |
|
17: |
Consider hiding the implementation of the structure 'wait_queue_elem' in a translation unit 'unwind_arm64.c' |
MISRAC2012-DIR_4_8-a-4 |
|
17: |
Consider hiding the implementation of the structure 'wait_queue_elem' in a translation unit 'vendor_props.c' |
MISRAC2012-DIR_4_8-a-4 |
|
18: |
The basic numerical type 'short' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
49: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
53: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
60: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
63: |
Reserved name '__wq_rpc' used |
MISRAC2012-RULE_21_2-a-2 |
|
63: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
64: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
| /optee_os_MISRA/optee_os_ruchi393_core/include/mm/core_memprot.h |
|
41: |
Do not define function-like macro: tee_pbuf_is_non_sec |
MISRAC2012-DIR_4_9-a-4 |
|
44: |
Do not define function-like macro: tee_pbuf_is_sec |
MISRAC2012-DIR_4_9-a-4 |
|
47: |
Do not define function-like macro: tee_vbuf_is_non_sec |
MISRAC2012-DIR_4_9-a-4 |
|
50: |
Do not define function-like macro: tee_vbuf_is_sec |
MISRAC2012-DIR_4_9-a-4 |
|
97: |
Consider hiding the implementation of the structure 'io_pa_va' in a translation unit 'abort.c' |
MISRAC2012-DIR_4_8-a-4 |
|
97: |
Consider hiding the implementation of the structure 'io_pa_va' in a translation unit 'boot.c' |
MISRAC2012-DIR_4_8-a-4 |
|
97: |
Consider hiding the implementation of the structure 'io_pa_va' in a translation unit 'cache.c' |
MISRAC2012-DIR_4_8-a-4 |
|
97: |
Consider hiding the implementation of the structure 'io_pa_va' in a translation unit 'console.c' |
MISRAC2012-DIR_4_8-a-4 |
|
97: |
Consider hiding the implementation of the structure 'io_pa_va' in a translation unit 'core_mmu_lpae.c' |
MISRAC2012-DIR_4_8-a-4 |
|
97: |
Consider hiding the implementation of the structure 'io_pa_va' in a translation unit 'dt.c' |
MISRAC2012-DIR_4_8-a-4 |
|
97: |
Consider hiding the implementation of the structure 'io_pa_va' in a translation unit 'entry_std.c' |
MISRAC2012-DIR_4_8-a-4 |
|
97: |
Consider hiding the implementation of the structure 'io_pa_va' in a translation unit 'ldelf_loader.c' |
MISRAC2012-DIR_4_8-a-4 |
|
97: |
Consider hiding the implementation of the structure 'io_pa_va' in a translation unit 'ldelf_syscalls.c' |
MISRAC2012-DIR_4_8-a-4 |
|
97: |
Consider hiding the implementation of the structure 'io_pa_va' in a translation unit 'mobj.c' |
MISRAC2012-DIR_4_8-a-4 |
|
97: |
Consider hiding the implementation of the structure 'io_pa_va' in a translation unit 'mobj_dyn_shm.c' |
MISRAC2012-DIR_4_8-a-4 |
|
97: |
Consider hiding the implementation of the structure 'io_pa_va' in a translation unit 'msg_param.c' |
MISRAC2012-DIR_4_8-a-4 |
|
97: |
Consider hiding the implementation of the structure 'io_pa_va' in a translation unit 'pm.c' |
MISRAC2012-DIR_4_8-a-4 |
|
97: |
Consider hiding the implementation of the structure 'io_pa_va' in a translation unit 'pseudo_ta.c' |
MISRAC2012-DIR_4_8-a-4 |
|
97: |
Consider hiding the implementation of the structure 'io_pa_va' in a translation unit 'ree_fs_ta.c' |
MISRAC2012-DIR_4_8-a-4 |
|
97: |
Consider hiding the implementation of the structure 'io_pa_va' in a translation unit 'rpc_io_i2c.c' |
MISRAC2012-DIR_4_8-a-4 |
|
97: |
Consider hiding the implementation of the structure 'io_pa_va' in a translation unit 'thread.c' |
MISRAC2012-DIR_4_8-a-4 |
|
97: |
Consider hiding the implementation of the structure 'io_pa_va' in a translation unit 'thread_optee_smc.c' |
MISRAC2012-DIR_4_8-a-4 |
| /optee_os_MISRA/optee_os_ruchi393_core/include/mm/file.h |
|
7: |
Do not use reserved identifiers : __MM_FILE_H |
MISRAC2012-RULE_21_1-a-2 |
|
22: |
Consider hiding the implementation of the structure 'file_slice' in a translation unit 'abort.c' |
MISRAC2012-DIR_4_8-a-4 |
|
22: |
Consider hiding the implementation of the structure 'file_slice' in a translation unit 'arch_svc.c' |
MISRAC2012-DIR_4_8-a-4 |
|
22: |
Consider hiding the implementation of the structure 'file_slice' in a translation unit 'asm-defines.c' |
MISRAC2012-DIR_4_8-a-4 |
|
22: |
Consider hiding the implementation of the structure 'file_slice' in a translation unit 'boot.c' |
MISRAC2012-DIR_4_8-a-4 |
|
22: |
Consider hiding the implementation of the structure 'file_slice' in a translation unit 'cache.c' |
MISRAC2012-DIR_4_8-a-4 |
|
22: |
Consider hiding the implementation of the structure 'file_slice' in a translation unit 'console.c' |
MISRAC2012-DIR_4_8-a-4 |
|
22: |
Consider hiding the implementation of the structure 'file_slice' in a translation unit 'core_mmu.c' |
MISRAC2012-DIR_4_8-a-4 |
|
22: |
Consider hiding the implementation of the structure 'file_slice' in a translation unit 'core_mmu_lpae.c' |
MISRAC2012-DIR_4_8-a-4 |
|
22: |
Consider hiding the implementation of the structure 'file_slice' in a translation unit 'dt.c' |
MISRAC2012-DIR_4_8-a-4 |
|
22: |
Consider hiding the implementation of the structure 'file_slice' in a translation unit 'entry_fast.c' |
MISRAC2012-DIR_4_8-a-4 |
|
22: |
Consider hiding the implementation of the structure 'file_slice' in a translation unit 'entry_std.c' |
MISRAC2012-DIR_4_8-a-4 |
|
22: |
Consider hiding the implementation of the structure 'file_slice' in a translation unit 'ldelf_loader.c' |
MISRAC2012-DIR_4_8-a-4 |
|
22: |
Consider hiding the implementation of the structure 'file_slice' in a translation unit 'link_dummies_init.c' |
MISRAC2012-DIR_4_8-a-4 |
|
22: |
Consider hiding the implementation of the structure 'file_slice' in a translation unit 'link_dummies_paged.c' |
MISRAC2012-DIR_4_8-a-4 |
|
22: |
Consider hiding the implementation of the structure 'file_slice' in a translation unit 'main.c' |
MISRAC2012-DIR_4_8-a-4 |
|
22: |
Consider hiding the implementation of the structure 'file_slice' in a translation unit 'mobj.c' |
MISRAC2012-DIR_4_8-a-4 |
|
22: |
Consider hiding the implementation of the structure 'file_slice' in a translation unit 'mobj_dyn_shm.c' |
MISRAC2012-DIR_4_8-a-4 |
|
22: |
Consider hiding the implementation of the structure 'file_slice' in a translation unit 'msg_param.c' |
MISRAC2012-DIR_4_8-a-4 |
|
22: |
Consider hiding the implementation of the structure 'file_slice' in a translation unit 'pgt_cache.c' |
MISRAC2012-DIR_4_8-a-4 |
|
22: |
Consider hiding the implementation of the structure 'file_slice' in a translation unit 'pm.c' |
MISRAC2012-DIR_4_8-a-4 |
|
22: |
Consider hiding the implementation of the structure 'file_slice' in a translation unit 'pseudo_ta.c' |
MISRAC2012-DIR_4_8-a-4 |
|
22: |
Consider hiding the implementation of the structure 'file_slice' in a translation unit 'ree_fs_ta.c' |
MISRAC2012-DIR_4_8-a-4 |
|
22: |
Consider hiding the implementation of the structure 'file_slice' in a translation unit 'rpc_io_i2c.c' |
MISRAC2012-DIR_4_8-a-4 |
|
22: |
Consider hiding the implementation of the structure 'file_slice' in a translation unit 'spin_lock_debug.c' |
MISRAC2012-DIR_4_8-a-4 |
|
22: |
Consider hiding the implementation of the structure 'file_slice' in a translation unit 'tee_mm.c' |
MISRAC2012-DIR_4_8-a-4 |
|
22: |
Consider hiding the implementation of the structure 'file_slice' in a translation unit 'tee_time.c' |
MISRAC2012-DIR_4_8-a-4 |
|
22: |
Consider hiding the implementation of the structure 'file_slice' in a translation unit 'tee_time_arm_cntpct.c' |
MISRAC2012-DIR_4_8-a-4 |
|
22: |
Consider hiding the implementation of the structure 'file_slice' in a translation unit 'thread.c' |
MISRAC2012-DIR_4_8-a-4 |
|
22: |
Consider hiding the implementation of the structure 'file_slice' in a translation unit 'thread_optee_smc.c' |
MISRAC2012-DIR_4_8-a-4 |
|
22: |
Consider hiding the implementation of the structure 'file_slice' in a translation unit 'trace_ext.c' |
MISRAC2012-DIR_4_8-a-4 |
|
23: |
A tag name 'fobj' is reused |
MISRAC2012-RULE_5_7-a-2 |
|
24: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
65: |
A tag name 'fobj' is reused |
MISRAC2012-RULE_5_7-a-2 |
|
66: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
85: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
106: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
| /optee_os_MISRA/optee_os_ruchi393_core/include/mm/fobj.h |
|
7: |
Do not use reserved identifiers : __MM_FOBJ_H |
MISRAC2012-RULE_21_1-a-2 |
|
24: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
41: |
An external identifier with the same name 'free' was declared in the 'malloc.h' file in line 11 |
MISRAC2012-RULE_5_8-a-2 |
|
43: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
45: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
47: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
49: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
62: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
73: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
87: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
106: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
107: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
109: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
120: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
137: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
146: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
165: |
Do not define function-like macro: fobj_ta_mem_alloc |
MISRAC2012-DIR_4_9-a-4 |
|
173: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
175: |
Do not define function-like macro: fobj_ta_mem_alloc |
MISRAC2012-DIR_4_9-a-4 |
|
185: |
A tag name 'fobj' is reused |
MISRAC2012-RULE_5_7-a-2 |
|
185: |
Identifier 'fobj' is hiding an identifier from global or namespace scope |
MISRAC2012-RULE_5_3-a-2 |
|
187: |
Conditional statement 'if' in a function 'fobj_get' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
187: |
The left hand operand of the logical operator '&&' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
187: |
The operands of a logical '&&' in function 'fobj_get' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
200: |
A tag name 'fobj' is reused |
MISRAC2012-RULE_5_7-a-2 |
|
200: |
Identifier 'fobj' is hiding an identifier from global or namespace scope |
MISRAC2012-RULE_5_3-a-2 |
|
202: |
Conditional statement 'if' in a function 'fobj_put' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
202: |
The left hand operand of the logical operator '&&' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
202: |
The operands of a logical '&&' in function 'fobj_put' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
| /optee_os_MISRA/optee_os_ruchi393_core/include/mm/tee_mm.h |
|
19: |
Reserved name '_tee_mm_entry_t' used |
MISRAC2012-RULE_21_2-a-2 |
|
27: |
Reserved name '_tee_mm_pool_t' used |
MISRAC2012-RULE_21_2-a-2 |
|
33: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
63: |
Expression of pointer type is compared with '0' |
MISRAC2012-RULE_11_9-a-2 |
|
63: |
Expression of pointer type is compared with '0' |
MISRAC2012-RULE_11_9-b-2 |
|
96: |
Pass parameter "p" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
102: |
Pass parameter "p" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
| /optee_os_MISRA/optee_os_ruchi393_core/include/mm/tee_mmu_types.h |
|
67: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
68: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
75: |
Consider hiding the implementation of the structure 'vm_region' in a translation unit 'abort.c' |
MISRAC2012-DIR_4_8-a-4 |
|
75: |
Consider hiding the implementation of the structure 'vm_region' in a translation unit 'arch_svc.c' |
MISRAC2012-DIR_4_8-a-4 |
|
75: |
Consider hiding the implementation of the structure 'vm_region' in a translation unit 'asm-defines.c' |
MISRAC2012-DIR_4_8-a-4 |
|
75: |
Consider hiding the implementation of the structure 'vm_region' in a translation unit 'boot.c' |
MISRAC2012-DIR_4_8-a-4 |
|
75: |
Consider hiding the implementation of the structure 'vm_region' in a translation unit 'cache.c' |
MISRAC2012-DIR_4_8-a-4 |
|
75: |
Consider hiding the implementation of the structure 'vm_region' in a translation unit 'console.c' |
MISRAC2012-DIR_4_8-a-4 |
|
75: |
Consider hiding the implementation of the structure 'vm_region' in a translation unit 'core_mmu_lpae.c' |
MISRAC2012-DIR_4_8-a-4 |
|
75: |
Consider hiding the implementation of the structure 'vm_region' in a translation unit 'dt.c' |
MISRAC2012-DIR_4_8-a-4 |
|
75: |
Consider hiding the implementation of the structure 'vm_region' in a translation unit 'entry_fast.c' |
MISRAC2012-DIR_4_8-a-4 |
|
75: |
Consider hiding the implementation of the structure 'vm_region' in a translation unit 'entry_std.c' |
MISRAC2012-DIR_4_8-a-4 |
|
75: |
Consider hiding the implementation of the structure 'vm_region' in a translation unit 'ldelf_syscalls.c' |
MISRAC2012-DIR_4_8-a-4 |
|
75: |
Consider hiding the implementation of the structure 'vm_region' in a translation unit 'link_dummies_init.c' |
MISRAC2012-DIR_4_8-a-4 |
|
75: |
Consider hiding the implementation of the structure 'vm_region' in a translation unit 'link_dummies_paged.c' |
MISRAC2012-DIR_4_8-a-4 |
|
75: |
Consider hiding the implementation of the structure 'vm_region' in a translation unit 'main.c' |
MISRAC2012-DIR_4_8-a-4 |
|
75: |
Consider hiding the implementation of the structure 'vm_region' in a translation unit 'mobj.c' |
MISRAC2012-DIR_4_8-a-4 |
|
75: |
Consider hiding the implementation of the structure 'vm_region' in a translation unit 'mobj_dyn_shm.c' |
MISRAC2012-DIR_4_8-a-4 |
|
75: |
Consider hiding the implementation of the structure 'vm_region' in a translation unit 'msg_param.c' |
MISRAC2012-DIR_4_8-a-4 |
|
75: |
Consider hiding the implementation of the structure 'vm_region' in a translation unit 'mutex.c' |
MISRAC2012-DIR_4_8-a-4 |
|
75: |
Consider hiding the implementation of the structure 'vm_region' in a translation unit 'panic.c' |
MISRAC2012-DIR_4_8-a-4 |
|
75: |
Consider hiding the implementation of the structure 'vm_region' in a translation unit 'pgt_cache.c' |
MISRAC2012-DIR_4_8-a-4 |
|
75: |
Consider hiding the implementation of the structure 'vm_region' in a translation unit 'pm.c' |
MISRAC2012-DIR_4_8-a-4 |
|
75: |
Consider hiding the implementation of the structure 'vm_region' in a translation unit 'pseudo_ta.c' |
MISRAC2012-DIR_4_8-a-4 |
|
75: |
Consider hiding the implementation of the structure 'vm_region' in a translation unit 'ree_fs_ta.c' |
MISRAC2012-DIR_4_8-a-4 |
|
75: |
Consider hiding the implementation of the structure 'vm_region' in a translation unit 'rng_fortuna.c' |
MISRAC2012-DIR_4_8-a-4 |
|
75: |
Consider hiding the implementation of the structure 'vm_region' in a translation unit 'rpc_io_i2c.c' |
MISRAC2012-DIR_4_8-a-4 |
|
75: |
Consider hiding the implementation of the structure 'vm_region' in a translation unit 'spin_lock_debug.c' |
MISRAC2012-DIR_4_8-a-4 |
|
75: |
Consider hiding the implementation of the structure 'vm_region' in a translation unit 'tee_mm.c' |
MISRAC2012-DIR_4_8-a-4 |
|
75: |
Consider hiding the implementation of the structure 'vm_region' in a translation unit 'tee_time.c' |
MISRAC2012-DIR_4_8-a-4 |
|
75: |
Consider hiding the implementation of the structure 'vm_region' in a translation unit 'tee_time_arm_cntpct.c' |
MISRAC2012-DIR_4_8-a-4 |
|
75: |
Consider hiding the implementation of the structure 'vm_region' in a translation unit 'thread.c' |
MISRAC2012-DIR_4_8-a-4 |
|
75: |
Consider hiding the implementation of the structure 'vm_region' in a translation unit 'thread_optee_smc.c' |
MISRAC2012-DIR_4_8-a-4 |
|
75: |
Consider hiding the implementation of the structure 'vm_region' in a translation unit 'timer_a64.c' |
MISRAC2012-DIR_4_8-a-4 |
|
75: |
Consider hiding the implementation of the structure 'vm_region' in a translation unit 'trace_ext.c' |
MISRAC2012-DIR_4_8-a-4 |
|
75: |
Consider hiding the implementation of the structure 'vm_region' in a translation unit 'unwind_arm64.c' |
MISRAC2012-DIR_4_8-a-4 |
|
75: |
Consider hiding the implementation of the structure 'vm_region' in a translation unit 'vendor_props.c' |
MISRAC2012-DIR_4_8-a-4 |
|
76: |
A tag name 'mobj' is reused |
MISRAC2012-RULE_5_7-a-2 |
|
89: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
94: |
Conditional statement 'if' in a function 'mattr_perm_to_str' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
94: |
Operands of the '<' operator have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-a-2 |
|
95: |
'return' statement should be at the end of the 'mattr_perm_to_str' function |
MISRAC2012-RULE_15_5-a-4 |
|
97: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
97: |
The first operand of the conditional operator '?:' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
98: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
98: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
98: |
The first operand of the conditional operator '?:' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
99: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
99: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
99: |
The first operand of the conditional operator '?:' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
100: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
100: |
The first operand of the conditional operator '?:' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
101: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
101: |
The first operand of the conditional operator '?:' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
102: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
102: |
The first operand of the conditional operator '?:' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
| /optee_os_MISRA/optee_os_ruchi393_core/include/mm/vm.h |
|
30: |
A tag name 'mobj' is reused |
MISRAC2012-RULE_5_7-a-2 |
|
30: |
Identifier 'mobj' is hiding an identifier from global or namespace scope |
MISRAC2012-RULE_5_3-a-2 |
|
41: |
A tag name 'mobj' is reused |
MISRAC2012-RULE_5_7-a-2 |
|
41: |
Identifier 'mobj' is hiding an identifier from global or namespace scope |
MISRAC2012-RULE_5_3-a-2 |
|
65: |
A tag name 'mobj' is reused |
MISRAC2012-RULE_5_7-a-2 |
|
65: |
Identifier 'mobj' is hiding an identifier from global or namespace scope |
MISRAC2012-RULE_5_3-a-2 |
|
67: |
A tag name 'mobj' is reused |
MISRAC2012-RULE_5_7-a-2 |
|
67: |
Identifier 'mobj' is hiding an identifier from global or namespace scope |
MISRAC2012-RULE_5_3-a-2 |
|
84: |
A tag name 'mobj' is reused |
MISRAC2012-RULE_5_7-a-2 |
|
84: |
Identifier 'mobj' is hiding an identifier from global or namespace scope |
MISRAC2012-RULE_5_3-a-2 |
| /optee_os_MISRA/optee_os_ruchi393_core/include/optee_msg.h |
|
6: |
Do not use reserved identifiers : _OPTEE_MSG_H |
MISRAC2012-RULE_21_1-a-2 |
|
45: |
Section of code should not be 'commented out' |
MISRAC2012-DIR_4_4-a-4 |
|
176: |
The 'union' keyword shall not be used |
MISRAC2012-RULE_19_2-a-4 |
|
202: |
Consider hiding the implementation of the structure 'optee_msg_arg' in a translation unit 'abort.c' |
MISRAC2012-DIR_4_8-a-4 |
|
202: |
Consider hiding the implementation of the structure 'optee_msg_arg' in a translation unit 'core_mmu.c' |
MISRAC2012-DIR_4_8-a-4 |
|
202: |
Consider hiding the implementation of the structure 'optee_msg_arg' in a translation unit 'ldelf_loader.c' |
MISRAC2012-DIR_4_8-a-4 |
|
202: |
Consider hiding the implementation of the structure 'optee_msg_arg' in a translation unit 'ldelf_syscalls.c' |
MISRAC2012-DIR_4_8-a-4 |
|
202: |
Consider hiding the implementation of the structure 'optee_msg_arg' in a translation unit 'link_dummies_paged.c' |
MISRAC2012-DIR_4_8-a-4 |
|
202: |
Consider hiding the implementation of the structure 'optee_msg_arg' in a translation unit 'thread.c' |
MISRAC2012-DIR_4_8-a-4 |
|
213: |
Flexible array member 'params' is declared |
MISRAC2012-RULE_18_7-a-2 |
|
224: |
Do not define function-like macro: OPTEE_MSG_GET_ARG_SIZE |
MISRAC2012-DIR_4_9-a-4 |
| /optee_os_MISRA/optee_os_ruchi393_core/include/optee_rpc_cmd.h |
|
7: |
Do not use reserved identifiers : __OPTEE_RPC_CMD_H |
MISRAC2012-RULE_21_1-a-2 |
| /optee_os_MISRA/optee_os_ruchi393_core/include/rng_support.h |
|
6: |
Do not use reserved identifiers : __RNG_SUPPORT_H__ |
MISRAC2012-RULE_21_1-a-2 |
|
10: |
The 'hw_get_random_byte' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
| /optee_os_MISRA/optee_os_ruchi393_core/include/scattered_array.h |
|
6: |
Do not use reserved identifiers : __SCATTERED_ARRAY_H |
MISRAC2012-RULE_21_1-a-2 |
|
20: |
Do not define function-like macro: __SCT_ARRAY_DEF_ITEM3 |
MISRAC2012-DIR_4_9-a-4 |
|
20: |
Do not use reserved identifiers : __SCT_ARRAY_DEF_ITEM3 |
MISRAC2012-RULE_21_1-a-2 |
|
26: |
Do not define function-like macro: __SCT_ARRAY_DEF_PG_ITEM3 |
MISRAC2012-DIR_4_9-a-4 |
|
26: |
Do not use reserved identifiers : __SCT_ARRAY_DEF_PG_ITEM3 |
MISRAC2012-RULE_21_1-a-2 |
|
30: |
Do not define function-like macro: __SCT_ARRAY_DEF_ITEM2 |
MISRAC2012-DIR_4_9-a-4 |
|
30: |
Do not use reserved identifiers : __SCT_ARRAY_DEF_ITEM2 |
MISRAC2012-RULE_21_1-a-2 |
|
31: |
Each instance of parameter: 'element_type' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
32: |
Preprocessor operator ## should not be used |
MISRAC2012-RULE_20_10-a-4 |
|
32: |
Preprocessor operator ## should not be used |
MISRAC2012-RULE_20_10-a-4 |
|
33: |
Preprocessor operator # should not be used |
MISRAC2012-RULE_20_10-a-4 |
|
33: |
Preprocessor operator # should not be used |
MISRAC2012-RULE_20_10-a-4 |
|
35: |
Do not define function-like macro: __SCT_ARRAY_DEF_PG_ITEM2 |
MISRAC2012-DIR_4_9-a-4 |
|
35: |
Do not use reserved identifiers : __SCT_ARRAY_DEF_PG_ITEM2 |
MISRAC2012-RULE_21_1-a-2 |
|
36: |
Each instance of parameter: 'element_type' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
37: |
Preprocessor operator ## should not be used |
MISRAC2012-RULE_20_10-a-4 |
|
37: |
Preprocessor operator ## should not be used |
MISRAC2012-RULE_20_10-a-4 |
|
38: |
Preprocessor operator # should not be used |
MISRAC2012-RULE_20_10-a-4 |
|
38: |
Preprocessor operator # should not be used |
MISRAC2012-RULE_20_10-a-4 |
|
40: |
Do not define function-like macro: __SCT_ARRAY_DEF_ITEM1 |
MISRAC2012-DIR_4_9-a-4 |
|
40: |
Do not use reserved identifiers : __SCT_ARRAY_DEF_ITEM1 |
MISRAC2012-RULE_21_1-a-2 |
|
41: |
Each instance of parameter: 'array_name' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
41: |
Each instance of parameter: 'element_type' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
41: |
Each instance of parameter: 'id' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
41: |
Each instance of parameter: 'order' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
43: |
Do not define function-like macro: __SCT_ARRAY_DEF_PG_ITEM1 |
MISRAC2012-DIR_4_9-a-4 |
|
43: |
Do not use reserved identifiers : __SCT_ARRAY_DEF_PG_ITEM1 |
MISRAC2012-RULE_21_1-a-2 |
|
44: |
Each instance of parameter: 'array_name' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
44: |
Each instance of parameter: 'element_type' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
44: |
Each instance of parameter: 'id' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
44: |
Each instance of parameter: 'order' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
52: |
Do not define function-like macro: SCATTERED_ARRAY_DEFINE_ITEM_ORDERED |
MISRAC2012-DIR_4_9-a-4 |
|
53: |
Each instance of parameter: 'array_name' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
53: |
Each instance of parameter: 'element_type' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
53: |
Each instance of parameter: 'order' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
60: |
Do not define function-like macro: SCATTERED_ARRAY_DEFINE_PG_ITEM_ORDERED |
MISRAC2012-DIR_4_9-a-4 |
|
62: |
Each instance of parameter: 'array_name' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
62: |
Each instance of parameter: 'element_type' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
62: |
Each instance of parameter: 'order' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
69: |
Do not define function-like macro: SCATTERED_ARRAY_DEFINE_ITEM |
MISRAC2012-DIR_4_9-a-4 |
|
70: |
Each instance of parameter: 'array_name' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
70: |
Each instance of parameter: 'element_type' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
77: |
Do not define function-like macro: SCATTERED_ARRAY_DEFINE_PG_ITEM |
MISRAC2012-DIR_4_9-a-4 |
|
78: |
Each instance of parameter: 'array_name' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
78: |
Each instance of parameter: 'element_type' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
85: |
Do not define function-like macro: SCATTERED_ARRAY_BEGIN |
MISRAC2012-DIR_4_9-a-4 |
|
87: |
Preprocessor operator # should not be used |
MISRAC2012-RULE_20_10-a-4 |
|
99: |
Do not define function-like macro: SCATTERED_ARRAY_END |
MISRAC2012-DIR_4_9-a-4 |
|
101: |
Preprocessor operator # should not be used |
MISRAC2012-RULE_20_10-a-4 |
|
113: |
Do not define function-like macro: SCATTERED_ARRAY_FOREACH |
MISRAC2012-DIR_4_9-a-4 |
|
114: |
Each instance of parameter: 'array_name' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
114: |
Each instance of parameter: 'element_type' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
115: |
Each instance of parameter: 'array_name' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
115: |
Each instance of parameter: 'element_type' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
| /optee_os_MISRA/optee_os_ruchi393_core/include/signed_hdr.h |
|
40: |
Section of code should not be 'commented out' |
MISRAC2012-DIR_4_4-a-4 |
|
52: |
A tag name 'shdr' is reused |
MISRAC2012-RULE_5_7-a-2 |
|
52: |
Identifier 'shdr' is hiding an identifier from global or namespace scope |
MISRAC2012-RULE_5_3-a-2 |
|
56: |
Conditional statement 'if' in a function 'shdr_get_size' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
56: |
The operands of a logical '||' in function 'shdr_get_size' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
57: |
The operands of a logical '||' in function 'shdr_get_size' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
58: |
Provide only one exit point in 'shdr_get_size' function |
MISRAC2012-RULE_15_5-a-4 |
|
60: |
Provide only one exit point in 'shdr_get_size' function |
MISRAC2012-RULE_15_5-a-4 |
|
63: |
Do not define function-like macro: SHDR_GET_SIZE |
MISRAC2012-DIR_4_9-a-4 |
|
64: |
Do not define function-like macro: SHDR_GET_HASH |
MISRAC2012-DIR_4_9-a-4 |
|
65: |
Do not define function-like macro: SHDR_GET_SIG |
MISRAC2012-DIR_4_9-a-4 |
|
93: |
Section of code should not be 'commented out' |
MISRAC2012-DIR_4_4-a-4 |
|
112: |
Do not define function-like macro: SHDR_ENC_GET_SIZE |
MISRAC2012-DIR_4_9-a-4 |
|
115: |
Do not define function-like macro: SHDR_ENC_GET_IV |
MISRAC2012-DIR_4_9-a-4 |
|
117: |
Do not define function-like macro: SHDR_ENC_GET_TAG |
MISRAC2012-DIR_4_9-a-4 |
|
127: |
A tag name 'shdr' is reused |
MISRAC2012-RULE_5_7-a-2 |
|
127: |
Identifier 'shdr' is hiding an identifier from global or namespace scope |
MISRAC2012-RULE_5_3-a-2 |
|
129: |
'free' function should not be used |
MISRAC2012-RULE_21_3-a-2 |
|
129: |
'free' function should not be used |
MISRAC2012-DIR_4_12-a-2 |
|
140: |
A tag name 'shdr' is reused |
MISRAC2012-RULE_5_7-a-2 |
|
140: |
Identifier 'shdr' is hiding an identifier from global or namespace scope |
MISRAC2012-RULE_5_3-a-2 |
| /optee_os_MISRA/optee_os_ruchi393_core/include/ta_pub_key.h |
|
11: |
'ta_pub_key_modulus ' array size should be stated explicitly or defined implicitly by initialisation |
MISRAC2012-RULE_8_11-a-4 |
| /optee_os_MISRA/optee_os_ruchi393_core/include/tee/fs_dirfile.h |
|
7: |
Do not use reserved identifiers : __TEE_FS_DIRFILE_H |
MISRAC2012-RULE_21_1-a-2 |
|
43: |
An external identifier with the same name 'write' was declared in the 'unistd.h' file in line 15 |
MISRAC2012-RULE_5_8-a-2 |
| /optee_os_MISRA/optee_os_ruchi393_core/include/tee/fs_htree.h |
|
7: |
Do not use reserved identifiers : __TEE_FS_HTREE_H |
MISRAC2012-RULE_21_1-a-2 |
| /optee_os_MISRA/optee_os_ruchi393_core/include/tee/svc_cache.h |
|
12: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
| /optee_os_MISRA/optee_os_ruchi393_core/include/tee/tadb.h |
|
7: |
Do not use reserved identifiers : __TEE_TADB_H |
MISRAC2012-RULE_21_1-a-2 |
|
49: |
A tag name 'tee_tadb_ta_write' is reused |
MISRAC2012-RULE_5_7-a-2 |
|
61: |
A tag name 'tee_tadb_ta_read' is reused |
MISRAC2012-RULE_5_7-a-2 |
| /optee_os_MISRA/optee_os_ruchi393_core/include/tee/tee_cryp_utl.h |
|
12: |
The names of the identifiers 'tee_alg_get_digest_size' and '__tee_alg_get_digest_size' (line: 174 in the 'utee_defines.h'
file) differ only in the presence/absence of the underscore character
|
MISRAC2012-DIR_4_5-a-4 |
|
30: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
| /optee_os_MISRA/optee_os_ruchi393_core/include/tee/tee_fs.h |
|
18: |
Consider hiding the implementation of the structure 'tee_fs_dirent' in a translation unit 'arch_svc.c' |
MISRAC2012-DIR_4_8-a-4 |
|
18: |
Consider hiding the implementation of the structure 'tee_fs_dirent' in a translation unit 'thread_optee_smc.c' |
MISRAC2012-DIR_4_8-a-4 |
|
41: |
An external identifier with the same name 'write' was declared in the 'unistd.h' file in line 15 |
MISRAC2012-RULE_5_8-a-2 |
| /optee_os_MISRA/optee_os_ruchi393_core/include/tee/tee_fs_rpc.h |
|
19: |
Consider hiding the implementation of the structure 'tee_fs_rpc_operation' in a translation unit 'thread_optee_smc.c' |
MISRAC2012-DIR_4_8-a-4 |
|
28: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
31: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
32: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
35: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
41: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
46: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
| /optee_os_MISRA/optee_os_ruchi393_core/include/tee/tee_obj.h |
|
16: |
Consider hiding the implementation of the structure 'tee_obj' in a translation unit 'arch_svc.c' |
MISRAC2012-DIR_4_8-a-4 |
| /optee_os_MISRA/optee_os_ruchi393_core/include/tee/tee_svc.h |
|
17: |
Consider hiding the implementation of the structure 'tee_props' in a translation unit 'abort.c' |
MISRAC2012-DIR_4_8-a-4 |
|
17: |
Consider hiding the implementation of the structure 'tee_props' in a translation unit 'arch_svc.c' |
MISRAC2012-DIR_4_8-a-4 |
|
34: |
The 'syscall_sys_return' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
34: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
38: |
The 'syscall_panic' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
38: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
43: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
44: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
48: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
50: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
54: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
57: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
59: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
60: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
60: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
63: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
72: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
74: |
Reserved name 'time' used |
MISRAC2012-RULE_21_2-b-2 |
|
74: |
Reserved name 'time' used |
MISRAC2012-RULE_21_2-c-2 |
|
74: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
75: |
Reserved name 'time' used |
MISRAC2012-RULE_21_2-b-2 |
|
75: |
Reserved name 'time' used |
MISRAC2012-RULE_21_2-c-2 |
| /optee_os_MISRA/optee_os_ruchi393_core/include/tee/tee_svc_cryp.h |
|
14: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
15: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
16: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
17: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
17: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
20: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
21: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
22: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
23: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
24: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
25: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
26: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
27: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
28: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
28: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
30: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
32: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
32: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
33: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
33: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
35: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
35: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
36: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
40: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
42: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
44: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
47: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
49: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
51: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
54: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
56: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
56: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
60: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
63: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
65: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
68: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
71: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
75: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
79: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
| /optee_os_MISRA/optee_os_ruchi393_core/include/tee/tee_svc_storage.h |
|
23: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
24: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
27: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
28: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
29: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
32: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
34: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
42: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
44: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
46: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
47: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
49: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
55: |
The basic numerical type 'long' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
68: |
The 'tee_svc_storage_init' function has no definition |
MISRAC2012-RULE_8_6-a-2 |
|
75: |
The identifier 'tee_svc_storage_create_filename_dfh' has the same first 31 characters of the name as the identifier 'tee_svc_storage_create_filename'
defined in the 'tee_svc_storage.h' file in line '71'
|
MISRAC2012-RULE_5_1-a-2 |
| /optee_os_MISRA/optee_os_ruchi393_core/include/tee/uuid.h |
|
7: |
Do not use reserved identifiers : __TEE_UUID |
MISRAC2012-RULE_21_1-a-2 |
| /optee_os_MISRA/optee_os_ruchi393_core/kernel/assert.c |
|
13: |
Reserved name '_assert_log' used |
MISRAC2012-RULE_21_2-a-2 |
|
13: |
The '_assert_log' function is also defined in other translation units |
MISRAC2012-RULE_8_6-a-2 |
|
26: |
Reserved name '_assert_break' used |
MISRAC2012-RULE_21_2-a-2 |
|
26: |
The '_assert_break' function is also defined in other translation units |
MISRAC2012-RULE_8_6-a-2 |
|
26: |
The '_assert_break' function should not be declared with the '_Noreturn' specifier |
MISRAC2012-RULE_1_4-b-2 |
| /optee_os_MISRA/optee_os_ruchi393_core/kernel/console.c |
|
21: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
22: |
'return' statement should be at the end of the 'console_putc' function |
MISRAC2012-RULE_15_5-a-4 |
|
31: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
32: |
'return' statement should be at the end of the 'console_flush' function |
MISRAC2012-RULE_15_5-a-4 |
|
43: |
Pass parameter "fdt" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
45: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
46: |
Provide only one exit point in 'find_chosen_node' function |
MISRAC2012-RULE_15_5-a-4 |
|
53: |
Provide only one exit point in 'find_chosen_node' function |
MISRAC2012-RULE_15_5-a-4 |
|
56: |
The function 'get_console_node_from_dt' is referenced only in the translation unit where it is defined |
MISRAC2012-RULE_8_7-a-4 |
|
65: |
Integer constant '0xFFFF0000' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
71: |
Integer constant '0xFFFF0008' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
71: |
Provide only one exit point in 'get_console_node_from_dt' function |
MISRAC2012-RULE_15_5-a-4 |
|
75: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
82: |
Integer constant '0xFFFF0008' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
82: |
Provide only one exit point in 'get_console_node_from_dt' function |
MISRAC2012-RULE_15_5-a-4 |
|
86: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
88: |
The argument number '2' ('essentially character' type) is passed to the function 'strchr' as a parameter with the 'essentially
signed' type
|
MISRAC2012-RULE_10_3-b-2 |
|
89: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
91: |
The variable 'p' used as the left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
96: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
102: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
104: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
105: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
105: |
The first operand of the conditional operator '?:' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
106: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
107: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
107: |
The first operand of the conditional operator '?:' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
112: |
'free' function should not be used |
MISRAC2012-RULE_21_3-a-2 |
|
112: |
'free' function should not be used |
MISRAC2012-DIR_4_12-a-2 |
|
114: |
Provide only one exit point in 'get_console_node_from_dt' function |
MISRAC2012-RULE_15_5-a-4 |
|
128: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
129: |
'return' statement should be at the end of the 'configure_console_from_dt' function |
MISRAC2012-RULE_15_5-a-4 |
|
132: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
133: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
135: |
Pointer to void type should not be converted to pointer to object type 'const struct serial_driver *' |
MISRAC2012-RULE_11_5-a-4 |
|
136: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
137: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
140: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
141: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
150: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
156: |
'free' function should not be used |
MISRAC2012-RULE_21_3-a-2 |
|
156: |
'free' function should not be used |
MISRAC2012-DIR_4_12-a-2 |
|
157: |
'free' function should not be used |
MISRAC2012-RULE_21_3-a-2 |
|
157: |
'free' function should not be used |
MISRAC2012-DIR_4_12-a-2 |
| /optee_os_MISRA/optee_os_ruchi393_core/kernel/dt.c |
| +
|
20: |
The "drv" pointer results from a pointer arithmetic operation that is performed on a pointer to a non-array object |
MISRAC2012-RULE_18_1-c-2 |
| |
|
Start of the path
dt.c (15): const struct dt_driver *dt_find_compatible_driver(const void *fdt, int offs)
dt.c (17): const struct dt_device_match *dm;
dt.c (18): const struct dt_driver *drv;
dt.c (20): __dt_driver_start()
dt.c (37): return &__rodata_dtdrv_start;
dt.c (20): for_each_dt_driver(drv) {
dt.c (20): __dt_driver_end()
dt.c (42): return &__rodata_dtdrv_end;
dt.c (21): for (dm = drv->match_table; dm; dm++) { *** Loop condition evaluation: (dm != 0) (assuming false) *** Not entering the loop
Out-of-bounds assignment point
dt.c (20): for_each_dt_driver(drv) { |
|
|
21: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
22: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
25: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
27: |
Provide only one exit point in 'dt_find_compatible_driver' function |
MISRAC2012-RULE_15_5-a-4 |
|
32: |
Provide only one exit point in 'dt_find_compatible_driver' function |
MISRAC2012-RULE_15_5-a-4 |
|
35: |
Reserved name '__dt_driver_start' used |
MISRAC2012-RULE_21_2-a-2 |
|
35: |
The function '__dt_driver_start' is referenced only in the translation unit where it is defined |
MISRAC2012-RULE_8_7-a-4 |
|
40: |
Reserved name '__dt_driver_end' used |
MISRAC2012-RULE_21_2-a-2 |
|
40: |
The function '__dt_driver_end' is referenced only in the translation unit where it is defined |
MISRAC2012-RULE_8_7-a-4 |
|
54: |
Pass parameter "fdt" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
65: |
Pointer to void type should not be converted to pointer to object type 'const uint32_t *' |
MISRAC2012-RULE_11_5-a-4 |
|
67: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
67: |
The operands of a logical '||' in function 'dt_get_irq' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
67: |
The operands of a logical '||' in function 'dt_get_irq' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
68: |
Provide only one exit point in 'dt_get_irq' function |
MISRAC2012-RULE_15_5-a-4 |
|
70: |
The expression of the 'essentially unsigned' type is assigned to an object with the 'essentially signed' type |
MISRAC2012-RULE_10_3-b-2 |
|
72: |
Provide only one exit point in 'dt_get_irq' function |
MISRAC2012-RULE_15_5-a-4 |
|
75: |
The function 'dt_disable_status' is referenced only in the translation unit where it is defined |
MISRAC2012-RULE_8_7-a-4 |
|
80: |
Pointer to void type should not be converted to pointer to object type 'const char *' |
MISRAC2012-RULE_11_5-a-4 |
|
81: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
82: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
82: |
The argument number '5' ('essentially unsigned' type) is passed to the function 'fdt_setprop' as a parameter with the 'essentially
signed' type
|
MISRAC2012-RULE_10_3-b-2 |
|
83: |
Provide only one exit point in 'dt_disable_status' function |
MISRAC2012-RULE_15_5-a-4 |
|
99: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
100: |
Provide only one exit point in 'dt_disable_status' function |
MISRAC2012-RULE_15_5-a-4 |
|
103: |
Provide only one exit point in 'dt_disable_status' function |
MISRAC2012-RULE_15_5-a-4 |
|
108: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
110: |
Provide only one exit point in 'dt_enable_secure_status' function |
MISRAC2012-RULE_15_5-a-4 |
|
113: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
113: |
The argument number '5' ('essentially unsigned' type) is passed to the function 'fdt_setprop' as a parameter with the 'essentially
signed' type
|
MISRAC2012-RULE_10_3-b-2 |
|
114: |
Provide only one exit point in 'dt_enable_secure_status' function |
MISRAC2012-RULE_15_5-a-4 |
|
116: |
Provide only one exit point in 'dt_enable_secure_status' function |
MISRAC2012-RULE_15_5-a-4 |
|
131: |
Provide only one exit point in 'dt_map_dev' function |
MISRAC2012-RULE_15_5-a-4 |
|
135: |
Provide only one exit point in 'dt_map_dev' function |
MISRAC2012-RULE_15_5-a-4 |
|
138: |
Provide only one exit point in 'dt_map_dev' function |
MISRAC2012-RULE_15_5-a-4 |
|
140: |
The left hand operand of the '&' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
140: |
The left hand operand of the '&' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
140: |
The left hand operand of the logical operator '&&' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
140: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
140: |
The operands of a logical '&&' in function 'dt_map_dev' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
146: |
The argument number '3' ('essentially signed' type) is passed to the function 'core_mmu_add_mapping' as a parameter with the
'essentially unsigned' type
|
MISRAC2012-RULE_10_3-b-2 |
|
149: |
Provide only one exit point in 'dt_map_dev' function |
MISRAC2012-RULE_15_5-a-4 |
|
151: |
Pointer to void type should not be converted to arithmetic type 'unsigned long' |
MISRAC2012-RULE_11_6-a-2 |
|
152: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
154: |
Provide only one exit point in 'dt_map_dev' function |
MISRAC2012-RULE_15_5-a-4 |
|
158: |
The expression of the 'essentially signed' type is assigned to an object with the 'essentially unsigned' type |
MISRAC2012-RULE_10_3-b-2 |
|
159: |
Provide only one exit point in 'dt_map_dev' function |
MISRAC2012-RULE_15_5-a-4 |
|
163: |
Reserved name '_fdt_read_paddr' used |
MISRAC2012-RULE_21_2-a-2 |
|
167: |
The operands of a logical '||' in function '_fdt_read_paddr' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
167: |
The operands of a logical '||' in function '_fdt_read_paddr' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
168: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
171: |
Parameter 'cell' is modified in function '_fdt_read_paddr' |
MISRAC2012-RULE_17_8-a-4 |
|
184: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
185: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
187: |
Provide only one exit point in '_fdt_read_paddr' function |
MISRAC2012-RULE_15_5-a-4 |
|
189: |
Provide only one exit point in '_fdt_read_paddr' function |
MISRAC2012-RULE_15_5-a-4 |
|
193: |
Reserved name '_fdt_reg_base_address' used |
MISRAC2012-RULE_21_2-a-2 |
|
193: |
The function '_fdt_reg_base_address' is referenced only in the translation unit where it is defined |
MISRAC2012-RULE_8_7-a-4 |
|
202: |
Provide only one exit point in '_fdt_reg_base_address' function |
MISRAC2012-RULE_15_5-a-4 |
|
205: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
206: |
Provide only one exit point in '_fdt_reg_base_address' function |
MISRAC2012-RULE_15_5-a-4 |
|
210: |
Provide only one exit point in '_fdt_reg_base_address' function |
MISRAC2012-RULE_15_5-a-4 |
|
212: |
Pointer to void type should not be converted to pointer to object type 'const uint32_t *' in function's argument |
MISRAC2012-RULE_11_5-a-4 |
|
212: |
Provide only one exit point in '_fdt_reg_base_address' function |
MISRAC2012-RULE_15_5-a-4 |
|
215: |
Reserved name '_fdt_reg_size' used |
MISRAC2012-RULE_21_2-a-2 |
|
215: |
The function '_fdt_reg_size' is referenced only in the translation unit where it is defined |
MISRAC2012-RULE_8_7-a-4 |
|
225: |
Provide only one exit point in '_fdt_reg_size' function |
MISRAC2012-RULE_15_5-a-4 |
|
227: |
Pointer to void type should not be converted to pointer to object type 'const uint32_t *' |
MISRAC2012-RULE_11_5-a-4 |
|
228: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
229: |
Provide only one exit point in '_fdt_reg_size' function |
MISRAC2012-RULE_15_5-a-4 |
|
232: |
The operands of a logical '||' in function '_fdt_reg_size' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
232: |
The operands of a logical '||' in function '_fdt_reg_size' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
233: |
Provide only one exit point in '_fdt_reg_size' function |
MISRAC2012-RULE_15_5-a-4 |
|
235: |
The variable 'reg' used as the left hand side operand of the '+=' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
238: |
The operands of a logical '||' in function '_fdt_reg_size' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
238: |
The operands of a logical '||' in function '_fdt_reg_size' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
239: |
Provide only one exit point in '_fdt_reg_size' function |
MISRAC2012-RULE_15_5-a-4 |
|
243: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
244: |
Provide only one exit point in '_fdt_reg_size' function |
MISRAC2012-RULE_15_5-a-4 |
|
249: |
Provide only one exit point in '_fdt_reg_size' function |
MISRAC2012-RULE_15_5-a-4 |
|
249: |
The expression of the 'essentially unsigned' type is returned from function '_fdt_reg_size' with the 'essentially signed'
type
|
MISRAC2012-RULE_10_3-b-2 |
|
254: |
The argument number '3' ('essentially signed' type) is passed to the function 'strncmp' as a parameter with the 'essentially
unsigned' type
|
MISRAC2012-RULE_10_3-b-2 |
|
254: |
The argument number '3' ('essentially signed' type) is passed to the function 'strncmp' as a parameter with the 'essentially
unsigned' type
|
MISRAC2012-RULE_10_3-b-2 |
|
254: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
254: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
254: |
The operands of a logical '||' in function 'is_okay' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
254: |
The operands of a logical '||' in function 'is_okay' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
257: |
Reserved name '_fdt_get_status' used |
MISRAC2012-RULE_21_2-a-2 |
|
263: |
Pointer to void type should not be converted to pointer to object type 'const char *' |
MISRAC2012-RULE_11_5-a-4 |
|
264: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
264: |
The operands of a logical '||' in function '_fdt_get_status' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
264: |
The operands of a logical '||' in function '_fdt_get_status' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
266: |
The left hand operand of the '|=' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
269: |
Pointer to void type should not be converted to pointer to object type 'const char *' |
MISRAC2012-RULE_11_5-a-4 |
|
270: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
275: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
275: |
The left hand operand of the '&' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
276: |
The left hand operand of the '|=' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
279: |
The left hand operand of the '|=' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
285: |
Identifiers given in declaration of '_fdt_fill_device_info' function (file: 'dt.h', line: '162') are: 'node' not: 'offs' |
MISRAC2012-RULE_8_3-b-2 |
|
285: |
Pass parameter "fdt" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
285: |
Reserved name '_fdt_fill_device_info' used |
MISRAC2012-RULE_21_2-a-2 |
|
296: |
Pointer to void type should not be converted to pointer to object type 'const fdt32_t *' |
MISRAC2012-RULE_11_5-a-4 |
|
297: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
302: |
Pointer to void type should not be converted to pointer to object type 'const fdt32_t *' |
MISRAC2012-RULE_11_5-a-4 |
|
303: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
308: |
The expression of the 'essentially signed' type is assigned to an object with the 'essentially unsigned' type |
MISRAC2012-RULE_10_3-b-2 |
| /optee_os_MISRA/optee_os_ruchi393_core/kernel/handle.c |
|
20: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
21: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
24: |
'for' statement in a function 'handle_db_destroy' should be followed by a block |
MISRAC2012-RULE_15_6-a-2 |
|
25: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
28: |
'free' function should not be used |
MISRAC2012-RULE_21_3-a-2 |
|
28: |
'free' function should not be used |
MISRAC2012-DIR_4_12-a-2 |
|
34: |
Pass parameter "db" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
38: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
40: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
41: |
Provide only one exit point in 'handle_db_is_empty' function |
MISRAC2012-RULE_15_5-a-4 |
|
44: |
Provide only one exit point in 'handle_db_is_empty' function |
MISRAC2012-RULE_15_5-a-4 |
|
53: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
53: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
53: |
The operands of a logical '||' in function 'handle_get' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
53: |
The operands of a logical '||' in function 'handle_get' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
54: |
Provide only one exit point in 'handle_get' function |
MISRAC2012-RULE_15_5-a-4 |
|
58: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
60: |
Provide only one exit point in 'handle_get' function |
MISRAC2012-RULE_15_5-a-4 |
|
60: |
The expression of the 'essentially unsigned' type is returned from function 'handle_get' with the 'essentially signed' type |
MISRAC2012-RULE_10_3-b-2 |
|
65: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
69: |
'realloc' function should not be used |
MISRAC2012-RULE_21_3-a-2 |
|
69: |
'realloc' function should not be used |
MISRAC2012-DIR_4_12-a-2 |
|
70: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
71: |
Provide only one exit point in 'handle_get' function |
MISRAC2012-RULE_15_5-a-4 |
|
72: |
Pointer to void type should not be converted to pointer to object type 'void **' |
MISRAC2012-RULE_11_5-a-4 |
|
73: |
The left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
73: |
Unused function's "memset" return value |
MISRAC2012-RULE_17_7-a-2 |
|
79: |
Provide only one exit point in 'handle_get' function |
MISRAC2012-RULE_15_5-a-4 |
|
79: |
The expression of the 'essentially unsigned' type is returned from function 'handle_get' with the 'essentially signed' type |
MISRAC2012-RULE_10_3-b-2 |
|
86: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
86: |
The operands of a logical '||' in function 'handle_put' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
86: |
The operands of a logical '||' in function 'handle_put' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
86: |
The operands of a logical '||' in function 'handle_put' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
87: |
Provide only one exit point in 'handle_put' function |
MISRAC2012-RULE_15_5-a-4 |
|
91: |
Provide only one exit point in 'handle_put' function |
MISRAC2012-RULE_15_5-a-4 |
|
94: |
Pass parameter "db" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
96: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
96: |
The operands of a logical '||' in function 'handle_lookup' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
96: |
The operands of a logical '||' in function 'handle_lookup' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
96: |
The operands of a logical '||' in function 'handle_lookup' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
97: |
Provide only one exit point in 'handle_lookup' function |
MISRAC2012-RULE_15_5-a-4 |
|
99: |
Provide only one exit point in 'handle_lookup' function |
MISRAC2012-RULE_15_5-a-4 |
| /optee_os_MISRA/optee_os_ruchi393_core/kernel/huk_subkey.c |
|
14: |
Pointer to void type should not be converted to pointer to object type 'const uint8_t *' in function's argument |
MISRAC2012-RULE_11_5-a-4 |
|
27: |
'for' statement in a function 'get_dummy_die_id' should be followed by a block |
MISRAC2012-RULE_15_6-a-2 |
|
28: |
The expression of the 'essentially character' type is assigned to an object with the 'essentially unsigned' type |
MISRAC2012-RULE_10_3-b-2 |
|
43: |
Provide only one exit point in 'huk_compat' function |
MISRAC2012-RULE_15_5-a-4 |
|
47: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
48: |
Provide only one exit point in 'huk_compat' function |
MISRAC2012-RULE_15_5-a-4 |
|
49: |
Provide only one exit point in 'huk_compat' function |
MISRAC2012-RULE_15_5-a-4 |
|
51: |
Provide only one exit point in 'huk_compat' function |
MISRAC2012-RULE_15_5-a-4 |
|
51: |
The argument number '2' ('essentially Enum' type) is passed to the function 'mac_usage' as a parameter with the 'essentially
unsigned' type
|
MISRAC2012-RULE_10_3-b-2 |
|
66: |
Integer constant '0xFFFF0006' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
66: |
Provide only one exit point in 'huk_subkey_derive' function |
MISRAC2012-RULE_15_5-a-4 |
|
67: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
67: |
The operands of a logical '&&' in function 'huk_subkey_derive' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
67: |
The right hand operand of the logical operator '&&' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
68: |
Integer constant '0xFFFF0006' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
68: |
Provide only one exit point in 'huk_subkey_derive' function |
MISRAC2012-RULE_15_5-a-4 |
|
71: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
72: |
Provide only one exit point in 'huk_subkey_derive' function |
MISRAC2012-RULE_15_5-a-4 |
|
75: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
76: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
79: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
80: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
87: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
88: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
90: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
91: |
Pointer to void type should not be converted to pointer to object type 'const uint8_t *' in function's argument |
MISRAC2012-RULE_11_5-a-4 |
|
92: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
93: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
98: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
102: |
Provide only one exit point in 'huk_subkey_derive' function |
MISRAC2012-RULE_15_5-a-4 |
| /optee_os_MISRA/optee_os_ruchi393_core/kernel/initcall.c |
|
15: |
The 'call_initcalls' function is also defined in other translation units |
MISRAC2012-RULE_8_6-a-2 |
|
20: |
More than one variable is declared in the first clause of a 'for' statement |
MISRAC2012-RULE_14_2-b-2 |
|
20: |
Pointer to void type should not be converted to pointer to object type 'const struct initcall *' |
MISRAC2012-RULE_11_5-a-4 |
|
20: |
Reserved name '__scattered_array_begin' used |
MISRAC2012-RULE_21_2-a-2 |
|
20: |
Reserved name '__scattered_array_end' used |
MISRAC2012-RULE_21_2-a-2 |
| +
|
20: |
Two unrelated pointers "call" and "__scattered_array_end" are compared |
MISRAC2012-DIR_4_1-j-2 |
| |
|
Start of the path
initcall.c (15): void __weak call_initcalls(void)
initcall.c (17): const struct initcall *call = NULL;
initcall.c (18): TEE_Result ret = TEE_SUCCESS;
initcall.c (20): scattered_array_relax_ptr(...)
scattered_array.c (10): return p;
Point of comparison
initcall.c (20): for (call = initcall_begin; call < initcall_end; call++) { |
|
| +
|
20: |
Two unrelated pointers "call" and "__scattered_array_end" are compared |
MISRAC2012-RULE_18_3-a-2 |
| |
|
Start of the path
initcall.c (15): void __weak call_initcalls(void)
initcall.c (17): const struct initcall *call = NULL;
initcall.c (18): TEE_Result ret = TEE_SUCCESS;
initcall.c (20): scattered_array_relax_ptr(...)
scattered_array.c (10): return p;
Point of comparison
initcall.c (20): for (call = initcall_begin; call < initcall_end; call++) { |
|
|
24: |
Pointer to object type 'const struct initcall *' should not be converted to integral type 'unsigned long' |
MISRAC2012-RULE_11_4-a-4 |
|
34: |
The 'call_finalcalls' function is also defined in other translation units |
MISRAC2012-RULE_8_6-a-2 |
|
39: |
More than one variable is declared in the first clause of a 'for' statement |
MISRAC2012-RULE_14_2-b-2 |
|
39: |
Pointer to void type should not be converted to pointer to object type 'const struct initcall *' |
MISRAC2012-RULE_11_5-a-4 |
|
39: |
Reserved name '__scattered_array_begin' used |
MISRAC2012-RULE_21_2-a-2 |
|
39: |
Reserved name '__scattered_array_end' used |
MISRAC2012-RULE_21_2-a-2 |
| +
|
39: |
Two unrelated pointers "call" and "__scattered_array_end" are compared |
MISRAC2012-DIR_4_1-j-2 |
| |
|
Start of the path
initcall.c (34): void __weak call_finalcalls(void)
initcall.c (36): const struct initcall *call = NULL;
initcall.c (37): TEE_Result ret = TEE_SUCCESS;
initcall.c (39): scattered_array_relax_ptr(...)
scattered_array.c (10): return p;
Point of comparison
initcall.c (39): for (call = finalcall_begin; call < finalcall_end; call++) { |
|
| +
|
39: |
Two unrelated pointers "call" and "__scattered_array_end" are compared |
MISRAC2012-RULE_18_3-a-2 |
| |
|
Start of the path
initcall.c (34): void __weak call_finalcalls(void)
initcall.c (36): const struct initcall *call = NULL;
initcall.c (37): TEE_Result ret = TEE_SUCCESS;
initcall.c (39): scattered_array_relax_ptr(...)
scattered_array.c (10): return p;
Point of comparison
initcall.c (39): for (call = finalcall_begin; call < finalcall_end; call++) { |
|
|
43: |
Pointer to object type 'const struct initcall *' should not be converted to integral type 'unsigned long' |
MISRAC2012-RULE_11_4-a-4 |
| /optee_os_MISRA/optee_os_ruchi393_core/kernel/interrupt.c |
|
19: |
A tag name 'itr_chip' is reused |
MISRAC2012-RULE_5_7-a-2 |
|
23: |
Identifiers given in declaration of 'itr_init' function (file: 'interrupt.h', line: '43') are: 'data' not: 'chip' |
MISRAC2012-RULE_8_3-b-2 |
|
33: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
37: |
Provide 'else' after the last 'else-if' construct |
MISRAC2012-RULE_15_7-a-2 |
|
37: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
48: |
Identifiers given in declaration of 'itr_add' function (file: 'interrupt.h', line: '46') are: 'handler' not: 'h' |
MISRAC2012-RULE_8_3-b-2 |
|
52: |
'for' statement in a function 'itr_add' should be followed by a block |
MISRAC2012-RULE_15_6-a-2 |
|
52: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
54: |
Potential macro 'ITRF_SHARED' used as '1' parameter of potential macro 'assert' |
MISRAC2012-RULE_20_12-a-2 |
|
54: |
The left hand operand of the logical operator '&&' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
54: |
The right hand operand of the logical operator '&&' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
55: |
Potential macro 'ITRF_SHARED' used as '1' parameter of potential macro 'assert' |
MISRAC2012-RULE_20_12-a-2 |
|
87: |
The 'itr_core_handler' function is also defined in other translation units |
MISRAC2012-RULE_8_6-a-2 |
|
87: |
The 'itr_core_handler' function should not be declared with the '_Noreturn' specifier |
MISRAC2012-RULE_1_4-b-2 |
| /optee_os_MISRA/optee_os_ruchi393_core/kernel/ldelf_syscalls.c |
|
36: |
A tag name 'mobj' is reused |
MISRAC2012-RULE_5_7-a-2 |
|
36: |
Identifier 'mobj' is hiding an identifier from global or namespace scope |
MISRAC2012-RULE_5_3-a-2 |
|
37: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
40: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
41: |
Integer constant '0xFFFF0006' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
41: |
Provide only one exit point in 'ldelf_syscall_map_zi' function |
MISRAC2012-RULE_15_5-a-4 |
|
43: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
46: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
46: |
Reserved name '__roundup_mask' used |
MISRAC2012-RULE_21_2-a-2 |
|
46: |
Reserved name '__roundup_x' used |
MISRAC2012-RULE_21_2-a-2 |
|
46: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
46: |
The argument number '1' (8 byte essential type) is passed to the function 'fobj_sec_mem_alloc' as a parameter with a narrower
essential type (4 byte)
|
MISRAC2012-RULE_10_3-a-2 |
|
46: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with a narrower essential type (4 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
46: |
The first operand of the conditional operator '?:' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
47: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
48: |
Integer constant '0xFFFF000C' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
48: |
Provide only one exit point in 'ldelf_syscall_map_zi' function |
MISRAC2012-RULE_15_5-a-4 |
|
51: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
52: |
Integer constant '0xFFFF000C' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
52: |
Provide only one exit point in 'ldelf_syscall_map_zi' function |
MISRAC2012-RULE_15_5-a-4 |
|
57: |
Provide only one exit point in 'ldelf_syscall_map_zi' function |
MISRAC2012-RULE_15_5-a-4 |
|
65: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
76: |
Integer constant '0xFFFF0006' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
76: |
Provide only one exit point in 'ldelf_syscall_unmap' function |
MISRAC2012-RULE_15_5-a-4 |
|
79: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
80: |
Provide only one exit point in 'ldelf_syscall_unmap' function |
MISRAC2012-RULE_15_5-a-4 |
|
81: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
82: |
Integer constant '0xFFFF0001' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
82: |
Provide only one exit point in 'ldelf_syscall_unmap' function |
MISRAC2012-RULE_15_5-a-4 |
|
84: |
Provide only one exit point in 'ldelf_syscall_unmap' function |
MISRAC2012-RULE_15_5-a-4 |
|
89: |
Pointer to void type should not be converted to pointer to object type 'struct bin_handle *' |
MISRAC2012-RULE_11_5-a-4 |
|
91: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
92: |
The left hand operand of the logical operator '&&' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
92: |
The right hand operand of the logical operator '&&' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
96: |
'free' function should not be used |
MISRAC2012-RULE_21_3-a-2 |
|
96: |
'free' function should not be used |
MISRAC2012-DIR_4_12-a-2 |
|
105: |
Pointer to void type should not be converted to pointer to object type 'struct system_ctx *' |
MISRAC2012-RULE_11_5-a-4 |
|
108: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with a narrower essential type (4 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
112: |
The argument number '2' ('essentially signed' type) is passed to the function 'vm_check_access_rights' as a parameter with
the 'essentially unsigned' type
|
MISRAC2012-RULE_10_3-b-2 |
|
112: |
The left hand operand of the '|' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
112: |
The right hand operand of the '|' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
114: |
Pointer to object type 'const TEE_UUID *' should not be converted to integral type 'unsigned long' |
MISRAC2012-RULE_11_4-a-4 |
|
115: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
116: |
Provide only one exit point in 'ldelf_syscall_open_bin' function |
MISRAC2012-RULE_15_5-a-4 |
|
119: |
The argument number '2' ('essentially signed' type) is passed to the function 'vm_check_access_rights' as a parameter with
the 'essentially unsigned' type
|
MISRAC2012-RULE_10_3-b-2 |
|
119: |
The left hand operand of the '|' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
119: |
The right hand operand of the '|' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
121: |
Pointer to object type 'uint32_t *' should not be converted to integral type 'unsigned long' |
MISRAC2012-RULE_11_4-a-4 |
|
122: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
123: |
Provide only one exit point in 'ldelf_syscall_open_bin' function |
MISRAC2012-RULE_15_5-a-4 |
|
126: |
Integer constant '0xFFFF0006' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
126: |
Provide only one exit point in 'ldelf_syscall_open_bin' function |
MISRAC2012-RULE_15_5-a-4 |
|
128: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
129: |
'calloc' function should not be used |
MISRAC2012-RULE_21_3-a-2 |
|
129: |
'calloc' function should not be used |
MISRAC2012-DIR_4_12-a-2 |
|
129: |
Pointer to void type should not be converted to pointer to object type 'struct system_ctx *' |
MISRAC2012-RULE_11_5-a-4 |
|
130: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
131: |
Integer constant '0xFFFF000C' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
131: |
Provide only one exit point in 'ldelf_syscall_open_bin' function |
MISRAC2012-RULE_15_5-a-4 |
|
135: |
'calloc' function should not be used |
MISRAC2012-RULE_21_3-a-2 |
|
135: |
'calloc' function should not be used |
MISRAC2012-DIR_4_12-a-2 |
|
135: |
Pointer to void type should not be converted to pointer to object type 'struct bin_handle *' |
MISRAC2012-RULE_11_5-a-4 |
|
136: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
137: |
Integer constant '0xFFFF000C' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
137: |
Provide only one exit point in 'ldelf_syscall_open_bin' function |
MISRAC2012-RULE_15_5-a-4 |
|
139: |
The operands of a logical '||' in function 'ldelf_syscall_open_bin' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
139: |
The operands of a logical '||' in function 'ldelf_syscall_open_bin' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
140: |
More than one variable is declared in the first clause of a 'for' statement |
MISRAC2012-RULE_14_2-b-2 |
|
140: |
Pointer to void type should not be converted to pointer to object type 'const struct ts_store_ops *' |
MISRAC2012-RULE_11_5-a-4 |
|
140: |
Reserved name '__scattered_array_begin' used |
MISRAC2012-RULE_21_2-a-2 |
|
140: |
Reserved name '__scattered_array_end' used |
MISRAC2012-RULE_21_2-a-2 |
|
147: |
Integer constant '0xFFFF0008' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
147: |
The operands of a logical '&&' in function 'ldelf_syscall_open_bin' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
148: |
Integer constant '0xF0100003' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
148: |
The operands of a logical '&&' in function 'ldelf_syscall_open_bin' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
152: |
Identifier '__scattered_array_begin' is being reused |
MISRAC2012-RULE_5_9-b-4 |
|
152: |
Identifier '__scattered_array_end' is being reused |
MISRAC2012-RULE_5_9-b-4 |
|
152: |
More than one variable is declared in the first clause of a 'for' statement |
MISRAC2012-RULE_14_2-b-2 |
|
152: |
Pointer to void type should not be converted to pointer to object type 'const struct ts_store_ops *' |
MISRAC2012-RULE_11_5-a-4 |
|
152: |
Reserved name '__scattered_array_begin' used |
MISRAC2012-RULE_21_2-a-2 |
|
152: |
Reserved name '__scattered_array_end' used |
MISRAC2012-RULE_21_2-a-2 |
|
159: |
Integer constant '0xFFFF0008' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
159: |
The operands of a logical '&&' in function 'ldelf_syscall_open_bin' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
160: |
Integer constant '0xF0100003' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
160: |
The operands of a logical '&&' in function 'ldelf_syscall_open_bin' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
164: |
Integer constant '0xFFFF0008' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
167: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
168: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
171: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
172: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
174: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
175: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
177: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
178: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
182: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
183: |
The expression of the 'essentially signed' type is assigned to an object with the 'essentially unsigned' type |
MISRAC2012-RULE_10_3-b-2 |
|
185: |
Provide only one exit point in 'ldelf_syscall_open_bin' function |
MISRAC2012-RULE_15_5-a-4 |
|
188: |
Integer constant '0xFFFF000C' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
191: |
Provide only one exit point in 'ldelf_syscall_open_bin' function |
MISRAC2012-RULE_15_5-a-4 |
|
198: |
Pointer to void type should not be converted to pointer to object type 'struct system_ctx *' |
MISRAC2012-RULE_11_5-a-4 |
|
201: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
202: |
Integer constant '0xFFFF0006' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
202: |
Provide only one exit point in 'ldelf_syscall_close_bin' function |
MISRAC2012-RULE_15_5-a-4 |
|
204: |
Pointer to void type should not be converted to pointer to object type 'struct bin_handle *' |
MISRAC2012-RULE_11_5-a-4 |
|
204: |
The argument number '2' ('essentially unsigned' type) is passed to the function 'handle_put' as a parameter with the 'essentially
signed' type
|
MISRAC2012-RULE_10_3-b-2 |
|
205: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
206: |
Integer constant '0xFFFF0006' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
206: |
Provide only one exit point in 'ldelf_syscall_close_bin' function |
MISRAC2012-RULE_15_5-a-4 |
|
215: |
'free' function should not be used |
MISRAC2012-RULE_21_3-a-2 |
|
215: |
'free' function should not be used |
MISRAC2012-DIR_4_12-a-2 |
|
219: |
Provide only one exit point in 'ldelf_syscall_close_bin' function |
MISRAC2012-RULE_15_5-a-4 |
|
229: |
Integer constant '0xFFFF0007' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
229: |
Provide only one exit point in 'binh_copy_to' function |
MISRAC2012-RULE_15_5-a-4 |
|
232: |
Integer constant '0xFFFF0006' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
232: |
Provide only one exit point in 'binh_copy_to' function |
MISRAC2012-RULE_15_5-a-4 |
|
237: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
238: |
Provide only one exit point in 'binh_copy_to' function |
MISRAC2012-RULE_15_5-a-4 |
|
245: |
Arithmetic type 'unsigned long' should not be converted to pointer to void type |
MISRAC2012-RULE_11_6-a-2 |
|
246: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
247: |
Provide only one exit point in 'binh_copy_to' function |
MISRAC2012-RULE_15_5-a-4 |
|
248: |
Integral type 'unsigned long' should not be converted to pointer to object type 'uint8_t *' |
MISRAC2012-RULE_11_4-a-4 |
|
248: |
The left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
248: |
Unused function's "memset" return value |
MISRAC2012-RULE_17_7-a-2 |
|
251: |
Arithmetic type 'unsigned long' should not be converted to pointer to void type |
MISRAC2012-RULE_11_6-a-2 |
|
252: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
253: |
Provide only one exit point in 'binh_copy_to' function |
MISRAC2012-RULE_15_5-a-4 |
|
257: |
Provide only one exit point in 'binh_copy_to' function |
MISRAC2012-RULE_15_5-a-4 |
|
268: |
Pointer to void type should not be converted to pointer to object type 'struct system_ctx *' |
MISRAC2012-RULE_11_5-a-4 |
|
273: |
A tag name 'mobj' is reused |
MISRAC2012-RULE_5_7-a-2 |
|
273: |
Identifier 'mobj' is hiding an identifier from global or namespace scope |
MISRAC2012-RULE_5_3-a-2 |
|
281: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
282: |
Integer constant '0xFFFF0006' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
282: |
Provide only one exit point in 'ldelf_syscall_map_bin' function |
MISRAC2012-RULE_15_5-a-4 |
|
284: |
Pointer to void type should not be converted to pointer to object type 'struct bin_handle *' |
MISRAC2012-RULE_11_5-a-4 |
|
284: |
The argument number '2' ('essentially unsigned' type) is passed to the function 'handle_lookup' as a parameter with the 'essentially
signed' type
|
MISRAC2012-RULE_10_3-b-2 |
|
285: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
286: |
Integer constant '0xFFFF0006' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
286: |
Provide only one exit point in 'ldelf_syscall_map_bin' function |
MISRAC2012-RULE_15_5-a-4 |
|
289: |
Integer constant '0xFFFF0006' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
289: |
Provide only one exit point in 'ldelf_syscall_map_bin' function |
MISRAC2012-RULE_15_5-a-4 |
|
291: |
The left hand operand of the logical operator '&&' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
291: |
The right hand operand of the logical operator '&&' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
293: |
Integer constant '0xFFFF0006' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
293: |
Provide only one exit point in 'ldelf_syscall_map_bin' function |
MISRAC2012-RULE_15_5-a-4 |
|
295: |
The left hand operand of the logical operator '&&' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
295: |
The right hand operand of the logical operator '&&' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
297: |
Integer constant '0xFFFF0006' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
297: |
Provide only one exit point in 'ldelf_syscall_map_bin' function |
MISRAC2012-RULE_15_5-a-4 |
|
299: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
299: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
300: |
Integer constant '0xFFFF0006' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
300: |
Provide only one exit point in 'ldelf_syscall_map_bin' function |
MISRAC2012-RULE_15_5-a-4 |
|
303: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
304: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
305: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
306: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
308: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with a narrower essential type (4 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
309: |
Assignment operator '=' is used in improper context |
MISRAC2012-RULE_13_4-a-4 |
|
309: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
309: |
Disallowed comma operator is used in function 'ldelf_syscall_map_bin' |
MISRAC2012-RULE_12_3-a-4 |
|
309: |
Reserved name '__roundup_mask' used |
MISRAC2012-RULE_21_2-a-2 |
|
309: |
Reserved name '__roundup_tmp' used |
MISRAC2012-RULE_21_2-a-2 |
|
309: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
309: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with a narrower essential type (4 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
309: |
Unused function's "__builtin_add_overflow" return value |
MISRAC2012-RULE_17_7-b-2 |
|
310: |
Integer constant '0xFFFF0006' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
310: |
Provide only one exit point in 'ldelf_syscall_map_bin' function |
MISRAC2012-RULE_15_5-a-4 |
|
311: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
311: |
The value of a composite expression (32 bit essential type) is assigned to an object with wider essential type (64 bit) |
MISRAC2012-RULE_10_6-a-2 |
|
326: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
328: |
The operands of a logical '||' in function 'ldelf_syscall_map_bin' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
329: |
The operands of a logical '||' in function 'ldelf_syscall_map_bin' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
330: |
Integer constant '0xFFFF0006' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
331: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
335: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
336: |
Integer constant '0xFFFF0006' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
337: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
341: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
342: |
Integer constant '0xFFFF000C' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
343: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
349: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
350: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
352: |
The argument number '1' (8 byte essential type) is passed to the function 'fobj_sec_mem_alloc' as a parameter with a narrower
essential type (4 byte)
|
MISRAC2012-RULE_10_3-a-2 |
|
356: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
357: |
Integer constant '0xFFFF000C' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
358: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
360: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
367: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
368: |
Integer constant '0xFFFF000C' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
369: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
375: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
376: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
378: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
379: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
382: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
383: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
391: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
393: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
394: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
400: |
Provide only one exit point in 'ldelf_syscall_map_bin' function |
MISRAC2012-RULE_15_5-a-4 |
|
403: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
416: |
Provide only one exit point in 'ldelf_syscall_map_bin' function |
MISRAC2012-RULE_15_5-a-4 |
|
419: |
Pass parameter "dst" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
425: |
Pointer to void type should not be converted to pointer to object type 'struct system_ctx *' |
MISRAC2012-RULE_11_5-a-4 |
|
429: |
The argument number '2' ('essentially signed' type) is passed to the function 'vm_check_access_rights' as a parameter with
the 'essentially unsigned' type
|
MISRAC2012-RULE_10_3-b-2 |
|
429: |
The left hand operand of the '|' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
429: |
The right hand operand of the '|' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
431: |
Pointer to void type should not be converted to arithmetic type 'unsigned long' |
MISRAC2012-RULE_11_6-a-2 |
|
432: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
433: |
Provide only one exit point in 'ldelf_syscall_copy_from_bin' function |
MISRAC2012-RULE_15_5-a-4 |
|
435: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
436: |
Integer constant '0xFFFF0006' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
436: |
Provide only one exit point in 'ldelf_syscall_copy_from_bin' function |
MISRAC2012-RULE_15_5-a-4 |
|
438: |
Pointer to void type should not be converted to pointer to object type 'struct bin_handle *' |
MISRAC2012-RULE_11_5-a-4 |
|
438: |
The argument number '2' ('essentially unsigned' type) is passed to the function 'handle_lookup' as a parameter with the 'essentially
signed' type
|
MISRAC2012-RULE_10_3-b-2 |
|
439: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
440: |
Integer constant '0xFFFF0006' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
440: |
Provide only one exit point in 'ldelf_syscall_copy_from_bin' function |
MISRAC2012-RULE_15_5-a-4 |
|
442: |
Pointer to void type should not be converted to arithmetic type 'unsigned long' |
MISRAC2012-RULE_11_6-a-2 |
|
442: |
Provide only one exit point in 'ldelf_syscall_copy_from_bin' function |
MISRAC2012-RULE_15_5-a-4 |
|
451: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
459: |
Integer constant '0xFFFF0006' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
459: |
Provide only one exit point in 'ldelf_syscall_set_prot' function |
MISRAC2012-RULE_15_5-a-4 |
|
460: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
461: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
462: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
463: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
472: |
Integer constant '0xFFFF0006' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
472: |
Provide only one exit point in 'ldelf_syscall_set_prot' function |
MISRAC2012-RULE_15_5-a-4 |
|
475: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
476: |
Provide only one exit point in 'ldelf_syscall_set_prot' function |
MISRAC2012-RULE_15_5-a-4 |
|
477: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
478: |
Integer constant '0xFFFF0001' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
478: |
Provide only one exit point in 'ldelf_syscall_set_prot' function |
MISRAC2012-RULE_15_5-a-4 |
|
485: |
The left hand operand of the logical operator '&&' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
485: |
The right hand operand of the logical operator '&&' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
486: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
487: |
Integer constant '0xFFFF0001' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
487: |
Provide only one exit point in 'ldelf_syscall_set_prot' function |
MISRAC2012-RULE_15_5-a-4 |
|
489: |
Provide only one exit point in 'ldelf_syscall_set_prot' function |
MISRAC2012-RULE_15_5-a-4 |
|
502: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
503: |
Provide only one exit point in 'ldelf_syscall_remap' function |
MISRAC2012-RULE_15_5-a-4 |
|
504: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
505: |
Integer constant '0xFFFF0001' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
505: |
Provide only one exit point in 'ldelf_syscall_remap' function |
MISRAC2012-RULE_15_5-a-4 |
|
509: |
Provide only one exit point in 'ldelf_syscall_remap' function |
MISRAC2012-RULE_15_5-a-4 |
|
519: |
The argument number '2' ('essentially signed' type) is passed to the function 'vm_check_access_rights' as a parameter with
the 'essentially unsigned' type
|
MISRAC2012-RULE_10_3-b-2 |
|
519: |
The left hand operand of the '|' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
519: |
The right hand operand of the '|' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
521: |
Pointer to void type should not be converted to arithmetic type 'unsigned long' |
MISRAC2012-RULE_11_6-a-2 |
|
522: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
523: |
Provide only one exit point in 'ldelf_syscall_gen_rnd_num' function |
MISRAC2012-RULE_15_5-a-4 |
|
525: |
Provide only one exit point in 'ldelf_syscall_gen_rnd_num' function |
MISRAC2012-RULE_15_5-a-4 |
|
535: |
Pointer to void type should not be converted to pointer to object type 'struct system_ctx *' |
MISRAC2012-RULE_11_5-a-4 |
|
537: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
539: |
'free' function should not be used |
MISRAC2012-RULE_21_3-a-2 |
|
539: |
'free' function should not be used |
MISRAC2012-DIR_4_12-a-2 |
| /optee_os_MISRA/optee_os_ruchi393_core/kernel/msg_param.c |
|
36: |
Section of code should not be 'commented out' |
MISRAC2012-DIR_4_4-a-4 |
|
66: |
A tag name 'mobj' is reused |
MISRAC2012-RULE_5_7-a-2 |
|
66: |
Identifier 'mobj' is hiding an identifier from global or namespace scope |
MISRAC2012-RULE_5_3-a-2 |
|
71: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
71: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
72: |
Provide only one exit point in 'msg_param_extract_pages' function |
MISRAC2012-RULE_15_5-a-4 |
|
79: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
80: |
Provide only one exit point in 'msg_param_extract_pages' function |
MISRAC2012-RULE_15_5-a-4 |
|
82: |
Pointer to void type should not be converted to pointer to object type 'uint64_t *' |
MISRAC2012-RULE_11_5-a-4 |
|
83: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
85: |
Disallowed comma operator is used in function 'msg_param_extract_pages' |
MISRAC2012-RULE_12_3-a-4 |
|
85: |
Only one 'goto' statement in loop is allowed. This loop contains 'goto' in lines: 94, 99, 106 |
MISRAC2012-RULE_15_4-a-4 |
|
85: |
The '++' operator should cause the only side effect in an expression |
MISRAC2012-RULE_13_3-a-4 |
|
85: |
The third clause of a 'for' statement should not contain a comma operator |
MISRAC2012-RULE_14_2-d-2 |
|
91: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
91: |
Pointer to object type 'uint64_t *' should not be converted to integral type 'unsigned long' |
MISRAC2012-RULE_11_4-a-4 |
|
91: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
91: |
The variable 'va' used as the left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
93: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
93: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
94: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
98: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
99: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
101: |
Pointer to void type should not be converted to pointer to object type 'uint64_t *' |
MISRAC2012-RULE_11_5-a-4 |
|
102: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
105: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
105: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
106: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
112: |
Provide only one exit point in 'msg_param_extract_pages' function |
MISRAC2012-RULE_15_5-a-4 |
|
118: |
A tag name 'mobj' is reused |
MISRAC2012-RULE_5_7-a-2 |
|
118: |
Identifier 'mobj' is hiding an identifier from global or namespace scope |
MISRAC2012-RULE_5_3-a-2 |
|
125: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
127: |
Provide only one exit point in 'msg_param_mobj_from_noncontig' function |
MISRAC2012-RULE_15_5-a-4 |
|
128: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
128: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
130: |
Provide only one exit point in 'msg_param_mobj_from_noncontig' function |
MISRAC2012-RULE_15_5-a-4 |
|
132: |
'malloc' function should not be used |
MISRAC2012-RULE_21_3-a-2 |
|
132: |
'malloc' function should not be used |
MISRAC2012-DIR_4_12-a-2 |
|
132: |
Pointer to void type should not be converted to pointer to object type 'paddr_t *' |
MISRAC2012-RULE_11_5-a-4 |
|
133: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
134: |
Provide only one exit point in 'msg_param_mobj_from_noncontig' function |
MISRAC2012-RULE_15_5-a-4 |
|
136: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
138: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
147: |
'free' function should not be used |
MISRAC2012-RULE_21_3-a-2 |
|
147: |
'free' function should not be used |
MISRAC2012-DIR_4_12-a-2 |
|
148: |
Provide only one exit point in 'msg_param_mobj_from_noncontig' function |
MISRAC2012-RULE_15_5-a-4 |
| /optee_os_MISRA/optee_os_ruchi393_core/kernel/mutex.c |
|
25: |
Reserved name '__mutex_lock' used |
MISRAC2012-RULE_21_2-a-2 |
|
25: |
The names of the identifiers '__mutex_lock' and 'mutex_lock' (line: 69 in the 'mutex.h' file) differ only in the presence/absence
of the underscore character
|
MISRAC2012-DIR_4_5-a-4 |
|
28: |
Potential macro 'THREAD_ID_INVALID' used as '1' parameter of potential macro 'assert' |
MISRAC2012-RULE_20_12-a-2 |
|
49: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
65: |
'return' statement should be at the end of the '__mutex_lock' function |
MISRAC2012-RULE_15_5-a-4 |
|
69: |
Reserved name '__mutex_lock_recursive' used |
MISRAC2012-RULE_21_2-a-2 |
|
69: |
The names of the identifiers '__mutex_lock_recursive' and 'mutex_lock_recursive' (line: 76 in the 'mutex.h' file) differ only
in the presence/absence of the underscore character
|
MISRAC2012-DIR_4_5-a-4 |
|
80: |
'return' statement should be at the end of the '__mutex_lock_recursive' function |
MISRAC2012-RULE_15_5-a-4 |
|
85: |
Potential macro 'THREAD_ID_INVALID' used as '1' parameter of potential macro 'assert' |
MISRAC2012-RULE_20_12-a-2 |
|
90: |
Reserved name '__mutex_unlock' used |
MISRAC2012-RULE_21_2-a-2 |
|
90: |
The names of the identifiers '__mutex_unlock' and 'mutex_unlock' (line: 68 in the 'mutex.h' file) differ only in the presence/absence
of the underscore character
|
MISRAC2012-DIR_4_5-a-4 |
|
95: |
Potential macro 'THREAD_ID_INVALID' used as '1' parameter of potential macro 'assert' |
MISRAC2012-RULE_20_12-a-2 |
|
101: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
111: |
Reserved name '__mutex_unlock_recursive' used |
MISRAC2012-RULE_21_2-a-2 |
|
111: |
The names of the identifiers '__mutex_unlock_recursive' and 'mutex_unlock_recursive' (line: 75 in the 'mutex.h' file) differ
only in the presence/absence of the underscore character
|
MISRAC2012-DIR_4_5-a-4 |
|
127: |
Parameter 'fname' is not used in function '__mutex_trylock' |
MISRAC2012-RULE_2_7-a-4 |
|
127: |
Reserved name '__mutex_trylock' used |
MISRAC2012-RULE_21_2-a-2 |
|
127: |
The names of the identifiers '__mutex_trylock' and 'mutex_trylock' (line: 70 in the 'mutex.h' file) differ only in the presence/absence
of the underscore character
|
MISRAC2012-DIR_4_5-a-4 |
|
128: |
Parameter 'lineno' is not used in function '__mutex_trylock' |
MISRAC2012-RULE_2_7-a-4 |
|
134: |
Potential macro 'THREAD_ID_INVALID' used as '1' parameter of potential macro 'assert' |
MISRAC2012-RULE_20_12-a-2 |
|
138: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
150: |
Reserved name '__mutex_read_unlock' used |
MISRAC2012-RULE_21_2-a-2 |
|
150: |
The names of the identifiers '__mutex_read_unlock' and 'mutex_read_unlock' (line: 71 in the 'mutex.h' file) differ only in
the presence/absence of the underscore character
|
MISRAC2012-DIR_4_5-a-4 |
|
156: |
Potential macro 'THREAD_ID_INVALID' used as '1' parameter of potential macro 'assert' |
MISRAC2012-RULE_20_12-a-2 |
|
168: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
172: |
Reserved name '__mutex_read_lock' used |
MISRAC2012-RULE_21_2-a-2 |
|
172: |
The names of the identifiers '__mutex_read_lock' and 'mutex_read_lock' (line: 72 in the 'mutex.h' file) differ only in the
presence/absence of the underscore character
|
MISRAC2012-DIR_4_5-a-4 |
|
175: |
Potential macro 'THREAD_ID_INVALID' used as '1' parameter of potential macro 'assert' |
MISRAC2012-RULE_20_12-a-2 |
|
210: |
'return' statement should be at the end of the '__mutex_read_lock' function |
MISRAC2012-RULE_15_5-a-4 |
|
214: |
Parameter 'fname' is not used in function '__mutex_read_trylock' |
MISRAC2012-RULE_2_7-a-4 |
|
214: |
Reserved name '__mutex_read_trylock' used |
MISRAC2012-RULE_21_2-a-2 |
|
214: |
The names of the identifiers '__mutex_read_trylock' and 'mutex_read_trylock' (line: 73 in the 'mutex.h' file) differ only
in the presence/absence of the underscore character
|
MISRAC2012-DIR_4_5-a-4 |
|
215: |
Parameter 'lineno' is not used in function '__mutex_read_trylock' |
MISRAC2012-RULE_2_7-a-4 |
|
221: |
Potential macro 'THREAD_ID_INVALID' used as '1' parameter of potential macro 'assert' |
MISRAC2012-RULE_20_12-a-2 |
|
278: |
The identifier 'mutex_unlock' has the same name (or the first 31 characters of the name) as the macro defined in the current
translation unit
|
MISRAC2012-RULE_5_5-a-2 |
|
278: |
The identifier 'mutex_unlock' has the same name (or the first 63 characters of the name) as the macro defined in the current
translation unit
|
MISRAC2012-RULE_5_5-b-2 |
|
278: |
The names of the identifiers 'mutex_unlock' and '__mutex_unlock' (line: 90 in the 'mutex.c' file) differ only in the presence/absence
of the underscore character
|
MISRAC2012-DIR_4_5-a-4 |
|
283: |
The identifier 'mutex_unlock_recursive' has the same name (or the first 31 characters of the name) as the macro defined in
the current translation unit
|
MISRAC2012-RULE_5_5-a-2 |
|
283: |
The identifier 'mutex_unlock_recursive' has the same name (or the first 63 characters of the name) as the macro defined in
the current translation unit
|
MISRAC2012-RULE_5_5-b-2 |
|
283: |
The names of the identifiers 'mutex_unlock_recursive' and '__mutex_unlock_recursive' (line: 111 in the 'mutex.c' file) differ
only in the presence/absence of the underscore character
|
MISRAC2012-DIR_4_5-a-4 |
|
288: |
The identifier 'mutex_lock' has the same name (or the first 31 characters of the name) as the macro defined in the current
translation unit
|
MISRAC2012-RULE_5_5-a-2 |
|
288: |
The identifier 'mutex_lock' has the same name (or the first 63 characters of the name) as the macro defined in the current
translation unit
|
MISRAC2012-RULE_5_5-b-2 |
|
288: |
The names of the identifiers 'mutex_lock' and '__mutex_lock' (line: 25 in the 'mutex.c' file) differ only in the presence/absence
of the underscore character
|
MISRAC2012-DIR_4_5-a-4 |
|
293: |
The identifier 'mutex_lock_recursive' has the same name (or the first 31 characters of the name) as the macro defined in the
current translation unit
|
MISRAC2012-RULE_5_5-a-2 |
|
293: |
The identifier 'mutex_lock_recursive' has the same name (or the first 63 characters of the name) as the macro defined in the
current translation unit
|
MISRAC2012-RULE_5_5-b-2 |
|
293: |
The names of the identifiers 'mutex_lock_recursive' and '__mutex_lock_recursive' (line: 69 in the 'mutex.c' file) differ only
in the presence/absence of the underscore character
|
MISRAC2012-DIR_4_5-a-4 |
|
298: |
The identifier 'mutex_trylock' has the same name (or the first 31 characters of the name) as the macro defined in the current
translation unit
|
MISRAC2012-RULE_5_5-a-2 |
|
298: |
The identifier 'mutex_trylock' has the same name (or the first 63 characters of the name) as the macro defined in the current
translation unit
|
MISRAC2012-RULE_5_5-b-2 |
|
298: |
The names of the identifiers 'mutex_trylock' and '__mutex_trylock' (line: 127 in the 'mutex.c' file) differ only in the presence/absence
of the underscore character
|
MISRAC2012-DIR_4_5-a-4 |
|
303: |
The identifier 'mutex_read_unlock' has the same name (or the first 31 characters of the name) as the macro defined in the
current translation unit
|
MISRAC2012-RULE_5_5-a-2 |
|
303: |
The identifier 'mutex_read_unlock' has the same name (or the first 63 characters of the name) as the macro defined in the
current translation unit
|
MISRAC2012-RULE_5_5-b-2 |
|
303: |
The names of the identifiers 'mutex_read_unlock' and '__mutex_read_unlock' (line: 150 in the 'mutex.c' file) differ only in
the presence/absence of the underscore character
|
MISRAC2012-DIR_4_5-a-4 |
|
308: |
The identifier 'mutex_read_lock' has the same name (or the first 31 characters of the name) as the macro defined in the current
translation unit
|
MISRAC2012-RULE_5_5-a-2 |
|
308: |
The identifier 'mutex_read_lock' has the same name (or the first 63 characters of the name) as the macro defined in the current
translation unit
|
MISRAC2012-RULE_5_5-b-2 |
|
308: |
The names of the identifiers 'mutex_read_lock' and '__mutex_read_lock' (line: 172 in the 'mutex.c' file) differ only in the
presence/absence of the underscore character
|
MISRAC2012-DIR_4_5-a-4 |
|
313: |
The identifier 'mutex_read_trylock' has the same name (or the first 31 characters of the name) as the macro defined in the
current translation unit
|
MISRAC2012-RULE_5_5-a-2 |
|
313: |
The identifier 'mutex_read_trylock' has the same name (or the first 63 characters of the name) as the macro defined in the
current translation unit
|
MISRAC2012-RULE_5_5-b-2 |
|
313: |
The names of the identifiers 'mutex_read_trylock' and '__mutex_read_trylock' (line: 214 in the 'mutex.c' file) differ only
in the presence/absence of the underscore character
|
MISRAC2012-DIR_4_5-a-4 |
|
325: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
352: |
The left hand operand of the logical operator '&&' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
352: |
The operands of a logical '&&' in function 'condvar_destroy' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
368: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
385: |
The identifier 'condvar_signal' has the same name (or the first 31 characters of the name) as the macro defined in the current
translation unit
|
MISRAC2012-RULE_5_5-a-2 |
|
385: |
The identifier 'condvar_signal' has the same name (or the first 63 characters of the name) as the macro defined in the current
translation unit
|
MISRAC2012-RULE_5_5-b-2 |
|
390: |
The identifier 'condvar_broadcast' has the same name (or the first 31 characters of the name) as the macro defined in the
current translation unit
|
MISRAC2012-RULE_5_5-a-2 |
|
390: |
The identifier 'condvar_broadcast' has the same name (or the first 63 characters of the name) as the macro defined in the
current translation unit
|
MISRAC2012-RULE_5_5-b-2 |
|
396: |
Reserved name '__condvar_wait' used |
MISRAC2012-RULE_21_2-a-2 |
|
396: |
The names of the identifiers '__condvar_wait' and 'condvar_wait' (line: 101 in the 'mutex.h' file) differ only in the presence/absence
of the underscore character
|
MISRAC2012-DIR_4_5-a-4 |
|
408: |
The left hand operand of the logical operator '&&' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
408: |
The operands of a logical '&&' in function '__condvar_wait' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
416: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
434: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
452: |
The identifier 'condvar_wait' has the same name (or the first 31 characters of the name) as the macro defined in the current
translation unit
|
MISRAC2012-RULE_5_5-a-2 |
|
452: |
The identifier 'condvar_wait' has the same name (or the first 63 characters of the name) as the macro defined in the current
translation unit
|
MISRAC2012-RULE_5_5-b-2 |
|
452: |
The names of the identifiers 'condvar_wait' and '__condvar_wait' (line: 396 in the 'mutex.c' file) differ only in the presence/absence
of the underscore character
|
MISRAC2012-DIR_4_5-a-4 |
| /optee_os_MISRA/optee_os_ruchi393_core/kernel/mutex_lockdep.h |
|
23: |
Parameter 'm' is not used in function 'mutex_lock_check' |
MISRAC2012-RULE_2_7-a-4 |
|
23: |
Pass parameter "m" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
26: |
Parameter 'm' is not used in function 'mutex_trylock_check' |
MISRAC2012-RULE_2_7-a-4 |
|
26: |
Pass parameter "m" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
29: |
Parameter 'm' is not used in function 'mutex_unlock_check' |
MISRAC2012-RULE_2_7-a-4 |
|
29: |
Pass parameter "m" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
32: |
Parameter 'm' is not used in function 'mutex_destroy_check' |
MISRAC2012-RULE_2_7-a-4 |
|
32: |
Pass parameter "m" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
| /optee_os_MISRA/optee_os_ruchi393_core/kernel/panic.c |
|
12: |
Reserved name '__do_panic' used |
MISRAC2012-RULE_21_2-a-2 |
|
12: |
The '__do_panic' function should not be declared with the '_Noreturn' specifier |
MISRAC2012-RULE_1_4-b-2 |
|
18: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
18: |
The argument number '1' ('essentially signed' type) is passed to the function 'thread_mask_exceptions' as a parameter with
the 'essentially unsigned' type
|
MISRAC2012-RULE_10_3-b-2 |
|
18: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
18: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
18: |
The left hand operand of the '>>' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
18: |
The left hand operand of the '>>' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
18: |
The left hand operand of the '|' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
18: |
The right hand operand of the '|' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
23: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
23: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
23: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
23: |
The operands of a logical '&&' in function '__do_panic' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
23: |
The operands of a logical '&&' in function '__do_panic' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
23: |
The operands of a logical '&&' in function '__do_panic' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
26: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
26: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
26: |
The first operand of the conditional operator '?:' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
26: |
The first operand of the conditional operator '?:' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
33: |
'while' statement in a function '__do_panic' should be followed by a block |
MISRAC2012-RULE_15_6-a-2 |
| /optee_os_MISRA/optee_os_ruchi393_core/kernel/pm.c |
|
21: |
Arithmetic type 'unsigned long' should not be converted to pointer to void type |
MISRAC2012-RULE_11_6-a-2 |
| +
|
21: |
Condition "is_unpaged((void *)(vaddr_t)pm_change_state) && (!is_unpaged...ed(pm_hdl->handle)))" always evaluates to false |
MISRAC2012-RULE_14_3-ac-2 |
| |
|
Start of the path
pm.c (19): static void verify_cb_args(struct pm_callback_handle *pm_hdl)
pm.c (21): is_unpaged(...)
core_mmu.c (2307): return true;
pm.c (21): if (is_unpaged((void *)(vaddr_t)pm_change_state) && *** Condition evaluation: is_unpaged(...) (true)
pm.c (22): is_unpaged(...)
core_mmu.c (2307): return true;
pm.c (22): (!is_unpaged((void *)(vaddr_t)pm_hdl->callback) || *** Condition evaluation: !is_unpaged(...) (false)
pm.c (23): (pm_hdl->handle && !is_unpaged(pm_hdl->handle)))) { *** Condition evaluation: (pm_hdl->handle != 0) (assuming false)
Point where senseless condition is used
pm.c (21): if (is_unpaged((void *)(vaddr_t)pm_change_state) && |
|
| +
|
21: |
Condition "is_unpaged(...)" always evaluates to true |
MISRAC2012-RULE_14_3-ac-2 |
| |
|
Start of the path
pm.c (19): static void verify_cb_args(struct pm_callback_handle *pm_hdl)
pm.c (21): is_unpaged(...)
core_mmu.c (2307): return true;
Point where senseless condition is used
pm.c (21): if (is_unpaged((void *)(vaddr_t)pm_change_state) && |
|
|
21: |
Pointer to function 'TEE_Result (*)(enum pm_op, uint32_t)' should not be cast to other type |
MISRAC2012-RULE_11_1-a-2 |
|
21: |
The operands of a logical '&&' in function 'verify_cb_args' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
22: |
Arithmetic type 'unsigned long' should not be converted to pointer to void type |
MISRAC2012-RULE_11_6-a-2 |
| +
|
22: |
Condition "!is_unpaged(...)" always evaluates to false |
MISRAC2012-RULE_14_3-ac-2 |
| |
|
Start of the path
pm.c (19): static void verify_cb_args(struct pm_callback_handle *pm_hdl)
pm.c (21): is_unpaged(...)
core_mmu.c (2307): return true;
pm.c (21): if (is_unpaged((void *)(vaddr_t)pm_change_state) && *** Condition evaluation: is_unpaged(...) (true)
pm.c (22): is_unpaged(...)
core_mmu.c (2307): return true;
Point where senseless condition is used
pm.c (22): (!is_unpaged((void *)(vaddr_t)pm_hdl->callback) || |
|
|
22: |
Pointer to function 'TEE_Result (*)(enum pm_op, uint32_t, const struct pm_callback_handle *)' should not be cast to other
type
|
MISRAC2012-RULE_11_1-a-2 |
|
22: |
The operands of a logical '||' in function 'verify_cb_args' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
| +
|
23: |
Condition "!is_unpaged(...)" always evaluates to false |
MISRAC2012-RULE_14_3-ac-2 |
| |
|
Start of the path
pm.c (19): static void verify_cb_args(struct pm_callback_handle *pm_hdl)
pm.c (21): is_unpaged(...)
core_mmu.c (2307): return true;
pm.c (21): if (is_unpaged((void *)(vaddr_t)pm_change_state) && *** Condition evaluation: is_unpaged(...) (true)
pm.c (22): is_unpaged(...)
core_mmu.c (2307): return true;
pm.c (22): (!is_unpaged((void *)(vaddr_t)pm_hdl->callback) || *** Condition evaluation: !is_unpaged(...) (false)
pm.c (23): is_unpaged(...)
core_mmu.c (2307): return true;
Point where senseless condition is used
pm.c (23): (pm_hdl->handle && !is_unpaged(pm_hdl->handle)))) { |
|
|
23: |
The left hand operand of the logical operator '&&' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
23: |
The operands of a logical '&&' in function 'verify_cb_args' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
24: |
Arithmetic type 'unsigned long' should not be converted to pointer to void type |
MISRAC2012-RULE_11_6-a-2 |
|
24: |
Pointer to function 'TEE_Result (*)(enum pm_op, uint32_t, const struct pm_callback_handle *)' should not be cast to other
type
|
MISRAC2012-RULE_11_1-a-2 |
|
30: |
Identifiers given in declaration of 'register_pm_cb' function (file: 'pm.h', line: '119') are: 'pm_handle' not: 'pm_hdl' |
MISRAC2012-RULE_8_3-b-2 |
|
30: |
The function 'register_pm_cb' is referenced only in the translation unit where it is defined (pm.h) |
MISRAC2012-RULE_8_7-a-4 |
|
37: |
'realloc' function should not be used |
MISRAC2012-RULE_21_3-a-2 |
|
37: |
'realloc' function should not be used |
MISRAC2012-DIR_4_12-a-2 |
|
37: |
Pointer to void type should not be converted to pointer to object type 'struct pm_callback_handle *' |
MISRAC2012-RULE_11_5-a-4 |
|
38: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
55: |
Disallowed comma operator is used in function 'call_callbacks' |
MISRAC2012-RULE_12_3-a-4 |
|
55: |
Disallowed comma operator is used in function 'call_callbacks' |
MISRAC2012-RULE_12_3-a-4 |
|
55: |
Improper expression is used in the first clause of a 'for' statement |
MISRAC2012-RULE_14_2-b-2 |
|
55: |
The '++' operator should cause the only side effect in an expression |
MISRAC2012-RULE_13_3-a-4 |
|
55: |
The third clause of a 'for' statement should not contain a comma operator |
MISRAC2012-RULE_14_2-d-2 |
|
56: |
The operands of a logical '||' in function 'call_callbacks' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
57: |
The operands of a logical '||' in function 'call_callbacks' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
61: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
62: |
Provide only one exit point in 'call_callbacks' function |
MISRAC2012-RULE_15_5-a-4 |
|
70: |
Provide only one exit point in 'call_callbacks' function |
MISRAC2012-RULE_15_5-a-4 |
|
73: |
The function 'pm_change_state' is referenced only in the translation unit where it is defined |
MISRAC2012-RULE_8_7-a-4 |
|
80: |
The operand of the '++' operator has essentially enum type: pm_callback_order |
MISRAC2012-RULE_10_1-d-2 |
|
82: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
87: |
The operand of the '--' operator has essentially enum type: pm_callback_order |
MISRAC2012-RULE_10_1-d-2 |
|
88: |
The argument number '3' ('essentially unsigned' type) is passed to the function 'call_callbacks' as a parameter with the 'essentially
Enum' type
|
MISRAC2012-RULE_10_3-b-2 |
|
88: |
The left hand operand of the '-' operator has essentially enum type: pm_callback_order |
MISRAC2012-RULE_10_1-d-2 |
|
89: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
93: |
Every non empty default clause in a switch statement shall be terminated with a break statement |
MISRAC2012-RULE_16_1-d-2 |
|
93: |
Every non empty default clause in a switch statement shall be terminated with a break statement |
MISRAC2012-RULE_16_3-b-2 |
| /optee_os_MISRA/optee_os_ruchi393_core/kernel/pseudo_ta.c |
|
46: |
Parameter 's' is not used in function 'validate_in_param' |
MISRAC2012-RULE_2_7-a-4 |
|
46: |
Pass parameter "s" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
47: |
A tag name 'mobj' is reused |
MISRAC2012-RULE_5_7-a-2 |
|
47: |
Identifier 'mobj' is hiding an identifier from global or namespace scope |
MISRAC2012-RULE_5_3-a-2 |
|
47: |
Parameter 'mobj' is not used in function 'validate_in_param' |
MISRAC2012-RULE_2_7-a-4 |
|
47: |
Pass parameter "mobj" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
56: |
Pass parameter "param" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
57: |
The names of the identifiers 'tee_param' and 'TEE_Param' (line: 58 in the 'tee_api_types.h' file) differ only in capitalization |
MISRAC2012-DIR_4_5-a-4 |
|
65: |
Shifting operation should be enclosed with if checking that RHS operand does not exceed the upper limit (one less than the
width in bits of the underlying type of the LHS operand)
|
MISRAC2012-RULE_12_2-a-2 |
|
65: |
The right hand operand of the '&' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
77: |
Integer constant '0xFFFF0006' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
78: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
81: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
85: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
86: |
Integer constant '0xFFFF0006' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
87: |
The left hand operand of the logical operator '&&' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
88: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
88: |
The operands of a logical '&&' in function 'copy_in_param' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
89: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
90: |
Integer constant '0xFFFF0006' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
96: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with a narrower essential type (4 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
99: |
The variable 'tee_param' used as the left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
99: |
Unused function's "memset" return value |
MISRAC2012-RULE_17_7-a-2 |
|
107: |
The names of the identifiers 'tee_param' and 'TEE_Param' (line: 58 in the 'tee_api_types.h' file) differ only in capitalization |
MISRAC2012-DIR_4_5-a-4 |
|
113: |
Shifting operation should be enclosed with if checking that RHS operand does not exceed the upper limit (one less than the
width in bits of the underlying type of the LHS operand)
|
MISRAC2012-RULE_12_2-a-2 |
|
113: |
The right hand operand of the '&' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
124: |
Missing statement or comment before terminating 'break' |
MISRAC2012-RULE_16_4-b-2 |
|
124: |
Missing statement or comment before terminating 'break' |
MISRAC2012-RULE_16_1-f-2 |
|
139: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
149: |
The names of the identifiers 'tee_param' and 'TEE_Param' (line: 58 in the 'tee_api_types.h' file) differ only in capitalization |
MISRAC2012-DIR_4_5-a-4 |
|
155: |
The operands of a logical '&&' in function 'pseudo_ta_enter_open_session' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
155: |
The right hand operand of the logical operator '&&' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
158: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
161: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
165: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
171: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
179: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
186: |
Unused function's "ts_pop_current_session" return value |
MISRAC2012-RULE_17_7-a-2 |
|
196: |
The names of the identifiers 'tee_param' and 'TEE_Param' (line: 58 in the 'tee_api_types.h' file) differ only in capitalization |
MISRAC2012-DIR_4_5-a-4 |
|
200: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
205: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
214: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
219: |
Unused function's "ts_pop_current_session" return value |
MISRAC2012-RULE_17_7-a-2 |
|
230: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
233: |
The operands of a logical '&&' in function 'pseudo_ta_enter_close_session' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
233: |
The right hand operand of the logical operator '&&' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
236: |
Unused function's "ts_pop_current_session" return value |
MISRAC2012-RULE_17_7-a-2 |
|
241: |
'free' function should not be used |
MISRAC2012-RULE_21_3-a-2 |
|
241: |
'free' function should not be used |
MISRAC2012-DIR_4_12-a-2 |
|
251: |
Pass parameter "ctx" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
257: |
Function 'verify_pseudo_tas_conformance' should have return at the end of each execution path |
MISRAC2012-RULE_17_4-a-1 |
|
261: |
The names of the identifiers 'end' and '__end' (line: 80 in the 'linker.h' file) differ only in the presence/absence of the
underscore character
|
MISRAC2012-DIR_4_5-a-4 |
|
265: |
Only one 'goto' statement in loop is allowed. This loop contains 'goto' in lines: 271, 278 |
MISRAC2012-RULE_15_4-a-4 |
| +
|
265: |
The "pta" pointer that results from a pointer arithmetic operation points 2 element beyond the end of array of size 0 |
MISRAC2012-RULE_18_1-c-2 |
| |
|
Start of the path
pseudo_ta.c (257): static TEE_Result verify_pseudo_tas_conformance(void)
pseudo_ta.c (260): scattered_array_relax_ptr(...)
scattered_array.c (10): return p;
pseudo_ta.c (260): SCATTERED_ARRAY_BEGIN(pseudo_tas, struct pseudo_ta_head);
pseudo_ta.c (259): const struct pseudo_ta_head *start =
pseudo_ta.c (262): SCATTERED_ARRAY_END(pseudo_tas, struct pseudo_ta_head);
pseudo_ta.c (261): const struct pseudo_ta_head *end =
pseudo_ta.c (263): const struct pseudo_ta_head *pta;
pseudo_ta.c (265): for (pta = start; pta < end; pta++) { *** Loop condition evaluation: (pta < end) (assuming true) *** Entering the loop
pseudo_ta.c (266): const struct pseudo_ta_head *pta2;
pseudo_ta.c (269): for (pta2 = pta + 1; pta2 < end; pta2++) { *** Loop condition evaluation: (pta2 < end) (assuming false) *** Not entering the loop
pseudo_ta.c (274): if (!pta->name || *** Condition evaluation: !pta->name (assuming false)
pseudo_ta.c (275): (pta->flags & PTA_MANDATORY_FLAGS) != PTA_MANDATORY_FLAGS || *** Condition evaluation: (pta->flags & 28 != 28) (assuming false)
pseudo_ta.c (276): pta->flags & ~PTA_ALLOWED_FLAGS || *** Condition evaluation: (pta->flags & 4294966467 != 0) (assuming false)
pseudo_ta.c (277): !pta->invoke_command_entry_point) *** Condition evaluation: !pta->invoke_command_entry_point (assuming false)
pseudo_ta.c (274): if (!pta->name || *** Condition evaluation: !pta->name || (pta->flags & PTA_MANDATORY_FLAGS) != PTA_MAND..._command_entry_point (false)
Out-of-bounds assignment point
pseudo_ta.c (265): for (pta = start; pta < end; pta++) { |
|
| +
|
265: |
Two unrelated pointers "pta" and "end" are compared |
MISRAC2012-DIR_4_1-j-2 |
| |
|
Start of the path
pseudo_ta.c (257): static TEE_Result verify_pseudo_tas_conformance(void)
pseudo_ta.c (260): scattered_array_relax_ptr(...)
scattered_array.c (10): return p;
pseudo_ta.c (260): SCATTERED_ARRAY_BEGIN(pseudo_tas, struct pseudo_ta_head);
pseudo_ta.c (259): const struct pseudo_ta_head *start =
pseudo_ta.c (262): SCATTERED_ARRAY_END(pseudo_tas, struct pseudo_ta_head);
pseudo_ta.c (261): const struct pseudo_ta_head *end =
pseudo_ta.c (263): const struct pseudo_ta_head *pta;
Point of comparison
pseudo_ta.c (265): for (pta = start; pta < end; pta++) { |
|
| +
|
265: |
Two unrelated pointers "pta" and "end" are compared |
MISRAC2012-RULE_18_3-a-2 |
| |
|
Start of the path
pseudo_ta.c (257): static TEE_Result verify_pseudo_tas_conformance(void)
pseudo_ta.c (260): scattered_array_relax_ptr(...)
scattered_array.c (10): return p;
pseudo_ta.c (260): SCATTERED_ARRAY_BEGIN(pseudo_tas, struct pseudo_ta_head);
pseudo_ta.c (259): const struct pseudo_ta_head *start =
pseudo_ta.c (262): SCATTERED_ARRAY_END(pseudo_tas, struct pseudo_ta_head);
pseudo_ta.c (261): const struct pseudo_ta_head *end =
pseudo_ta.c (263): const struct pseudo_ta_head *pta;
Point of comparison
pseudo_ta.c (265): for (pta = start; pta < end; pta++) { |
|
| +
|
269: |
The "pta2" pointer that results from a pointer arithmetic operation points 2 element beyond the end of array of size 0 |
MISRAC2012-RULE_18_1-c-2 |
| |
|
Start of the path
pseudo_ta.c (257): static TEE_Result verify_pseudo_tas_conformance(void)
pseudo_ta.c (260): scattered_array_relax_ptr(...)
scattered_array.c (10): return p;
pseudo_ta.c (260): SCATTERED_ARRAY_BEGIN(pseudo_tas, struct pseudo_ta_head);
pseudo_ta.c (259): const struct pseudo_ta_head *start =
pseudo_ta.c (262): SCATTERED_ARRAY_END(pseudo_tas, struct pseudo_ta_head);
pseudo_ta.c (261): const struct pseudo_ta_head *end =
pseudo_ta.c (263): const struct pseudo_ta_head *pta;
pseudo_ta.c (265): for (pta = start; pta < end; pta++) { *** Loop condition evaluation: (pta < end) (assuming true) *** Entering the loop
pseudo_ta.c (266): const struct pseudo_ta_head *pta2;
Out-of-bounds assignment point
pseudo_ta.c (269): for (pta2 = pta + 1; pta2 < end; pta2++) { |
|
|
269: |
The variable 'pta' used as the left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
| +
|
269: |
Two unrelated pointers "pta2" and "end" are compared |
MISRAC2012-DIR_4_1-j-2 |
| |
|
Start of the path
pseudo_ta.c (257): static TEE_Result verify_pseudo_tas_conformance(void)
pseudo_ta.c (260): scattered_array_relax_ptr(...)
scattered_array.c (10): return p;
pseudo_ta.c (260): SCATTERED_ARRAY_BEGIN(pseudo_tas, struct pseudo_ta_head);
pseudo_ta.c (259): const struct pseudo_ta_head *start =
pseudo_ta.c (262): SCATTERED_ARRAY_END(pseudo_tas, struct pseudo_ta_head);
pseudo_ta.c (261): const struct pseudo_ta_head *end =
pseudo_ta.c (263): const struct pseudo_ta_head *pta;
pseudo_ta.c (265): for (pta = start; pta < end; pta++) { *** Loop condition evaluation: (pta < end) (assuming true) *** Entering the loop
pseudo_ta.c (266): const struct pseudo_ta_head *pta2;
Point of comparison
pseudo_ta.c (269): for (pta2 = pta + 1; pta2 < end; pta2++) { |
|
| +
|
269: |
Two unrelated pointers "pta2" and "end" are compared |
MISRAC2012-RULE_18_3-a-2 |
| |
|
Start of the path
pseudo_ta.c (257): static TEE_Result verify_pseudo_tas_conformance(void)
pseudo_ta.c (260): scattered_array_relax_ptr(...)
scattered_array.c (10): return p;
pseudo_ta.c (260): SCATTERED_ARRAY_BEGIN(pseudo_tas, struct pseudo_ta_head);
pseudo_ta.c (259): const struct pseudo_ta_head *start =
pseudo_ta.c (262): SCATTERED_ARRAY_END(pseudo_tas, struct pseudo_ta_head);
pseudo_ta.c (261): const struct pseudo_ta_head *end =
pseudo_ta.c (263): const struct pseudo_ta_head *pta;
pseudo_ta.c (265): for (pta = start; pta < end; pta++) { *** Loop condition evaluation: (pta < end) (assuming true) *** Entering the loop
pseudo_ta.c (266): const struct pseudo_ta_head *pta2;
Point of comparison
pseudo_ta.c (269): for (pta2 = pta + 1; pta2 < end; pta2++) { |
|
|
270: |
The first argument to the function 'memcmp()' is a pointer to an inappropriate type 'const TEE_UUID' |
MISRAC2012-RULE_21_16-a-2 |
|
270: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
270: |
The second argument to the function 'memcmp()' is a pointer to an inappropriate type 'const TEE_UUID' |
MISRAC2012-RULE_21_16-a-2 |
|
271: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
274: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
274: |
The operands of a logical '||' in function 'verify_pseudo_tas_conformance' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
274: |
The right hand operand of the logical operator '||' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
275: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
275: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
275: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
275: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
275: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
275: |
The left hand operand of the '|' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
275: |
The left hand operand of the '|' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
275: |
The operands of a logical '||' in function 'verify_pseudo_tas_conformance' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
275: |
The right hand operand of the '&' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
275: |
The right hand operand of the '|' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
275: |
The right hand operand of the '|' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
276: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
276: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
276: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
276: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
276: |
The left hand operand of the '|' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
276: |
The left hand operand of the '|' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
276: |
The operand of the '~' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
276: |
The operands of a logical '||' in function 'verify_pseudo_tas_conformance' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
276: |
The right hand operand of the '&' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
276: |
The right hand operand of the '|' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
276: |
The right hand operand of the '|' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
277: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
277: |
The operands of a logical '||' in function 'verify_pseudo_tas_conformance' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
278: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
286: |
Reserved name '__scattered_array_0initcall' used |
MISRAC2012-RULE_21_2-a-2 |
|
301: |
Pointer to void type should not be converted to pointer to object type 'const struct pseudo_ta_head *' |
MISRAC2012-RULE_11_5-a-4 |
|
301: |
Reserved name '__scattered_array_begin' used |
MISRAC2012-RULE_21_2-a-2 |
|
303: |
Reserved name '__scattered_array_end' used |
MISRAC2012-RULE_21_2-a-2 |
| +
|
303: |
Two unrelated pointers "ta" and "__scattered_array_end" are compared |
MISRAC2012-DIR_4_1-j-2 |
| |
|
Start of the path
pseudo_ta.c (292): TEE_Result tee_ta_init_pseudo_ta_session(const TEE_UUID *uuid,
pseudo_ta.c (295): struct pseudo_ta_ctx *stc = NULL;
pseudo_ta.c (296): struct tee_ta_ctx *ctx;
pseudo_ta.c (297): const struct pseudo_ta_head *ta;
pseudo_ta.c (301): scattered_array_relax_ptr(...)
scattered_array.c (10): return p;
pseudo_ta.c (301): ta = SCATTERED_ARRAY_BEGIN(pseudo_tas, struct pseudo_ta_head);
pseudo_ta.c (302): while (true) { *** Loop condition evaluation: 1 (true) *** Entering the loop
Point of comparison
pseudo_ta.c (303): if (ta >= SCATTERED_ARRAY_END(pseudo_tas, |
|
| +
|
303: |
Two unrelated pointers "ta" and "__scattered_array_end" are compared |
MISRAC2012-RULE_18_3-a-2 |
| |
|
Start of the path
pseudo_ta.c (292): TEE_Result tee_ta_init_pseudo_ta_session(const TEE_UUID *uuid,
pseudo_ta.c (295): struct pseudo_ta_ctx *stc = NULL;
pseudo_ta.c (296): struct tee_ta_ctx *ctx;
pseudo_ta.c (297): const struct pseudo_ta_head *ta;
pseudo_ta.c (301): scattered_array_relax_ptr(...)
scattered_array.c (10): return p;
pseudo_ta.c (301): ta = SCATTERED_ARRAY_BEGIN(pseudo_tas, struct pseudo_ta_head);
pseudo_ta.c (302): while (true) { *** Loop condition evaluation: 1 (true) *** Entering the loop
Point of comparison
pseudo_ta.c (303): if (ta >= SCATTERED_ARRAY_END(pseudo_tas, |
|
|
305: |
Integer constant '0xFFFF0008' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
306: |
The first argument to the function 'memcmp()' is a pointer to an inappropriate type 'const TEE_UUID' |
MISRAC2012-RULE_21_16-a-2 |
|
306: |
The second argument to the function 'memcmp()' is a pointer to an inappropriate type 'const TEE_UUID' |
MISRAC2012-RULE_21_16-a-2 |
|
313: |
'calloc' function should not be used |
MISRAC2012-RULE_21_3-a-2 |
|
313: |
'calloc' function should not be used |
MISRAC2012-DIR_4_12-a-2 |
|
313: |
Pointer to void type should not be converted to pointer to object type 'struct pseudo_ta_ctx *' |
MISRAC2012-RULE_11_5-a-4 |
|
314: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
315: |
Integer constant '0xFFFF000C' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
| /optee_os_MISRA/optee_os_ruchi393_core/kernel/ree_fs_ta.c |
|
61: |
A tag name 'mobj' is reused |
MISRAC2012-RULE_5_7-a-2 |
|
63: |
A tag name 'shdr' is reused |
MISRAC2012-RULE_5_7-a-2 |
|
75: |
Global variable 'ta_ver_db_obj_id' is being used only in a single function 'check_update_version' |
MISRAC2012-RULE_8_9-a-4 |
|
76: |
Global variable 'ta_ver_db_mutex' is being used only in a single function 'check_update_version' |
MISRAC2012-RULE_8_9-a-4 |
|
83: |
A tag name 'mobj' is reused |
MISRAC2012-RULE_5_7-a-2 |
|
83: |
Identifier 'mobj' is hiding an identifier from global or namespace scope |
MISRAC2012-RULE_5_3-a-2 |
|
88: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
88: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
88: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
88: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
88: |
The operands of a logical '||' in function 'rpc_load' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
88: |
The operands of a logical '||' in function 'rpc_load' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
88: |
The operands of a logical '||' in function 'rpc_load' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
88: |
The operands of a logical '||' in function 'rpc_load' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
89: |
Integer constant '0xFFFF0006' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
91: |
Unused function's "memset" return value |
MISRAC2012-RULE_17_7-a-2 |
|
93: |
Pointer to void type should not be converted to pointer to object type 'uint8_t *' in function's argument |
MISRAC2012-RULE_11_5-a-4 |
|
101: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
102: |
Integer constant '0xFFFF000C' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
105: |
Integer constant '0xFFFF0010' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
106: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
109: |
Pointer to void type should not be converted to pointer to object type 'struct shdr *' |
MISRAC2012-RULE_11_5-a-4 |
|
111: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
115: |
Pointer to void type should not be converted to pointer to object type 'uint8_t *' in function's argument |
MISRAC2012-RULE_11_5-a-4 |
|
132: |
A tag name 'shdr' is reused |
MISRAC2012-RULE_5_7-a-2 |
|
132: |
Identifier 'shdr' is hiding an identifier from global or namespace scope |
MISRAC2012-RULE_5_3-a-2 |
|
133: |
A tag name 'mobj' is reused |
MISRAC2012-RULE_5_7-a-2 |
|
133: |
Identifier 'mobj' is hiding an identifier from global or namespace scope |
MISRAC2012-RULE_5_3-a-2 |
|
142: |
'calloc' function should not be used |
MISRAC2012-RULE_21_3-a-2 |
|
142: |
'calloc' function should not be used |
MISRAC2012-DIR_4_12-a-2 |
|
142: |
Pointer to void type should not be converted to pointer to object type 'struct ree_fs_ta_handle *' |
MISRAC2012-RULE_11_5-a-4 |
|
143: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
144: |
Integer constant '0xFFFF000C' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
149: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
153: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
154: |
Integer constant '0xFFFF000F' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
155: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
161: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
162: |
The operands of a logical '&&' in function 'ree_fs_ta_open' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
162: |
The operands of a logical '&&' in function 'ree_fs_ta_open' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
163: |
The operands of a logical '&&' in function 'ree_fs_ta_open' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
164: |
Integer constant '0xFFFF000F' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
165: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
175: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
178: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
181: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
184: |
The operands of a logical '||' in function 'ree_fs_ta_open' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
185: |
The operands of a logical '||' in function 'ree_fs_ta_open' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
188: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
189: |
Integer constant '0xFFFF000F' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
190: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
193: |
'malloc' function should not be used |
MISRAC2012-RULE_21_3-a-2 |
|
193: |
'malloc' function should not be used |
MISRAC2012-DIR_4_12-a-2 |
|
193: |
Pointer to void type should not be converted to pointer to object type 'struct shdr_bootstrap_ta *' |
MISRAC2012-RULE_11_5-a-4 |
|
194: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
195: |
Integer constant '0xFFFF000C' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
196: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
199: |
In the call of the function 'memcpy' the first argument type 'shdr_bootstrap_ta*' is not compatible with the second argument
type 'unsigned char*'
|
MISRAC2012-RULE_21_15-a-2 |
|
199: |
The left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
199: |
Unused function's "memcpy" return value |
MISRAC2012-RULE_17_7-a-2 |
|
208: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
208: |
The first argument to the function 'memcmp()' is a pointer to an inappropriate type 'TEE_UUID' |
MISRAC2012-RULE_21_16-a-2 |
|
208: |
The second argument to the function 'memcmp()' is a pointer to an inappropriate type 'const TEE_UUID' |
MISRAC2012-RULE_21_16-a-2 |
|
209: |
Integer constant '0xFFFF000F' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
210: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
216: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
224: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
226: |
Integer constant '0xFFFF000F' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
227: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
230: |
In the call of the function 'memcpy' the first argument type 'shdr_encrypted_ta*' is not compatible with the second argument
type 'unsigned char*'
|
MISRAC2012-RULE_21_15-a-2 |
|
230: |
The left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
230: |
Unused function's "memcpy" return value |
MISRAC2012-RULE_17_7-a-2 |
|
232: |
'malloc' function should not be used |
MISRAC2012-RULE_21_3-a-2 |
|
232: |
'malloc' function should not be used |
MISRAC2012-DIR_4_12-a-2 |
|
232: |
Pointer to void type should not be converted to pointer to object type 'struct shdr_encrypted_ta *' |
MISRAC2012-RULE_11_5-a-4 |
|
232: |
Reserved name '_x' used |
MISRAC2012-RULE_21_2-a-2 |
|
233: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
234: |
Integer constant '0xFFFF000C' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
235: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
238: |
In the call of the function 'memcpy' the first argument type 'shdr_encrypted_ta*' is not compatible with the second argument
type 'unsigned char*'
|
MISRAC2012-RULE_21_15-a-2 |
|
238: |
The left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
238: |
Unused function's "memcpy" return value |
MISRAC2012-RULE_17_7-a-2 |
|
239: |
Reserved name '_x' used |
MISRAC2012-RULE_21_2-a-2 |
|
242: |
Reserved name '_x' used |
MISRAC2012-RULE_21_2-a-2 |
|
244: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
249: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
251: |
Reserved name '_x' used |
MISRAC2012-RULE_21_2-a-2 |
|
255: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
256: |
Integer constant '0xFFFF000F' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
257: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
266: |
The expression of type 'struct ree_fs_ta_handle *' should not be cast to pointer to incomplete type 'struct ts_store_handle
*'
|
MISRAC2012-RULE_11_2-a-2 |
|
274: |
'free' function should not be used |
MISRAC2012-RULE_21_3-a-2 |
|
274: |
'free' function should not be used |
MISRAC2012-DIR_4_12-a-2 |
|
275: |
'free' function should not be used |
MISRAC2012-RULE_21_3-a-2 |
|
275: |
'free' function should not be used |
MISRAC2012-DIR_4_12-a-2 |
|
277: |
'free' function should not be used |
MISRAC2012-RULE_21_3-a-2 |
|
277: |
'free' function should not be used |
MISRAC2012-DIR_4_12-a-2 |
|
284: |
Cast from 'const struct ts_store_handle *' removes 'const' qualifier |
MISRAC2012-RULE_11_8-a-2 |
|
284: |
Pointer to incomplete type 'const struct ts_store_handle *' should not be cast to type 'struct ree_fs_ta_handle *' |
MISRAC2012-RULE_11_2-a-2 |
|
293: |
Cast from 'const struct ts_store_handle *' removes 'const' qualifier |
MISRAC2012-RULE_11_8-a-2 |
|
293: |
Pointer to incomplete type 'const struct ts_store_handle *' should not be cast to type 'struct ree_fs_ta_handle *' |
MISRAC2012-RULE_11_2-a-2 |
|
295: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
295: |
The operands of a logical '||' in function 'ree_fs_ta_get_tag' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
295: |
The operands of a logical '||' in function 'ree_fs_ta_get_tag' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
297: |
Integer constant '0xFFFF0010' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
301: |
The left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
301: |
Unused function's "memcpy" return value |
MISRAC2012-RULE_17_7-a-2 |
|
311: |
'malloc' function should not be used |
MISRAC2012-RULE_21_3-a-2 |
|
311: |
'malloc' function should not be used |
MISRAC2012-DIR_4_12-a-2 |
|
312: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
313: |
Integer constant '0xFFFF000C' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
314: |
Pointer to void type should not be converted to pointer to object type 'uint8_t *' in function's argument |
MISRAC2012-RULE_11_5-a-4 |
|
316: |
Integer constant '0xFFFF000F' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
317: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
319: |
In the call of the function 'memcmp' the first argument type 'void*' is not compatible with the second argument type 'unsigned
char*'
|
MISRAC2012-RULE_21_15-a-2 |
|
319: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
319: |
The first argument to the function 'memcmp()' is a pointer to an inappropriate type 'void' |
MISRAC2012-RULE_21_16-a-2 |
|
319: |
The left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
320: |
Integer constant '0xFFFF000F' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
322: |
'free' function should not be used |
MISRAC2012-RULE_21_3-a-2 |
|
322: |
'free' function should not be used |
MISRAC2012-DIR_4_12-a-2 |
|
326: |
Pass parameter "hdr" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
338: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with narrower essential type (4 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
345: |
Integer constant '0xFFFF0008' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
345: |
The operands of a logical '&&' in function 'check_update_version' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
345: |
The operands of a logical '&&' in function 'check_update_version' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
346: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
348: |
Integer constant '0xFFFF0008' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
351: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
355: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
361: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
362: |
Provide 'else' after the last 'else-if' construct |
MISRAC2012-RULE_15_7-a-2 |
|
363: |
Integer constant '0xFFFF0007' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
364: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
368: |
Only one 'goto' or 'break' statement in loop is allowed. This loop contains 'goto' in lines: 374, 377 and 'break' in lines:
382
|
MISRAC2012-RULE_15_4-a-4 |
|
374: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
375: |
Provide 'else' after the last 'else-if' construct |
MISRAC2012-RULE_15_7-a-2 |
|
376: |
Integer constant '0xFFFF0007' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
377: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
380: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
388: |
Integer constant '0xFFFF0003' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
389: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
390: |
Provide 'else' after the last 'else-if' construct |
MISRAC2012-RULE_15_7-a-2 |
|
395: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
402: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
407: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
419: |
Pointer to incomplete type 'struct ts_store_handle *' should not be cast to type 'struct ree_fs_ta_handle *' |
MISRAC2012-RULE_11_2-a-2 |
|
421: |
The left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
426: |
The operands of a logical '||' in function 'ree_fs_ta_read' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
427: |
The operands of a logical '||' in function 'ree_fs_ta_read' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
428: |
Integer constant '0xFFFF0006' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
431: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
432: |
Pointer to void type should not be converted to pointer to object type 'uint8_t *' |
MISRAC2012-RULE_11_5-a-4 |
|
436: |
Integer constant '0xFFFF000F' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
439: |
Reserved name '_a' used |
MISRAC2012-RULE_21_2-a-2 |
|
439: |
Reserved name '_b' used |
MISRAC2012-RULE_21_2-a-2 |
|
439: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
440: |
'malloc' function should not be used |
MISRAC2012-RULE_21_3-a-2 |
|
440: |
'malloc' function should not be used |
MISRAC2012-DIR_4_12-a-2 |
|
440: |
Pointer to void type should not be converted to pointer to object type 'uint8_t *' |
MISRAC2012-RULE_11_5-a-4 |
|
440: |
The names of the identifiers 'b' and '_b' (line: 439 in the 'ree_fs_ta.c' file) differ only in the presence/absence of the
underscore character
|
MISRAC2012-DIR_4_5-a-4 |
|
442: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
443: |
Integer constant '0xFFFF000C' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
446: |
Only one 'break' statement in loop is allowed. This loop contains 'breaks' in lines: 452, 458 |
MISRAC2012-RULE_15_4-a-4 |
|
447: |
Reserved name '_a' used |
MISRAC2012-RULE_21_2-a-2 |
|
447: |
Reserved name '_b' used |
MISRAC2012-RULE_21_2-a-2 |
|
447: |
The names of the identifiers '_b' and 'b' (line: 440 in the 'ree_fs_ta.c' file) differ only in the presence/absence of the
underscore character
|
MISRAC2012-DIR_4_5-a-4 |
|
447: |
The names of the identifiers 'n' and 'h' (line: 416 in the 'ree_fs_ta.c' file) differ only in the interchange of the similar
characters
|
MISRAC2012-DIR_4_5-a-4 |
|
447: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
450: |
The variable 'src' used as the left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
451: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
457: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
461: |
'free' function should not be used |
MISRAC2012-RULE_21_3-a-2 |
|
461: |
'free' function should not be used |
MISRAC2012-DIR_4_12-a-2 |
|
463: |
Integer constant '0xFFFF000F' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
465: |
Provide 'else' after the last 'else-if' construct |
MISRAC2012-RULE_15_7-a-2 |
|
465: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
466: |
Pointer to void type should not be converted to pointer to object type 'uint8_t *' |
MISRAC2012-RULE_11_5-a-4 |
|
467: |
Unused function's "memcpy" return value |
MISRAC2012-RULE_17_7-a-2 |
|
470: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
473: |
Integer constant '0xFFFF000F' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
486: |
Integer constant '0xFFFF000F' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
496: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
504: |
Pointer to incomplete type 'struct ts_store_handle *' should not be cast to type 'struct ree_fs_ta_handle *' |
MISRAC2012-RULE_11_2-a-2 |
|
506: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
510: |
'free' function should not be used |
MISRAC2012-RULE_21_3-a-2 |
|
510: |
'free' function should not be used |
MISRAC2012-DIR_4_12-a-2 |
|
511: |
'free' function should not be used |
MISRAC2012-RULE_21_3-a-2 |
|
511: |
'free' function should not be used |
MISRAC2012-DIR_4_12-a-2 |
|
512: |
'free' function should not be used |
MISRAC2012-RULE_21_3-a-2 |
|
512: |
'free' function should not be used |
MISRAC2012-DIR_4_12-a-2 |
|
513: |
'free' function should not be used |
MISRAC2012-RULE_21_3-a-2 |
|
513: |
'free' function should not be used |
MISRAC2012-DIR_4_12-a-2 |
|
517: |
Declaration of object '__tee_ta_store_9' does not precede its definition |
MISRAC2012-RULE_8_4-a-2 |
|
517: |
Reserved name '__scattered_array_0ta_stores' used |
MISRAC2012-RULE_21_2-a-2 |
|
517: |
Reserved name '__tee_ta_store_9' used |
MISRAC2012-RULE_21_2-a-2 |
| /optee_os_MISRA/optee_os_ruchi393_core/kernel/refcount.c |
|
19: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
37: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
45: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
| /optee_os_MISRA/optee_os_ruchi393_core/kernel/secstor_ta.c |
|
20: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
26: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
27: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
29: |
Integer constant '0xF0100001' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
30: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
33: |
Pointer to incomplete type 'struct tee_tadb_ta_read *' should not be cast to type 'struct ts_store_handle *' |
MISRAC2012-RULE_11_2-a-2 |
|
44: |
Cast from 'const struct ts_store_handle *' removes 'const' qualifier |
MISRAC2012-RULE_11_8-a-2 |
|
44: |
Pointer to incomplete type 'const struct ts_store_handle *' should not be cast to type 'struct tee_tadb_ta_read *' |
MISRAC2012-RULE_11_2-a-2 |
|
55: |
Cast from 'const struct ts_store_handle *' removes 'const' qualifier |
MISRAC2012-RULE_11_8-a-2 |
|
55: |
Pointer to incomplete type 'const struct ts_store_handle *' should not be cast to type 'struct tee_tadb_ta_read *' |
MISRAC2012-RULE_11_2-a-2 |
|
61: |
Pointer to incomplete type 'struct ts_store_handle *' should not be cast to type 'struct tee_tadb_ta_read *' |
MISRAC2012-RULE_11_2-a-2 |
|
65: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
68: |
Integer constant '0xFFFF0006' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
75: |
Pointer to incomplete type 'struct ts_store_handle *' should not be cast to type 'struct tee_tadb_ta_read *' |
MISRAC2012-RULE_11_2-a-2 |
|
80: |
Declaration of object '__tee_ta_store_4' does not precede its definition |
MISRAC2012-RULE_8_4-a-2 |
|
80: |
Reserved name '__scattered_array_0ta_stores' used |
MISRAC2012-RULE_21_2-a-2 |
|
80: |
Reserved name '__tee_ta_store_4' used |
MISRAC2012-RULE_21_2-a-2 |
| /optee_os_MISRA/optee_os_ruchi393_core/kernel/tee_misc.c |
|
16: |
The expression of the 'essentially signed' type is returned from function 'tee_b2hs_add_base' with the 'essentially unsigned'
type
|
MISRAC2012-RULE_10_3-b-2 |
|
18: |
The expression of the 'essentially signed' type is returned from function 'tee_b2hs_add_base' with the 'essentially unsigned'
type
|
MISRAC2012-RULE_10_3-b-2 |
|
23: |
The operands of a logical '&&' in function 'tee_hs2b_rem_base' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
23: |
The operands of a logical '&&' in function 'tee_hs2b_rem_base' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
23: |
The operands of a logical '||' in function 'tee_hs2b_rem_base' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
23: |
The operands of a logical '||' in function 'tee_hs2b_rem_base' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
27: |
The expression of the 'essentially signed' type is assigned to an object with the 'essentially unsigned' type |
MISRAC2012-RULE_10_3-b-2 |
|
29: |
The expression of the 'essentially signed' type is assigned to an object with the 'essentially unsigned' type |
MISRAC2012-RULE_10_3-b-2 |
|
34: |
Pass parameter "b" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
38: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
42: |
The argument number '1' ('essentially signed' type) is passed to the function 'tee_b2hs_add_base' as a parameter with the
'essentially unsigned' type
|
MISRAC2012-RULE_10_3-b-2 |
|
42: |
The right hand operand of the '&' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
42: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
50: |
Pass parameter "hs" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
61: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
63: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
63: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
75: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
75: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
78: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
78: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
78: |
The operands of a logical '||' in function 'is_valid_conf_and_notnull_size' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
78: |
The operands of a logical '||' in function 'is_valid_conf_and_notnull_size' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
91: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
91: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
104: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
104: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
117: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
117: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
| /optee_os_MISRA/optee_os_ruchi393_core/kernel/tee_ta_manager.c |
|
69: |
'while' statement in a function 'lock_single_instance' should be followed by a block |
MISRAC2012-RULE_15_6-a-2 |
|
101: |
The operands of a logical '||' in function 'to_ta_session' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
101: |
The operands of a logical '||' in function 'to_ta_session' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
102: |
Integral type 'unsigned long' should not be converted to pointer to object type 'struct tee_ta_session *' |
MISRAC2012-RULE_11_4-a-4 |
|
102: |
Pointer to object type 'const struct ts_session *' should not be converted to integral type 'unsigned long' |
MISRAC2012-RULE_11_4-a-4 |
|
102: |
Reserved name '__ptr' used |
MISRAC2012-RULE_21_2-a-2 |
|
105: |
Function 'ts_to_ta_ctx' should have return at the end of each execution path |
MISRAC2012-RULE_17_4-a-1 |
|
120: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
120: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
120: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
120: |
The right hand operand of the '&' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
125: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
125: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
125: |
The right hand operand of the '&' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
136: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
136: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
136: |
The right hand operand of the '&' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
144: |
'while' statement in a function 'tee_ta_try_set_busy' should be followed by a block |
MISRAC2012-RULE_15_6-a-2 |
|
163: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
163: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
163: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
163: |
The right hand operand of the '&' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
172: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
172: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
172: |
The right hand operand of the '&' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
186: |
Identifiers given in declaration of 'tee_ta_put_session' function (file: 'tee_ta_manager.h', line: '141') are: 'sess' not:
's'
|
MISRAC2012-RULE_8_3-b-2 |
|
200: |
Pass parameter "open_sessions" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
205: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
236: |
Only one 'break' statement in loop is allowed. This loop contains 'breaks' in lines: 239, 242, 246, 256, 260 |
MISRAC2012-RULE_15_4-a-4 |
|
238: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
250: |
'while' statement in a function 'tee_ta_get_session' should be followed by a block |
MISRAC2012-RULE_15_6-a-2 |
|
250: |
The operands of a logical '&&' in function 'tee_ta_get_session' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
250: |
The operands of a logical '&&' in function 'tee_ta_get_session' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
279: |
'while' statement in a function 'tee_ta_unlink_session' should be followed by a block |
MISRAC2012-RULE_15_6-a-2 |
|
303: |
'free' function should not be used |
MISRAC2012-RULE_21_3-a-2 |
|
303: |
'free' function should not be used |
MISRAC2012-DIR_4_12-a-2 |
|
321: |
A tag name 'ts_ctx' is reused |
MISRAC2012-RULE_5_7-a-2 |
|
321: |
Identifier 'ts_ctx' is hiding an identifier from global or namespace scope |
MISRAC2012-RULE_5_3-a-2 |
|
340: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
341: |
The operands of a logical '&&' in function 'destroy_ta_ctx_from_session' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
341: |
The operands of a logical '&&' in function 'destroy_ta_ctx_from_session' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
352: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
356: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
357: |
The operands of a logical '&&' in function 'destroy_ta_ctx_from_session' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
358: |
The operands of a logical '&&' in function 'destroy_ta_ctx_from_session' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
384: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
385: |
The first argument to the function 'memcmp()' is a pointer to an inappropriate type 'TEE_UUID' |
MISRAC2012-RULE_21_16-a-2 |
|
385: |
The second argument to the function 'memcmp()' is a pointer to an inappropriate type 'const TEE_UUID' |
MISRAC2012-RULE_21_16-a-2 |
|
393: |
Pass parameter "s" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
395: |
Integral type 'int' should not be converted to pointer to object type 'TEE_Identity *' |
MISRAC2012-RULE_11_4-a-4 |
|
399: |
Integer constant '0xF0000000' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
401: |
Integer constant '0xFFFF0001' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
406: |
The first argument to the function 'memcmp()' is a pointer to an inappropriate type 'TEE_Identity' |
MISRAC2012-RULE_21_16-a-2 |
|
406: |
The second argument to the function 'memcmp()' is a pointer to an inappropriate type 'const TEE_Identity' |
MISRAC2012-RULE_21_16-a-2 |
|
408: |
Integer constant '0xFFFF0001' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
425: |
Parameter 'sess' is not used in function 'check_params' |
MISRAC2012-RULE_2_7-a-4 |
|
425: |
Pass parameter "sess" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
426: |
Parameter 'param' is not used in function 'check_params' |
MISRAC2012-RULE_2_7-a-4 |
|
426: |
Pass parameter "param" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
472: |
Integer constant '0xFFFFFFFF' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
473: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
476: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
480: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
482: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
486: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
503: |
Identifiers given in declaration of 'tee_ta_close_session' function (file: 'tee_ta_manager.h', line: '129') are: 'sess' not:
'csess'
|
MISRAC2012-RULE_8_3-b-2 |
|
503: |
Pass parameter "csess" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
509: |
A tag name 'ts_ctx' is reused |
MISRAC2012-RULE_5_7-a-2 |
|
509: |
Identifier 'ts_ctx' is hiding an identifier from global or namespace scope |
MISRAC2012-RULE_5_3-a-2 |
|
515: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
516: |
Integer constant '0xFFFF0008' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
520: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
521: |
Pointer to object type 'struct tee_ta_session *' should not be converted to integral type 'unsigned long' |
MISRAC2012-RULE_11_4-a-4 |
|
523: |
Integer constant '0xFFFF0008' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
528: |
Integer constant '0xFFFF0006' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
534: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
540: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
544: |
Integer constant '0xFFFFFFFF' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
556: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
556: |
The left hand operand of the logical operator '&&' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
556: |
The right hand operand of the '&' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
556: |
The right hand operand of the logical operator '&&' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
557: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
557: |
The right hand operand of the '&' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
558: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
558: |
The operands of a logical '&&' in function 'tee_ta_close_session' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
558: |
The operands of a logical '&&' in function 'tee_ta_close_session' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
576: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
577: |
Integer constant '0xFFFF0008' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
579: |
The operands of a logical '||' in function 'tee_ta_init_session_with_context' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
580: |
The operands of a logical '||' in function 'tee_ta_init_session_with_context' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
597: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
597: |
The right hand operand of the '&' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
598: |
Integer constant '0xFFFF0008' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
604: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
604: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
604: |
The operands of a logical '&&' in function 'tee_ta_init_session_with_context' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
604: |
The right hand operand of the '&' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
604: |
The right hand operand of the logical operator '&&' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
605: |
Integer constant '0xFFFF000D' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
621: |
Pointer to object type 'struct tee_ta_session **' is cast to pointer to different object type 'struct tee_ta_session_head
*'
|
MISRAC2012-RULE_11_3-a-2 |
|
622: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
| +
|
625: |
Condition "!id" always evaluates to false |
MISRAC2012-RULE_14_3-ac-2 |
| |
|
Start of the path
tee_ta_manager.c (615): static uint32_t new_session_id(struct tee_ta_session_head *open_sessions)
tee_ta_manager.c (617): struct tee_ta_session *last = NULL;
tee_ta_manager.c (618): uint32_t saved = 0;
tee_ta_manager.c (619): uint32_t id = 1;
tee_ta_manager.c (621): last = TAILQ_LAST(open_sessions, tee_ta_session_head);
tee_ta_manager.c (622): if (last) { *** Condition evaluation: (last != 0) (assuming true)
tee_ta_manager.c (624): id = last->id + 1;
Point where senseless condition is used
tee_ta_manager.c (625): if (!id) |
|
|
625: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
631: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
634: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
647: |
'calloc' function should not be used |
MISRAC2012-RULE_21_3-a-2 |
|
647: |
'calloc' function should not be used |
MISRAC2012-DIR_4_12-a-2 |
|
647: |
Pointer to void type should not be converted to pointer to object type 'struct tee_ta_session *' |
MISRAC2012-RULE_11_5-a-4 |
|
650: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
651: |
Integer constant '0xFFFF000C' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
661: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
662: |
Integer constant '0xFFFF300F' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
663: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
671: |
Integer constant '0xFFFF0008' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
671: |
The operands of a logical '||' in function 'tee_ta_init_session' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
671: |
The operands of a logical '||' in function 'tee_ta_init_session' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
672: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
676: |
Integer constant '0xFFFF0008' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
676: |
The operands of a logical '||' in function 'tee_ta_init_session' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
676: |
The operands of a logical '||' in function 'tee_ta_init_session' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
677: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
681: |
Integer constant '0xFFFF0008' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
681: |
The operands of a logical '||' in function 'tee_ta_init_session' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
681: |
The operands of a logical '||' in function 'tee_ta_init_session' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
682: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
688: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
697: |
'free' function should not be used |
MISRAC2012-RULE_21_3-a-2 |
|
697: |
'free' function should not be used |
MISRAC2012-DIR_4_12-a-2 |
|
712: |
A tag name 'ts_ctx' is reused |
MISRAC2012-RULE_5_7-a-2 |
|
712: |
Identifier 'ts_ctx' is hiding an identifier from global or namespace scope |
MISRAC2012-RULE_5_3-a-2 |
|
723: |
Integer constant '0xFFFF0006' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
726: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
729: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
729: |
The operands of a logical '||' in function 'tee_ta_open_session' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
729: |
The right hand operand of the logical operator '||' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
731: |
Integral type 'int' should not be converted to pointer to object type 'TEE_Identity *' |
MISRAC2012-RULE_11_4-a-4 |
|
731: |
Unused function's "tee_ta_close_session" return value |
MISRAC2012-RULE_17_7-a-2 |
|
733: |
Integer constant '0xFFFF3024' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
747: |
Integer constant '0xFFFF000D' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
751: |
The expression of the 'essentially unsigned' type is assigned to an object with the 'essentially Boolean' type |
MISRAC2012-RULE_10_3-b-2 |
|
756: |
Integral type 'int' should not be converted to pointer to object type 'TEE_Identity *' |
MISRAC2012-RULE_11_4-a-4 |
|
756: |
Unused function's "tee_ta_close_session" return value |
MISRAC2012-RULE_17_7-a-2 |
|
780: |
A tag name 'ts_ctx' is reused |
MISRAC2012-RULE_5_7-a-2 |
|
780: |
Identifier 'ts_ctx' is hiding an identifier from global or namespace scope |
MISRAC2012-RULE_5_3-a-2 |
|
784: |
Integer constant '0xFFFF0006' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
787: |
Integer constant '0xFFFF0006' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
790: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
793: |
Integer constant '0xFFFF3024' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
797: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
801: |
Integer constant '0xFFFF3024' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
813: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
816: |
Integer constant '0xFFFF3024' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
822: |
Integer constant '0xFFFF0010' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
822: |
The operands of a logical '&&' in function 'tee_ta_invoke_command' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
822: |
The operands of a logical '&&' in function 'tee_ta_invoke_command' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
835: |
Integer constant '0xFFFF0006' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
841: |
Pass parameter "curr_time" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
841: |
Pass parameter "s" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
856: |
Provide 'else' after the last 'else-if' construct |
MISRAC2012-RULE_15_7-a-2 |
|
859: |
The operands of a logical '||' in function 'tee_ta_session_is_cancelled' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
860: |
The operands of a logical '&&' in function 'tee_ta_session_is_cancelled' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
861: |
The operands of a logical '&&' in function 'tee_ta_session_is_cancelled' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
979: |
The operands of a logical '||' in function 'is_ta_ctx' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
979: |
The operands of a logical '||' in function 'is_ta_ctx' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
| /optee_os_MISRA/optee_os_ruchi393_core/kernel/ts_manager.c |
|
21: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
25: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
38: |
Identifiers given in declaration of 'ts_push_current_session' function (file: 'ts_manager.h', line: '59') are: 'sess' not:
's'
|
MISRAC2012-RULE_8_3-b-2 |
|
42: |
Assignment operator '=' is used in improper context |
MISRAC2012-RULE_13_4-a-4 |
|
51: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
62: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
67: |
The function 'ts_get_current_session_may_fail' is referenced only in the translation unit where it is defined |
MISRAC2012-RULE_8_7-a-4 |
|
76: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
| /optee_os_MISRA/optee_os_ruchi393_core/kernel/user_access.c |
|
25: |
The expression of the 'essentially signed' type is assigned to an object with the 'essentially unsigned' type |
MISRAC2012-RULE_10_3-b-2 |
|
25: |
The left hand operand of the '|' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
25: |
The right hand operand of the '|' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
26: |
Pointer to void type should not be converted to arithmetic type 'unsigned long' |
MISRAC2012-RULE_11_6-a-2 |
|
28: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
29: |
Unused function's "memcpy" return value |
MISRAC2012-RULE_17_7-a-2 |
|
36: |
The expression of the 'essentially signed' type is assigned to an object with the 'essentially unsigned' type |
MISRAC2012-RULE_10_3-b-2 |
|
36: |
The left hand operand of the '|' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
36: |
The right hand operand of the '|' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
37: |
Pointer to void type should not be converted to arithmetic type 'unsigned long' |
MISRAC2012-RULE_11_6-a-2 |
|
39: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
40: |
Unused function's "memcpy" return value |
MISRAC2012-RULE_17_7-a-2 |
|
48: |
Pointer to void type should not be converted to arithmetic type 'unsigned long' |
MISRAC2012-RULE_11_6-a-2 |
|
50: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
51: |
Unused function's "memcpy" return value |
MISRAC2012-RULE_17_7-a-2 |
|
59: |
Pointer to void type should not be converted to arithmetic type 'unsigned long' |
MISRAC2012-RULE_11_6-a-2 |
|
61: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
62: |
Unused function's "memcpy" return value |
MISRAC2012-RULE_17_7-a-2 |
|
74: |
Pass parameter "kaddr" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
76: |
Pointer to void type should not be converted to arithmetic type 'unsigned long' |
MISRAC2012-RULE_11_6-a-2 |
|
76: |
Potential macro 'UINT32_MAX' used as '1' parameter of potential macro 'assert' |
MISRAC2012-RULE_20_12-a-2 |
|
76: |
Potential macro 'VCORE_START_VA' used as '1' parameter of potential macro 'assert' |
MISRAC2012-RULE_20_12-a-2 |
|
77: |
Pointer to void type should not be converted to arithmetic type 'unsigned long' |
MISRAC2012-RULE_11_6-a-2 |
|
77: |
The expression of the 'unsigned long' essential type (8 byte) is returned from the function 'kaddr_to_uref' with a narrower
essential return type (4 byte)
|
MISRAC2012-RULE_10_3-a-2 |
| /optee_os_MISRA/optee_os_ruchi393_core/kernel/user_mode_ctx.c |
|
10: |
Identifiers given in declaration of 'user_mode_ctx_print_mappings' function (file: 'user_mode_ctx.h', line: '32') are: 'umctx'
not: 'uctx'
|
MISRAC2012-RULE_8_3-b-2 |
|
10: |
Pass parameter "uctx" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
16: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
19: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
20: |
Unused function's "mobj_get_pa" return value |
MISRAC2012-RULE_17_7-a-2 |
| /optee_os_MISRA/optee_os_ruchi393_core/kernel/user_ta.c |
|
53: |
Pass parameter "va" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
62: |
Shifting operation should be enclosed with if checking that RHS operand does not exceed the upper limit (one less than the
width in bits of the underlying type of the LHS operand)
|
MISRAC2012-RULE_12_2-a-2 |
|
62: |
The right hand operand of the '&' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
66: |
Pointer to void type should not be converted to arithmetic type 'unsigned long' |
MISRAC2012-RULE_11_6-a-2 |
|
81: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
91: |
Shifting operation should be enclosed with if checking that RHS operand does not exceed the upper limit (one less than the
width in bits of the underlying type of the LHS operand)
|
MISRAC2012-RULE_12_2-a-2 |
|
91: |
The right hand operand of the '&' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
95: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
100: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with a narrower essential type (4 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
101: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with a narrower essential type (4 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
101: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
104: |
Missing statement or comment before terminating 'break' |
MISRAC2012-RULE_16_4-b-2 |
|
104: |
Missing statement or comment before terminating 'break' |
MISRAC2012-RULE_16_1-f-2 |
|
127: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
144: |
Integer constant '0xFFFF000C' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
145: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
147: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
151: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
160: |
Integral type 'unsigned long' should not be converted to pointer to object type 'struct utee_params *' |
MISRAC2012-RULE_11_4-a-4 |
|
161: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
164: |
Unused function's "memset" return value |
MISRAC2012-RULE_17_7-a-2 |
|
166: |
The argument number '1' ('essentially Enum' type) is passed to the function 'thread_enter_user_mode' as a parameter with the
'essentially unsigned' type
|
MISRAC2012-RULE_10_3-b-2 |
|
167: |
Pointer to object type 'struct utee_params *' should not be converted to integral type 'unsigned long' |
MISRAC2012-RULE_11_4-a-4 |
|
174: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
178: |
Integer constant '0xFFFF3024' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
187: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
229: |
Unused function's "user_ta_enter" return value |
MISRAC2012-RULE_17_7-a-2 |
|
241: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
244: |
Integer constant '0xFFFF3024' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
244: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
244: |
The operands of a logical '||' in function 'user_ta_dump_state' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
244: |
The operands of a logical '||' in function 'user_ta_dump_state' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
348: |
Unused function's "tee_ta_close_session" return value |
MISRAC2012-RULE_17_7-a-2 |
|
349: |
Integral type 'int' should not be converted to pointer to object type 'TEE_Identity *' |
MISRAC2012-RULE_11_4-a-4 |
|
360: |
'free' function should not be used |
MISRAC2012-RULE_21_3-a-2 |
|
360: |
'free' function should not be used |
MISRAC2012-DIR_4_12-a-2 |
|
373: |
Global variable 'user_ta_ops' is being used only in a single function 'init_user_ta' |
MISRAC2012-RULE_8_9-a-4 |
|
393: |
Reserved name '_user_ta_ops' used |
MISRAC2012-RULE_21_2-a-2 |
|
393: |
The names of the identifiers '_user_ta_ops' and 'user_ta_ops' (line: 373 in the 'user_ta.c' file) differ only in the presence/absence
of the underscore character
|
MISRAC2012-DIR_4_5-a-4 |
|
401: |
Reserved name '__scattered_array_0initcall' used |
MISRAC2012-RULE_21_2-a-2 |
|
408: |
Pass parameter "ctx" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
410: |
The left hand operand of the logical operator '&&' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
410: |
The operands of a logical '&&' in function 'is_user_ta_ctx' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
417: |
'for' statement in a function 'check_ta_store' should be followed by a block |
MISRAC2012-RULE_15_6-a-2 |
|
417: |
More than one variable is declared in the first clause of a 'for' statement |
MISRAC2012-RULE_14_2-b-2 |
|
417: |
Pointer to void type should not be converted to pointer to object type 'const struct ts_store_ops *' |
MISRAC2012-RULE_11_5-a-4 |
|
417: |
Reserved name '__scattered_array_begin' used |
MISRAC2012-RULE_21_2-a-2 |
|
417: |
Reserved name '__scattered_array_end' used |
MISRAC2012-RULE_21_2-a-2 |
| +
|
417: |
Two unrelated pointers "op" and "__scattered_array_end" are compared |
MISRAC2012-DIR_4_1-j-2 |
| |
|
Start of the path
user_ta.c (413): static TEE_Result check_ta_store(void)
user_ta.c (415): const struct ts_store_ops *op = NULL;
user_ta.c (417): scattered_array_relax_ptr(...)
scattered_array.c (10): return p;
Point of comparison
user_ta.c (417): SCATTERED_ARRAY_FOREACH(op, ta_stores, struct ts_store_ops) |
|
| +
|
417: |
Two unrelated pointers "op" and "__scattered_array_end" are compared |
MISRAC2012-RULE_18_3-a-2 |
| |
|
Start of the path
user_ta.c (413): static TEE_Result check_ta_store(void)
user_ta.c (415): const struct ts_store_ops *op = NULL;
user_ta.c (417): scattered_array_relax_ptr(...)
scattered_array.c (10): return p;
Point of comparison
user_ta.c (417): SCATTERED_ARRAY_FOREACH(op, ta_stores, struct ts_store_ops) |
|
|
422: |
Reserved name '__scattered_array_1initcall' used |
MISRAC2012-RULE_21_2-a-2 |
|
430: |
'calloc' function should not be used |
MISRAC2012-RULE_21_3-a-2 |
|
430: |
'calloc' function should not be used |
MISRAC2012-DIR_4_12-a-2 |
|
430: |
Pointer to void type should not be converted to pointer to object type 'struct user_ta_ctx *' |
MISRAC2012-RULE_11_5-a-4 |
|
431: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
432: |
Integer constant '0xFFFF000C' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
452: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
453: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
473: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
476: |
Unused function's "ts_pop_current_session" return value |
MISRAC2012-RULE_17_7-a-2 |
|
480: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
493: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
| /optee_os_MISRA/optee_os_ruchi393_core/kernel/wait_queue.c |
|
27: |
Parameter 'sync_obj' is not used in function '__wq_rpc' |
MISRAC2012-RULE_2_7-a-4 |
|
27: |
Reserved name '__wq_rpc' used |
MISRAC2012-RULE_21_2-a-2 |
|
27: |
The '__wq_rpc' function is also defined in other translation units |
MISRAC2012-RULE_8_6-a-2 |
|
28: |
Parameter 'lineno' is not used in function '__wq_rpc' |
MISRAC2012-RULE_2_7-a-4 |
| +
|
31: |
Value of "cmd_str" is never used |
MISRAC2012-RULE_2_2-b-2 |
| |
|
Point where value is declared
Point where value is declared
wait_queue.c (31): const char *cmd_str __maybe_unused = |
|
|
32: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
34: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
40: |
The expression of the 'essentially signed' type is assigned to an object with the 'essentially unsigned' type |
MISRAC2012-RULE_10_3-b-2 |
|
53: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
54: |
'while' statement in a function 'slist_add_tail' should be followed by a block |
MISRAC2012-RULE_15_6-a-2 |
|
54: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
78: |
Pass parameter "wqe" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
90: |
The expression of the 'essentially Boolean' type is assigned to an object with the 'essentially unsigned' type |
MISRAC2012-RULE_10_3-b-2 |
|
91: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
92: |
'while' statement in a function 'wq_wait_final' should be followed by a block |
MISRAC2012-RULE_15_6-a-2 |
|
95: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
98: |
Pass parameter "wq" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
117: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
118: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
142: |
The operands of a logical '||' in function 'wq_wake_next' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
142: |
The operands of a logical '||' in function 'wq_wake_next' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
148: |
Pass parameter "cv" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
148: |
Pass parameter "wq" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
149: |
Parameter 'sync_obj' is not used in function 'wq_promote_condvar' |
MISRAC2012-RULE_2_7-a-4 |
|
150: |
Parameter 'lineno' is not used in function 'wq_promote_condvar' |
MISRAC2012-RULE_2_7-a-4 |
|
155: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
166: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
168: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
184: |
Pass parameter "cv" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
184: |
Pass parameter "wq" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
192: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
204: |
Pass parameter "wq" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
| /optee_os_MISRA/optee_os_ruchi393_core/lib/libfdt/fdt.c |
|
20: |
Pointer to void type should not be converted to pointer to object type 'const struct fdt_header *' |
MISRAC2012-RULE_11_5-a-4 |
|
22: |
Integer constant '0xd00dfeed' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
22: |
Pointer to void type should not be converted to pointer to object type 'const struct fdt_header *' |
MISRAC2012-RULE_11_5-a-4 |
|
24: |
Pointer to void type should not be converted to pointer to object type 'const struct fdt_header *' |
MISRAC2012-RULE_11_5-a-4 |
|
26: |
Pointer to void type should not be converted to pointer to object type 'const struct fdt_header *' |
MISRAC2012-RULE_11_5-a-4 |
|
28: |
Integer constant '0xd00dfeed' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
28: |
Pointer to void type should not be converted to pointer to object type 'const struct fdt_header *' |
MISRAC2012-RULE_11_5-a-4 |
|
30: |
Pointer to void type should not be converted to pointer to object type 'const struct fdt_header *' |
MISRAC2012-RULE_11_5-a-4 |
|
37: |
The expression of the 'essentially unsigned' type is returned from function 'fdt_ro_probe_' with the 'essentially signed'
type
|
MISRAC2012-RULE_10_3-b-2 |
|
44: |
The expression of the 'essentially Boolean' type is returned from function 'check_off_' with the 'essentially signed' type |
MISRAC2012-RULE_10_3-b-2 |
|
50: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
54: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
59: |
The names of the identifiers 'fdt_header_size_' and 'fdt_header_size' (line: 270 in the 'libfdt.h' file) differ only in the
presence/absence of the underscore character
|
MISRAC2012-DIR_4_5-a-4 |
|
77: |
Integer constant '0xd00dfeed' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
77: |
Pointer to void type should not be converted to pointer to object type 'const struct fdt_header *' |
MISRAC2012-RULE_11_5-a-4 |
|
80: |
Pointer to void type should not be converted to pointer to object type 'const struct fdt_header *' |
MISRAC2012-RULE_11_5-a-4 |
|
81: |
Pointer to void type should not be converted to pointer to object type 'const struct fdt_header *' |
MISRAC2012-RULE_11_5-a-4 |
|
83: |
Pointer to void type should not be converted to pointer to object type 'const struct fdt_header *' |
MISRAC2012-RULE_11_5-a-4 |
|
83: |
Pointer to void type should not be converted to pointer to object type 'const struct fdt_header *' |
MISRAC2012-RULE_11_5-a-4 |
|
86: |
Pointer to void type should not be converted to pointer to object type 'const struct fdt_header *' |
MISRAC2012-RULE_11_5-a-4 |
|
87: |
Pointer to void type should not be converted to pointer to object type 'const struct fdt_header *' |
MISRAC2012-RULE_11_5-a-4 |
|
91: |
Pointer to void type should not be converted to pointer to object type 'const struct fdt_header *' |
MISRAC2012-RULE_11_5-a-4 |
|
91: |
Pointer to void type should not be converted to pointer to object type 'const struct fdt_header *' |
MISRAC2012-RULE_11_5-a-4 |
|
91: |
The argument number '1' (8 byte essential type) is passed to the function 'check_off_' as a parameter with a narrower essential
type (4 byte)
|
MISRAC2012-RULE_10_3-a-2 |
|
91: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
95: |
Pointer to void type should not be converted to pointer to object type 'const struct fdt_header *' |
MISRAC2012-RULE_11_5-a-4 |
|
96: |
Pointer to void type should not be converted to pointer to object type 'const struct fdt_header *' |
MISRAC2012-RULE_11_5-a-4 |
|
96: |
The argument number '1' (8 byte essential type) is passed to the function 'check_off_' as a parameter with a narrower essential
type (4 byte)
|
MISRAC2012-RULE_10_3-a-2 |
|
96: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
97: |
Pointer to void type should not be converted to pointer to object type 'const struct fdt_header *' |
MISRAC2012-RULE_11_5-a-4 |
|
100: |
Pointer to void type should not be converted to pointer to object type 'const struct fdt_header *' |
MISRAC2012-RULE_11_5-a-4 |
|
100: |
The argument number '1' (8 byte essential type) is passed to the function 'check_block_' as a parameter with a narrower essential
type (4 byte)
|
MISRAC2012-RULE_10_3-a-2 |
|
100: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
101: |
Pointer to void type should not be converted to pointer to object type 'const struct fdt_header *' |
MISRAC2012-RULE_11_5-a-4 |
|
102: |
Pointer to void type should not be converted to pointer to object type 'const struct fdt_header *' |
MISRAC2012-RULE_11_5-a-4 |
|
107: |
Pointer to void type should not be converted to pointer to object type 'const struct fdt_header *' |
MISRAC2012-RULE_11_5-a-4 |
|
107: |
The argument number '1' (8 byte essential type) is passed to the function 'check_block_' as a parameter with a narrower essential
type (4 byte)
|
MISRAC2012-RULE_10_3-a-2 |
|
107: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
108: |
Pointer to void type should not be converted to pointer to object type 'const struct fdt_header *' |
MISRAC2012-RULE_11_5-a-4 |
|
108: |
Pointer to void type should not be converted to pointer to object type 'const struct fdt_header *' |
MISRAC2012-RULE_11_5-a-4 |
|
114: |
Identifiers given in declaration of 'fdt_offset_ptr' function (file: 'libfdt.h', line: '111') are: 'checklen' not: 'len' |
MISRAC2012-RULE_8_3-b-2 |
|
114: |
The names of the identifiers 'fdt_offset_ptr' and 'fdt_offset_ptr_' (line: 26 in the 'libfdt_internal.h' file) differ only
in the presence/absence of the underscore character
|
MISRAC2012-DIR_4_5-a-4 |
|
116: |
Pointer to void type should not be converted to pointer to object type 'const struct fdt_header *' |
MISRAC2012-RULE_11_5-a-4 |
|
120: |
Pointer to void type should not be converted to pointer to object type 'const struct fdt_header *' |
MISRAC2012-RULE_11_5-a-4 |
|
120: |
The operands of a logical '||' in function 'fdt_offset_ptr' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
123: |
Pointer to void type should not be converted to pointer to object type 'const struct fdt_header *' |
MISRAC2012-RULE_11_5-a-4 |
|
125: |
Pointer to void type should not be converted to pointer to object type 'const struct fdt_header *' |
MISRAC2012-RULE_11_5-a-4 |
|
131: |
Identifiers given in declaration of 'fdt_next_tag' function (file: 'libfdt.h', line: '118') are: 'offset' not: 'startoffset' |
MISRAC2012-RULE_8_3-b-2 |
|
139: |
Pointer to void type should not be converted to pointer to object type 'const fdt32_t *' |
MISRAC2012-RULE_11_5-a-4 |
|
139: |
The argument number '3' (8 byte essential type) is passed to the function 'fdt_offset_ptr' as a parameter with a narrower
essential type (4 byte)
|
MISRAC2012-RULE_10_3-a-2 |
|
140: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
150: |
Pointer to void type should not be converted to pointer to object type 'const char *' |
MISRAC2012-RULE_11_5-a-4 |
|
150: |
The '++' operator should cause the only side effect in an expression |
MISRAC2012-RULE_13_3-a-4 |
|
151: |
The left hand operand of the logical operator '&&' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
152: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
157: |
Pointer to void type should not be converted to pointer to object type 'const fdt32_t *' |
MISRAC2012-RULE_11_5-a-4 |
|
157: |
The argument number '3' (8 byte essential type) is passed to the function 'fdt_offset_ptr' as a parameter with a narrower
essential type (4 byte)
|
MISRAC2012-RULE_10_3-a-2 |
|
158: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
161: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
163: |
Pointer to void type should not be converted to pointer to object type 'const struct fdt_header *' |
MISRAC2012-RULE_11_5-a-4 |
|
163: |
The operands of a logical '&&' in function 'fdt_next_tag' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
163: |
The operands of a logical '&&' in function 'fdt_next_tag' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
164: |
The operands of a logical '&&' in function 'fdt_next_tag' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
177: |
The argument number '3' ('essentially signed' type) is passed to the function 'fdt_offset_ptr' as a parameter with the 'essentially
unsigned' type
|
MISRAC2012-RULE_10_3-b-2 |
|
177: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
180: |
The expression of the 'essentially unsigned' type is assigned to an object with the 'essentially signed' type |
MISRAC2012-RULE_10_3-b-2 |
|
180: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
186: |
The right hand operand of the logical operator '||' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
187: |
Function 'fdt_next_tag' called in the right-hand operand of a logical '||' operator may cause side effect |
MISRAC2012-RULE_13_5-a-2 |
|
195: |
The right hand operand of the logical operator '||' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
196: |
Function 'fdt_next_tag' called in the right-hand operand of a logical '||' operator may cause side effect |
MISRAC2012-RULE_13_5-a-2 |
|
208: |
Assignment operator '=' is used in improper context |
MISRAC2012-RULE_13_4-a-4 |
|
212: |
Parameter 'offset' is modified in function 'fdt_next_node' |
MISRAC2012-RULE_17_8-a-4 |
|
215: |
Missing default branch in switch statement |
MISRAC2012-RULE_16_4-a-2 |
|
215: |
Missing default branch in switch statement |
MISRAC2012-RULE_16_1-e-2 |
|
221: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
226: |
Do not use expressions with side effects in the right-hand operand of a logical '&&' operator |
MISRAC2012-RULE_13_5-a-2 |
|
226: |
The left hand operand of the logical operator '&&' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
232: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
232: |
The operands of a logical '&&' in function 'fdt_next_node' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
246: |
Parameter 'offset' is modified in function 'fdt_first_subnode' |
MISRAC2012-RULE_17_8-a-4 |
|
247: |
The operands of a logical '||' in function 'fdt_first_subnode' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
247: |
The operands of a logical '||' in function 'fdt_first_subnode' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
262: |
Parameter 'offset' is modified in function 'fdt_next_subnode' |
MISRAC2012-RULE_17_8-a-4 |
|
263: |
The operands of a logical '||' in function 'fdt_next_subnode' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
263: |
The operands of a logical '||' in function 'fdt_next_subnode' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
272: |
The expression of the 'essentially unsigned' type is assigned to an object with the 'essentially signed' type |
MISRAC2012-RULE_10_3-b-2 |
|
273: |
The left hand side operand of the '-' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
273: |
The variable 'strtab' used as the left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
273: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
276: |
'for' statement in a function 'fdt_find_string_' should be followed by a block |
MISRAC2012-RULE_15_6-a-2 |
|
277: |
The argument number '3' ('essentially signed' type) is passed to the function 'memcmp' as a parameter with the 'essentially
unsigned' type
|
MISRAC2012-RULE_10_3-b-2 |
|
277: |
The first argument to the function 'memcmp()' is a pointer to an inappropriate type 'const char' |
MISRAC2012-RULE_21_16-a-2 |
|
277: |
The second argument to the function 'memcmp()' is a pointer to an inappropriate type 'const char' |
MISRAC2012-RULE_21_16-a-2 |
|
284: |
Assignment operator '=' is used in improper context |
MISRAC2012-RULE_13_4-a-4 |
|
286: |
Pointer to void type should not be converted to pointer to object type 'const struct fdt_header *' |
MISRAC2012-RULE_11_5-a-4 |
|
289: |
Pointer to void type should not be converted to pointer to object type 'const struct fdt_header *' |
MISRAC2012-RULE_11_5-a-4 |
|
289: |
Unused function's "memmove" return value |
MISRAC2012-RULE_17_7-a-2 |
| /optee_os_MISRA/optee_os_ruchi393_core/lib/libfdt/fdt_addresses.c |
|
20: |
Pointer to void type should not be converted to pointer to object type 'const fdt32_t *' |
MISRAC2012-RULE_11_5-a-4 |
|
21: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
76: |
Integer overflow: 4294967295 + 1 = 4294967296 (result type: 32 bits, unsigned, min: 0, max: 4294967295) |
MISRAC2012-RULE_12_4-a-4 |
|
76: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
87: |
The variable 'prop' used as the left hand side operand of the '+=' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
100: |
The argument number '5' ('essentially unsigned' type) is passed to the function 'fdt_appendprop' as a parameter with the 'essentially
signed' type
|
MISRAC2012-RULE_10_3-b-2 |
| /optee_os_MISRA/optee_os_ruchi393_core/lib/libfdt/fdt_empty_tree.c |
|
18: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
22: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
26: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
30: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
34: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
| /optee_os_MISRA/optee_os_ruchi393_core/lib/libfdt/fdt_overlay.c |
|
33: |
Pointer to void type should not be converted to pointer to object type 'const fdt32_t *' |
MISRAC2012-RULE_11_5-a-4 |
|
34: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
71: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
73: |
Pointer to void type should not be converted to pointer to object type 'const char *' |
MISRAC2012-RULE_11_5-a-4 |
|
74: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
88: |
The operands of a logical '&&' in function 'overlay_get_target' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
88: |
The operands of a logical '&&' in function 'overlay_get_target' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
96: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
97: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
97: |
The first operand of the conditional operator '?:' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
123: |
Pointer to void type should not be converted to pointer to object type 'const fdt32_t *' |
MISRAC2012-RULE_11_5-a-4 |
|
124: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
163: |
The left hand operand of the logical operator '&&' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
163: |
The operands of a logical '&&' in function 'overlay_adjust_node_phandles' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
167: |
The left hand operand of the logical operator '&&' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
167: |
The operands of a logical '&&' in function 'overlay_adjust_node_phandles' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
171: |
Function "overlay_adjust_node_phandles" is called recursively |
MISRAC2012-RULE_17_2-a-2 |
|
172: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
237: |
Pointer to void type should not be converted to pointer to object type 'const fdt32_t *' |
MISRAC2012-RULE_11_5-a-4 |
|
239: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
242: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
245: |
Pointer to void type should not be converted to pointer to object type 'const char *' |
MISRAC2012-RULE_11_5-a-4 |
|
246: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
265: |
In the call of the function 'memcpy' the first argument type 'unsigned int*' is not compatible with the second argument type
'char*'
|
MISRAC2012-RULE_21_15-a-2 |
|
265: |
The variable 'tree_val' used as the left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
265: |
Unused function's "memcpy" return value |
MISRAC2012-RULE_17_7-a-2 |
|
272: |
The argument number '4' ('essentially unsigned' type) is passed to the function 'fdt_setprop_inplace_namelen_partial' as a
parameter with the 'essentially signed' type
|
MISRAC2012-RULE_10_3-b-2 |
|
275: |
The argument number '7' ('essentially unsigned' type) is passed to the function 'fdt_setprop_inplace_namelen_partial' as a
parameter with the 'essentially signed' type
|
MISRAC2012-RULE_10_3-b-2 |
|
279: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
296: |
Function "overlay_update_local_node_references" is called recursively |
MISRAC2012-RULE_17_2-a-2 |
|
300: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
367: |
Pass parameter "fdt" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
382: |
Pointer to void type should not be converted to pointer to object type 'const char *' |
MISRAC2012-RULE_11_5-a-4 |
|
384: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
392: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
395: |
The argument number '3' ('essentially unsigned' type) is passed to the function 'fdt_path_offset_namelen' as a parameter with
the 'essentially signed' type
|
MISRAC2012-RULE_10_3-b-2 |
|
403: |
The argument number '4' ('essentially unsigned' type) is passed to the function 'fdt_setprop_inplace_namelen_partial' as a
parameter with the 'essentially signed' type
|
MISRAC2012-RULE_10_3-b-2 |
|
403: |
The argument number '5' ('essentially signed' type) is passed to the function 'fdt_setprop_inplace_namelen_partial' as a parameter
with the 'essentially unsigned' type
|
MISRAC2012-RULE_10_3-b-2 |
|
405: |
The argument number '7' ('essentially unsigned' type) is passed to the function 'fdt_setprop_inplace_namelen_partial' as a
parameter with the 'essentially signed' type
|
MISRAC2012-RULE_10_3-b-2 |
|
434: |
Pointer to void type should not be converted to pointer to object type 'const char *' |
MISRAC2012-RULE_11_5-a-4 |
|
436: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
451: |
Pointer to void type should not be converted to pointer to object type 'const char *' |
MISRAC2012-RULE_11_5-a-4 |
|
451: |
The argument number '2' ('essentially character' type) is passed to the function 'memchr' as a parameter with the 'essentially
signed' type
|
MISRAC2012-RULE_10_3-b-2 |
|
451: |
The argument number '3' ('essentially signed' type) is passed to the function 'memchr' as a parameter with the 'essentially
unsigned' type
|
MISRAC2012-RULE_10_3-b-2 |
|
452: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
454: |
The expression of the 'essentially signed' type is assigned to an object with the 'essentially unsigned' type |
MISRAC2012-RULE_10_3-b-2 |
|
457: |
The variable 'value' used as the left hand side operand of the '+=' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
460: |
Pointer to void type should not be converted to pointer to object type 'char *' |
MISRAC2012-RULE_11_5-a-4 |
|
460: |
The argument number '2' ('essentially character' type) is passed to the function 'memchr' as a parameter with the 'essentially
signed' type
|
MISRAC2012-RULE_10_3-b-2 |
|
461: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
461: |
The operands of a logical '||' in function 'overlay_fixup_phandle' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
461: |
The operands of a logical '||' in function 'overlay_fixup_phandle' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
464: |
The expression of the 'essentially signed' type is assigned to an object with the 'essentially unsigned' type |
MISRAC2012-RULE_10_3-b-2 |
|
469: |
The variable 'sep' used as the left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
470: |
Pointer to void type should not be converted to pointer to object type 'char *' |
MISRAC2012-RULE_11_5-a-4 |
|
470: |
The argument number '2' ('essentially character' type) is passed to the function 'memchr' as a parameter with the 'essentially
signed' type
|
MISRAC2012-RULE_10_3-b-2 |
|
471: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
471: |
The operands of a logical '||' in function 'overlay_fixup_phandle' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
471: |
The operands of a logical '||' in function 'overlay_fixup_phandle' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
474: |
The expression of the 'essentially signed' type is assigned to an object with the 'essentially unsigned' type |
MISRAC2012-RULE_10_3-b-2 |
|
475: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
478: |
The expression of the 'essentially unsigned' type is assigned to an object with the 'essentially signed' type |
MISRAC2012-RULE_10_3-b-2 |
|
478: |
The variable 'sep' used as the left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
479: |
The variable 'sep' used as the left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
485: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
523: |
The operands of a logical '&&' in function 'overlay_fixup_phandles' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
530: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
576: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
595: |
Function "overlay_apply_node" is called recursively |
MISRAC2012-RULE_17_2-a-2 |
|
596: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
643: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
655: |
Assignment operator '=' is used in improper context |
MISRAC2012-RULE_13_4-a-4 |
|
659: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
666: |
Parameter 'nodeoffset' is modified in function 'get_path_len' |
MISRAC2012-RULE_17_8-a-4 |
|
694: |
Pass parameter "fdto" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
725: |
Pointer to void type should not be converted to pointer to object type 'const char *' |
MISRAC2012-RULE_11_5-a-4 |
|
726: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
730: |
The argument number '2' ('essentially character' type) is passed to the function 'memchr' as a parameter with the 'essentially
signed' type
|
MISRAC2012-RULE_10_3-b-2 |
|
730: |
The argument number '3' ('essentially signed' type) is passed to the function 'memchr' as a parameter with the 'essentially
unsigned' type
|
MISRAC2012-RULE_10_3-b-2 |
|
730: |
The operands of a logical '||' in function 'overlay_symbol_update' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
730: |
The operands of a logical '||' in function 'overlay_symbol_update' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
734: |
The variable 'path' used as the left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
740: |
The argument number '2' ('essentially character' type) is passed to the function 'strchr' as a parameter with the 'essentially
signed' type
|
MISRAC2012-RULE_10_3-b-2 |
|
740: |
The variable 'path' used as the left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
741: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
747: |
The variable 'path' used as the left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
748: |
The expression of the 'long' essential type (8 byte) is assigned to an object with a narrower essential type (4 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
751: |
The expression of the 'essentially unsigned' type is assigned to an object with the 'essentially signed' type |
MISRAC2012-RULE_10_3-b-2 |
|
752: |
The argument number '3' ('essentially signed' type) is passed to the function 'memcmp' as a parameter with the 'essentially
unsigned' type
|
MISRAC2012-RULE_10_3-b-2 |
|
752: |
The first argument to the function 'memcmp()' is a pointer to an inappropriate type 'const char' |
MISRAC2012-RULE_21_16-a-2 |
|
752: |
The operands of a logical '&&' in function 'overlay_symbol_update' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
754: |
The variable 's' used as the left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
755: |
The expression of the 'long' essential type (8 byte) is assigned to an object with a narrower essential type (4 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
756: |
The operands of a logical '&&' in function 'overlay_symbol_update' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
757: |
The argument number '3' ('essentially signed' type) is passed to the function 'memcmp' as a parameter with the 'essentially
unsigned' type
|
MISRAC2012-RULE_10_3-b-2 |
|
757: |
The first argument to the function 'memcmp()' is a pointer to an inappropriate type 'const char' |
MISRAC2012-RULE_21_16-a-2 |
|
787: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
793: |
The expression of the 'essentially unsigned' type is assigned to an object with the 'essentially signed' type |
MISRAC2012-RULE_10_3-b-2 |
|
797: |
The right hand operand of the '+' operator has essentially Boolean type |
MISRAC2012-RULE_10_1-b-2 |
|
801: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
809: |
Pointer to void type should not be converted to pointer to object type 'char *' |
MISRAC2012-RULE_11_5-a-4 |
|
811: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
816: |
The argument number '3' ('essentially signed' type) is passed to the function 'memcpy' as a parameter with the 'essentially
unsigned' type
|
MISRAC2012-RULE_10_3-b-2 |
|
816: |
Unused function's "memcpy" return value |
MISRAC2012-RULE_17_7-a-2 |
|
822: |
The argument number '3' ('essentially signed' type) is passed to the function 'memcpy' as a parameter with the 'essentially
unsigned' type
|
MISRAC2012-RULE_10_3-b-2 |
|
822: |
The left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
822: |
The variable 'buf' used as the left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
822: |
Unused function's "memcpy" return value |
MISRAC2012-RULE_17_7-a-2 |
|
834: |
Assignment operator '=' is used in improper context |
MISRAC2012-RULE_13_4-a-4 |
|
835: |
Assignment operator '=' is used in improper context |
MISRAC2012-RULE_13_4-a-4 |
|
838: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
839: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
842: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
843: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
846: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
847: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
850: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
851: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
854: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
855: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
858: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
859: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
864: |
The argument number '2' ('essentially signed' type) is passed to the function 'fdt_set_magic' as a parameter with the 'essentially
unsigned' type
|
MISRAC2012-RULE_10_3-b-2 |
|
864: |
The operand of the '~' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
872: |
The argument number '2' ('essentially signed' type) is passed to the function 'fdt_set_magic' as a parameter with the 'essentially
unsigned' type
|
MISRAC2012-RULE_10_3-b-2 |
|
872: |
The operand of the '~' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
878: |
The argument number '2' ('essentially signed' type) is passed to the function 'fdt_set_magic' as a parameter with the 'essentially
unsigned' type
|
MISRAC2012-RULE_10_3-b-2 |
|
878: |
The operand of the '~' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
| /optee_os_MISRA/optee_os_ruchi393_core/lib/libfdt/fdt_ro.c |
|
19: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
19: |
The operands of a logical '||' in function 'fdt_nodename_eq_' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
19: |
The operands of a logical '||' in function 'fdt_nodename_eq_' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
23: |
The argument number '3' ('essentially signed' type) is passed to the function 'memcmp' as a parameter with the 'essentially
unsigned' type
|
MISRAC2012-RULE_10_3-b-2 |
|
23: |
The first argument to the function 'memcmp()' is a pointer to an inappropriate type 'const char' |
MISRAC2012-RULE_21_16-a-2 |
|
23: |
The second argument to the function 'memcmp()' is a pointer to an inappropriate type 'const char' |
MISRAC2012-RULE_21_16-a-2 |
|
28: |
The argument number '2' ('essentially character' type) is passed to the function 'memchr' as a parameter with the 'essentially
signed' type
|
MISRAC2012-RULE_10_3-b-2 |
|
28: |
The argument number '3' ('essentially signed' type) is passed to the function 'memchr' as a parameter with the 'essentially
unsigned' type
|
MISRAC2012-RULE_10_3-b-2 |
|
28: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
28: |
The operands of a logical '&&' in function 'fdt_nodename_eq_' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
34: |
The function 'fdt_get_string' is referenced only in the translation unit where it is defined |
MISRAC2012-RULE_8_7-a-4 |
|
37: |
Pointer to void type should not be converted to pointer to object type 'const struct fdt_header *' |
MISRAC2012-RULE_11_5-a-4 |
|
44: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
48: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
49: |
The value of a composite expression (32 bit essential type) is assigned to an object with wider essential type (64 bit) |
MISRAC2012-RULE_10_6-a-2 |
|
51: |
Integer constant '0xd00dfeed' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
51: |
Pointer to void type should not be converted to pointer to object type 'const struct fdt_header *' |
MISRAC2012-RULE_11_5-a-4 |
|
53: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
54: |
Pointer to void type should not be converted to pointer to object type 'const struct fdt_header *' |
MISRAC2012-RULE_11_5-a-4 |
|
55: |
Pointer to void type should not be converted to pointer to object type 'const struct fdt_header *' |
MISRAC2012-RULE_11_5-a-4 |
|
56: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
57: |
Essential type of RHS operand (64 bit) is wider than essential type of composite expression in LHS operand (32 bit) |
MISRAC2012-RULE_10_7-a-2 |
|
57: |
Pointer to void type should not be converted to pointer to object type 'const struct fdt_header *' |
MISRAC2012-RULE_11_5-a-4 |
|
58: |
Pointer to void type should not be converted to pointer to object type 'const struct fdt_header *' |
MISRAC2012-RULE_11_5-a-4 |
|
58: |
The value of a composite expression (32 bit essential type) is assigned to an object with wider essential type (64 bit) |
MISRAC2012-RULE_10_6-a-2 |
|
60: |
Integer constant '0xd00dfeed' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
60: |
Pointer to void type should not be converted to pointer to object type 'const struct fdt_header *' |
MISRAC2012-RULE_11_5-a-4 |
|
62: |
Pointer to void type should not be converted to pointer to object type 'const struct fdt_header *' |
MISRAC2012-RULE_11_5-a-4 |
|
62: |
The operand of the unary '-' operator has essentially unsigned type: 'unsigned int' |
MISRAC2012-RULE_10_1-g-2 |
|
63: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
65: |
The expression of the 'essentially signed' type is assigned to an object with the 'essentially unsigned' type |
MISRAC2012-RULE_10_3-b-2 |
|
68: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
71: |
Pointer to void type should not be converted to pointer to object type 'const char *' |
MISRAC2012-RULE_11_5-a-4 |
|
71: |
The left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
72: |
Pointer to void type should not be converted to pointer to object type 'const char *' |
MISRAC2012-RULE_11_5-a-4 |
|
72: |
The argument number '2' ('essentially character' type) is passed to the function 'memchr' as a parameter with the 'essentially
signed' type
|
MISRAC2012-RULE_10_3-b-2 |
|
73: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
76: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
79: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
80: |
The expression of the 'long' essential type (8 byte) is assigned to an object with a narrower essential type (4 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
84: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
100: |
The argument number '3' ('essentially signed' type) is passed to the function 'memcmp' as a parameter with the 'essentially
unsigned' type
|
MISRAC2012-RULE_10_3-b-2 |
|
100: |
The expression of the 'essentially Boolean' type is returned from function 'fdt_string_eq_' with the 'essentially signed'
type
|
MISRAC2012-RULE_10_3-b-2 |
|
100: |
The first argument to the function 'memcmp()' is a pointer to an inappropriate type 'const char' |
MISRAC2012-RULE_21_16-a-2 |
|
100: |
The left hand operand of the logical operator '&&' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
100: |
The second argument to the function 'memcmp()' is a pointer to an inappropriate type 'const char' |
MISRAC2012-RULE_21_16-a-2 |
|
125: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
140: |
Integer constant '0xfffffffe' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
143: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
149: |
The names of the identifiers 'fdt_mem_rsv' and 'fdt_mem_rsv_' (line: 36 in the 'libfdt_internal.h' file) differ only in the
presence/absence of the underscore character
|
MISRAC2012-DIR_4_5-a-4 |
|
151: |
The expression of the 'essentially unsigned' type is assigned to an object with the 'essentially signed' type |
MISRAC2012-RULE_10_3-b-2 |
|
152: |
Pointer to void type should not be converted to pointer to object type 'const struct fdt_header *' |
MISRAC2012-RULE_11_5-a-4 |
|
152: |
The expression of the 'essentially unsigned' type is assigned to an object with the 'essentially signed' type |
MISRAC2012-RULE_10_3-b-2 |
|
154: |
Pointer to void type should not be converted to pointer to object type 'const struct fdt_header *' |
MISRAC2012-RULE_11_5-a-4 |
|
156: |
Pointer to void type should not be converted to pointer to object type 'const struct fdt_header *' |
MISRAC2012-RULE_11_5-a-4 |
|
156: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
165: |
Assignment operator '=' is used in improper context |
MISRAC2012-RULE_13_4-a-4 |
|
167: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
180: |
Assignment operator '=' is used in improper context |
MISRAC2012-RULE_13_4-a-4 |
|
180: |
The second clause of a 'for' statement contains an expression that has a persistent side effect |
MISRAC2012-RULE_14_2-c-2 |
|
195: |
Missing default branch in switch statement |
MISRAC2012-RULE_16_4-a-2 |
|
195: |
Missing default branch in switch statement |
MISRAC2012-RULE_16_1-e-2 |
|
205: |
Parameter 'offset' is modified in function 'nextprop_' |
MISRAC2012-RULE_17_8-a-4 |
|
211: |
Identifiers given in declaration of 'fdt_subnode_offset_namelen' function (file: 'libfdt.h', line: '450') are: 'parentoffset'
not: 'offset'
|
MISRAC2012-RULE_8_3-b-2 |
|
216: |
Assignment operator '=' is used in improper context |
MISRAC2012-RULE_13_4-a-4 |
|
218: |
'for' statement in a function 'fdt_subnode_offset_namelen' should be followed by a block |
MISRAC2012-RULE_15_6-a-2 |
|
218: |
The 'for' loop contains more than one loop counter |
MISRAC2012-RULE_14_2-a-2 |
|
220: |
Parameter 'offset' is modified in function 'fdt_subnode_offset_namelen' |
MISRAC2012-RULE_17_8-a-4 |
|
221: |
The right hand operand of the logical operator '&&' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
222: |
Function 'fdt_nodename_eq_' called in the right-hand operand of a logical '&&' operator may cause side effect |
MISRAC2012-RULE_13_5-a-2 |
|
222: |
The operands of a logical '&&' in function 'fdt_subnode_offset_namelen' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
233: |
The argument number '4' ('essentially unsigned' type) is passed to the function 'fdt_subnode_offset_namelen' as a parameter
with the 'essentially signed' type
|
MISRAC2012-RULE_10_3-b-2 |
|
238: |
The variable 'path' used as the left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
242: |
Assignment operator '=' is used in improper context |
MISRAC2012-RULE_13_4-a-4 |
|
246: |
Pointer to void type should not be converted to pointer to object type 'const char *' |
MISRAC2012-RULE_11_5-a-4 |
|
246: |
The argument number '2' ('essentially character' type) is passed to the function 'memchr' as a parameter with the 'essentially
signed' type
|
MISRAC2012-RULE_10_3-b-2 |
|
246: |
The argument number '3' ('essentially signed' type) is passed to the function 'memchr' as a parameter with the 'essentially
unsigned' type
|
MISRAC2012-RULE_10_3-b-2 |
| +
|
246: |
The number of bytes to process by the "memchr" function is not positive and equals 0 |
MISRAC2012-RULE_21_18-a-1 |
| |
|
fdt_ro.c (283): strlen(...)
Point where number of bytes to process is defined
strlen.c (93): _CONST char *start = str; *** Number of bytes to process: str-start == 0 *** Buffer: const char path[]
strlen.c (117): while (*str) *** Loop condition evaluation: (*str != 0) (assuming false) *** Not entering the loop
strlen.c (119): return str - start;
fdt_ro.c (283): fdt_path_offset_namelen(...) *** Number of bytes to process: strlen(...) == 0 *** Buffer: const char path[]
fdt_ro.c (238): const char *end = path + namelen; *** Number of bytes to process: namelen == 0 *** Buffer: const char path[]
fdt_ro.c (239): const char *p = path; *** Number of bytes to process: end-path == 0 *** Buffer: const char path[]
fdt_ro.c (240): int offset = 0; *** Number of bytes to process: end-p == 0 *** Buffer: const char path[]
fdt_ro.c (242): FDT_RO_PROBE(fdt);
fdt_ro.c (245): if (*path != '/') { *** Condition evaluation: (*path != 47) (assuming true)
Point where buffer is passed to the function
fdt_ro.c (246): const char *q = memchr(path, '/', end - p); *** Number of bytes to process: end-p == 0 *** Buffer: const char path[] |
|
|
248: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
251: |
Function "fdt_get_alias_namelen" is called recursively |
MISRAC2012-RULE_17_2-a-2 |
|
251: |
The argument number '3' (8 byte essential type) is passed to the function 'fdt_get_alias_namelen' as a parameter with a narrower
essential type (4 byte)
|
MISRAC2012-RULE_10_3-a-2 |
|
252: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
254: |
Function "fdt_path_offset" is called recursively |
MISRAC2012-RULE_17_2-a-2 |
|
267: |
Pointer to void type should not be converted to pointer to object type 'const char *' |
MISRAC2012-RULE_11_5-a-4 |
|
267: |
The argument number '2' ('essentially character' type) is passed to the function 'memchr' as a parameter with the 'essentially
signed' type
|
MISRAC2012-RULE_10_3-b-2 |
|
267: |
The argument number '3' ('essentially signed' type) is passed to the function 'memchr' as a parameter with the 'essentially
unsigned' type
|
MISRAC2012-RULE_10_3-b-2 |
|
268: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
271: |
The argument number '4' (8 byte essential type) is passed to the function 'fdt_subnode_offset_namelen' as a parameter with
a narrower essential type (4 byte)
|
MISRAC2012-RULE_10_3-a-2 |
| +
|
271: |
The return value of the "fdt_path_offset" method is not checked. It is checked at least 80% times in the testing scope |
MISRAC2012-DIR_4_7-a-2 |
| |
|
Example path
boot.c (698): if (fdt_path_offset(dt->blob, "/firmware/optee") >= 0) { *** Method call *** Example of checking
Violation path
Method call
fdt_ro.c (254): offset = fdt_path_offset(fdt, p);
fdt_ro.c (256): p = q;
fdt_ro.c (259): while (p < end) { *** Loop condition evaluation: (p < end) (assuming true) *** Entering the loop
fdt_ro.c (260): const char *q;
fdt_ro.c (262): while (*p == '/') { *** Loop condition evaluation: (*p == 47) (assuming false) *** Not entering the loop
fdt_ro.c (267): q = memchr(p, '/', end - p);
fdt_ro.c (268): if (! q) *** Condition evaluation: !q (assuming false)
Point by which returned value should be checked
fdt_ro.c (271): offset = fdt_subnode_offset_namelen(fdt, offset, p, q-p); |
|
|
283: |
Function "fdt_path_offset_namelen" is called recursively |
MISRAC2012-RULE_17_2-a-2 |
|
283: |
The argument number '3' ('essentially unsigned' type) is passed to the function 'fdt_path_offset_namelen' as a parameter with
the 'essentially signed' type
|
MISRAC2012-RULE_10_3-b-2 |
|
286: |
Identifiers given in declaration of 'fdt_get_name' function (file: 'libfdt.h', line: '540') are: 'lenp' not: 'len' |
MISRAC2012-RULE_8_3-b-2 |
|
288: |
Pointer to void type should not be converted to pointer to object type 'const struct fdt_node_header *' |
MISRAC2012-RULE_11_5-a-4 |
|
292: |
Assignment operator '=' is used in improper context |
MISRAC2012-RULE_13_4-a-4 |
|
292: |
Do not use expressions with side effects in the right-hand operand of a logical '||' operator |
MISRAC2012-RULE_13_5-a-2 |
|
293: |
Assignment operator '=' is used in improper context |
MISRAC2012-RULE_13_4-a-4 |
|
294: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
298: |
Pointer to void type should not be converted to pointer to object type 'const struct fdt_header *' |
MISRAC2012-RULE_11_5-a-4 |
|
305: |
The argument number '2' ('essentially character' type) is passed to the function 'strrchr' as a parameter with the 'essentially
signed' type
|
MISRAC2012-RULE_10_3-b-2 |
|
308: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
310: |
The variable 'leaf' used as the left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
313: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
314: |
The expression of the 'essentially unsigned' type is assigned to an object with the 'essentially signed' type |
MISRAC2012-RULE_10_3-b-2 |
|
319: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
328: |
Assignment operator '=' is used in improper context |
MISRAC2012-RULE_13_4-a-4 |
|
336: |
Assignment operator '=' is used in improper context |
MISRAC2012-RULE_13_4-a-4 |
|
336: |
Parameter 'offset' is modified in function 'fdt_next_property_offset' |
MISRAC2012-RULE_17_8-a-4 |
|
342: |
The names of the identifiers 'fdt_get_property_by_offset_' and 'fdt_get_property_by_offset' (line: 637 in the 'libfdt.h' file)
differ only in the presence/absence of the underscore character
|
MISRAC2012-DIR_4_5-a-4 |
|
349: |
Assignment operator '=' is used in improper context |
MISRAC2012-RULE_13_4-a-4 |
|
350: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
355: |
Pointer to void type should not be converted to pointer to object type 'const struct fdt_property *' |
MISRAC2012-RULE_11_5-a-4 |
|
357: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
358: |
The expression of the 'essentially unsigned' type is assigned to an object with the 'essentially signed' type |
MISRAC2012-RULE_10_3-b-2 |
|
363: |
The names of the identifiers 'fdt_get_property_by_offset' and 'fdt_get_property_by_offset_' (line: 342 in the 'fdt_ro.c' file)
differ only in the presence/absence of the underscore character
|
MISRAC2012-DIR_4_5-a-4 |
|
370: |
Pointer to void type should not be converted to pointer to object type 'const struct fdt_header *' |
MISRAC2012-RULE_11_5-a-4 |
|
371: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
379: |
The names of the identifiers 'fdt_get_property_namelen_' and 'fdt_get_property_namelen' (line: 653 in the 'libfdt.h' file)
differ only in the presence/absence of the underscore character
|
MISRAC2012-DIR_4_5-a-4 |
|
386: |
Parameter 'offset' is modified in function 'fdt_get_property_namelen_' |
MISRAC2012-RULE_17_8-a-4 |
|
386: |
The loop counter is modified inside the 'for' loop body |
MISRAC2012-RULE_14_2-a-2 |
|
386: |
The second clause of a 'for' statement contains an object that is modified inside the loop body: 'offset' |
MISRAC2012-RULE_14_2-c-2 |
|
386: |
The third clause of a 'for' statement contains an object that is modified in the 'for' loop body |
MISRAC2012-RULE_14_2-d-2 |
|
388: |
Parameter 'offset' is modified in function 'fdt_get_property_namelen_' |
MISRAC2012-RULE_17_8-a-4 |
|
391: |
Assignment operator '=' is used in improper context |
MISRAC2012-RULE_13_4-a-4 |
|
391: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
392: |
Parameter 'offset' is modified in function 'fdt_get_property_namelen_' |
MISRAC2012-RULE_17_8-a-4 |
|
395: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
395: |
The argument number '2' ('essentially unsigned' type) is passed to the function 'fdt_string_eq_' as a parameter with the 'essentially
signed' type
|
MISRAC2012-RULE_10_3-b-2 |
|
397: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
403: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
409: |
Identifiers given in declaration of 'fdt_get_property_namelen' function (file: 'libfdt.h', line: '653') are: 'nodeoffset'
not: 'offset'
|
MISRAC2012-RULE_8_3-b-2 |
|
409: |
The function 'fdt_get_property_namelen' is referenced only in the translation unit where it is defined |
MISRAC2012-RULE_8_7-a-4 |
|
409: |
The names of the identifiers 'fdt_get_property_namelen' and 'fdt_get_property_namelen_' (line: 379 in the 'fdt_ro.c' file)
differ only in the presence/absence of the underscore character
|
MISRAC2012-DIR_4_5-a-4 |
|
416: |
Pointer to void type should not be converted to pointer to object type 'const struct fdt_header *' |
MISRAC2012-RULE_11_5-a-4 |
|
417: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
432: |
The argument number '4' ('essentially unsigned' type) is passed to the function 'fdt_get_property_namelen' as a parameter
with the 'essentially signed' type
|
MISRAC2012-RULE_10_3-b-2 |
|
443: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
447: |
Pointer to void type should not be converted to pointer to object type 'const struct fdt_header *' |
MISRAC2012-RULE_11_5-a-4 |
|
447: |
The operands of a logical '&&' in function 'fdt_getprop_namelen' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
447: |
The operands of a logical '&&' in function 'fdt_getprop_namelen' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
447: |
The right hand operand of the logical operator '&&' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
448: |
The operands of a logical '&&' in function 'fdt_getprop_namelen' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
449: |
The left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
459: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
461: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
464: |
The argument number '2' ('essentially unsigned' type) is passed to the function 'fdt_get_string' as a parameter with the 'essentially
signed' type
|
MISRAC2012-RULE_10_3-b-2 |
|
466: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
467: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
475: |
Pointer to void type should not be converted to pointer to object type 'const struct fdt_header *' |
MISRAC2012-RULE_11_5-a-4 |
|
475: |
The operands of a logical '&&' in function 'fdt_getprop_by_offset' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
475: |
The operands of a logical '&&' in function 'fdt_getprop_by_offset' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
475: |
The right hand operand of the logical operator '&&' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
476: |
The operands of a logical '&&' in function 'fdt_getprop_by_offset' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
477: |
The left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
484: |
The argument number '4' ('essentially unsigned' type) is passed to the function 'fdt_getprop_namelen' as a parameter with
the 'essentially signed' type
|
MISRAC2012-RULE_10_3-b-2 |
|
494: |
Pointer to void type should not be converted to pointer to object type 'const fdt32_t *' |
MISRAC2012-RULE_11_5-a-4 |
|
495: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
495: |
The operands of a logical '||' in function 'fdt_get_phandle' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
496: |
Pointer to void type should not be converted to pointer to object type 'const fdt32_t *' |
MISRAC2012-RULE_11_5-a-4 |
|
497: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
497: |
The operands of a logical '||' in function 'fdt_get_phandle' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
504: |
The function 'fdt_get_alias_namelen' is referenced only in the translation unit where it is defined |
MISRAC2012-RULE_8_7-a-4 |
|
509: |
Function "fdt_path_offset" is called recursively |
MISRAC2012-RULE_17_2-a-2 |
|
513: |
Pointer to void type should not be converted to pointer to object type 'const char *' in function's return |
MISRAC2012-RULE_11_5-a-4 |
|
518: |
The argument number '3' ('essentially unsigned' type) is passed to the function 'fdt_get_alias_namelen' as a parameter with
the 'essentially signed' type
|
MISRAC2012-RULE_10_3-b-2 |
|
527: |
Assignment operator '=' is used in improper context |
MISRAC2012-RULE_13_4-a-4 |
|
532: |
Disallowed comma operator is used in function 'fdt_get_path' |
MISRAC2012-RULE_12_3-a-4 |
|
532: |
Improper expression is used in the first clause of a 'for' statement |
MISRAC2012-RULE_14_2-b-2 |
|
544: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
547: |
The argument number '3' ('essentially signed' type) is passed to the function 'memcpy' as a parameter with the 'essentially
unsigned' type
|
MISRAC2012-RULE_10_3-b-2 |
|
547: |
The variable 'buf' used as the left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
547: |
Unused function's "memcpy" return value |
MISRAC2012-RULE_17_7-a-2 |
|
549: |
The '++' operator should cause the only side effect in an expression |
MISRAC2012-RULE_13_3-a-4 |
|
567: |
Provide 'else' after the last 'else-if' construct |
MISRAC2012-RULE_15_7-a-2 |
|
573: |
The function 'fdt_supernode_atdepth_offset' is referenced only in the translation unit where it is defined |
MISRAC2012-RULE_8_7-a-4 |
|
579: |
Assignment operator '=' is used in improper context |
MISRAC2012-RULE_13_4-a-4 |
|
584: |
Disallowed comma operator is used in function 'fdt_supernode_atdepth_offset' |
MISRAC2012-RULE_12_3-a-4 |
|
584: |
Improper expression is used in the first clause of a 'for' statement |
MISRAC2012-RULE_14_2-b-2 |
|
591: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
603: |
Provide 'else' after the last 'else-if' construct |
MISRAC2012-RULE_15_7-a-2 |
|
609: |
The function 'fdt_node_depth' is referenced only in the translation unit where it is defined |
MISRAC2012-RULE_8_7-a-4 |
|
615: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
638: |
Assignment operator '=' is used in improper context |
MISRAC2012-RULE_13_4-a-4 |
|
649: |
The left hand operand of the logical operator '&&' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
650: |
The argument number '3' ('essentially signed' type) is passed to the function 'memcmp' as a parameter with the 'essentially
unsigned' type
|
MISRAC2012-RULE_10_3-b-2 |
|
650: |
The first argument to the function 'memcmp()' is a pointer to an inappropriate type 'const void' |
MISRAC2012-RULE_21_16-a-2 |
|
650: |
The second argument to the function 'memcmp()' is a pointer to an inappropriate type 'const void' |
MISRAC2012-RULE_21_16-a-2 |
|
661: |
The result of boolean expression is always true or always false; the type of variable 'phandle' is unsigned |
MISRAC2012-RULE_14_3-z-2 |
|
664: |
Assignment operator '=' is used in improper context |
MISRAC2012-RULE_13_4-a-4 |
|
682: |
The function 'fdt_stringlist_contains' is referenced only in the translation unit where it is defined |
MISRAC2012-RULE_8_7-a-4 |
|
684: |
The expression of the 'essentially unsigned' type is assigned to an object with the 'essentially signed' type |
MISRAC2012-RULE_10_3-b-2 |
|
688: |
The argument number '3' ('essentially signed' type) is passed to the function 'memcmp' as a parameter with the 'essentially
unsigned' type
|
MISRAC2012-RULE_10_3-b-2 |
|
688: |
The first argument to the function 'memcmp()' is a pointer to an inappropriate type 'const char' |
MISRAC2012-RULE_21_16-a-2 |
|
688: |
The second argument to the function 'memcmp()' is a pointer to an inappropriate type 'const char' |
MISRAC2012-RULE_21_16-a-2 |
|
690: |
Pointer to void type should not be converted to pointer to object type 'const char *' |
MISRAC2012-RULE_11_5-a-4 |
|
690: |
The argument number '2' ('essentially character' type) is passed to the function 'memchr' as a parameter with the 'essentially
signed' type
|
MISRAC2012-RULE_10_3-b-2 |
|
690: |
The argument number '3' ('essentially signed' type) is passed to the function 'memchr' as a parameter with the 'essentially
unsigned' type
|
MISRAC2012-RULE_10_3-b-2 |
|
691: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
693: |
Parameter 'listlen' is modified in function 'fdt_stringlist_contains' |
MISRAC2012-RULE_17_8-a-4 |
|
693: |
The expression of the 'long' essential type (8 byte) is assigned to an object with a narrower essential type (4 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
694: |
Parameter 'strlist' is modified in function 'fdt_stringlist_contains' |
MISRAC2012-RULE_17_8-a-4 |
|
694: |
The variable 'p' used as the left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
704: |
Pointer to void type should not be converted to pointer to object type 'const char *' |
MISRAC2012-RULE_11_5-a-4 |
|
705: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
708: |
The variable 'list' used as the left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
711: |
The argument number '2' ('essentially signed' type) is passed to the function 'strnlen' as a parameter with the 'essentially
unsigned' type
|
MISRAC2012-RULE_10_3-b-2 |
|
711: |
The expression of the 'essentially unsigned' type is assigned to an object with the 'essentially signed' type |
MISRAC2012-RULE_10_3-b-2 |
|
714: |
The variable 'list' used as the left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
714: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
717: |
The variable 'list' used as the left hand side operand of the '+=' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
730: |
Pointer to void type should not be converted to pointer to object type 'const char *' |
MISRAC2012-RULE_11_5-a-4 |
|
731: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
734: |
The expression of the 'essentially unsigned' type is assigned to an object with the 'essentially signed' type |
MISRAC2012-RULE_10_3-b-2 |
|
735: |
The variable 'list' used as the left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
738: |
The argument number '2' ('essentially signed' type) is passed to the function 'strnlen' as a parameter with the 'essentially
unsigned' type
|
MISRAC2012-RULE_10_3-b-2 |
|
738: |
The expression of the 'essentially unsigned' type is assigned to an object with the 'essentially signed' type |
MISRAC2012-RULE_10_3-b-2 |
|
741: |
The variable 'list' used as the left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
741: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
744: |
The argument number '3' ('essentially signed' type) is passed to the function 'memcmp' as a parameter with the 'essentially
unsigned' type
|
MISRAC2012-RULE_10_3-b-2 |
|
744: |
The first argument to the function 'memcmp()' is a pointer to an inappropriate type 'const char' |
MISRAC2012-RULE_21_16-a-2 |
|
744: |
The operands of a logical '&&' in function 'fdt_stringlist_search' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
744: |
The operands of a logical '&&' in function 'fdt_stringlist_search' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
744: |
The second argument to the function 'memcmp()' is a pointer to an inappropriate type 'const char' |
MISRAC2012-RULE_21_16-a-2 |
|
747: |
The variable 'list' used as the left hand side operand of the '+=' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
754: |
Identifiers given in declaration of 'fdt_stringlist_get' function (file: 'libfdt.h', line: '1135') are: 'index' not: 'idx' |
MISRAC2012-RULE_8_3-b-2 |
|
761: |
Pointer to void type should not be converted to pointer to object type 'const char *' |
MISRAC2012-RULE_11_5-a-4 |
|
762: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
763: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
769: |
The variable 'list' used as the left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
772: |
The argument number '2' ('essentially signed' type) is passed to the function 'strnlen' as a parameter with the 'essentially
unsigned' type
|
MISRAC2012-RULE_10_3-b-2 |
|
772: |
The expression of the 'essentially unsigned' type is assigned to an object with the 'essentially signed' type |
MISRAC2012-RULE_10_3-b-2 |
|
775: |
The variable 'list' used as the left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
775: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
776: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
783: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
789: |
The variable 'list' used as the left hand side operand of the '+=' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
790: |
Parameter 'idx' is modified in function 'fdt_stringlist_get' |
MISRAC2012-RULE_17_8-a-4 |
|
793: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
806: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
809: |
Pointer to void type should not be converted to pointer to object type 'const char *' in function's argument |
MISRAC2012-RULE_11_5-a-4 |
|
809: |
The expression of the 'essentially Boolean' type is returned from function 'fdt_node_check_compatible' with the 'essentially
signed' type
|
MISRAC2012-RULE_10_3-b-2 |
|
809: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
817: |
Assignment operator '=' is used in improper context |
MISRAC2012-RULE_13_4-a-4 |
|
830: |
Provide 'else' after the last 'else-if' construct |
MISRAC2012-RULE_15_7-a-2 |
|
852: |
Pointer to void type should not be converted to pointer to object type 'const struct fdt_header *' |
MISRAC2012-RULE_11_5-a-4 |
|
890: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
| /optee_os_MISRA/optee_os_ruchi393_core/lib/libfdt/fdt_rw.c |
|
16: |
Pointer to void type should not be converted to pointer to object type 'const struct fdt_header *' |
MISRAC2012-RULE_11_5-a-4 |
|
16: |
The expression of the 'essentially Boolean' type is returned from function 'fdt_blocks_misordered_' with the 'essentially
signed' type
|
MISRAC2012-RULE_10_3-b-2 |
|
16: |
The operand of the '~' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
16: |
The right hand operand of the '&' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
16: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
17: |
Pointer to void type should not be converted to pointer to object type 'const struct fdt_header *' |
MISRAC2012-RULE_11_5-a-4 |
|
18: |
Pointer to void type should not be converted to pointer to object type 'const struct fdt_header *' |
MISRAC2012-RULE_11_5-a-4 |
|
19: |
Pointer to void type should not be converted to pointer to object type 'const struct fdt_header *' |
MISRAC2012-RULE_11_5-a-4 |
|
20: |
Pointer to void type should not be converted to pointer to object type 'const struct fdt_header *' |
MISRAC2012-RULE_11_5-a-4 |
|
21: |
Pointer to void type should not be converted to pointer to object type 'const struct fdt_header *' |
MISRAC2012-RULE_11_5-a-4 |
|
22: |
Pointer to void type should not be converted to pointer to object type 'const struct fdt_header *' |
MISRAC2012-RULE_11_5-a-4 |
|
22: |
Pointer to void type should not be converted to pointer to object type 'const struct fdt_header *' |
MISRAC2012-RULE_11_5-a-4 |
|
27: |
Assignment operator '=' is used in improper context |
MISRAC2012-RULE_13_4-a-4 |
|
29: |
Pointer to void type should not be converted to pointer to object type 'const struct fdt_header *' |
MISRAC2012-RULE_11_5-a-4 |
|
31: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
31: |
The argument number '2' ('essentially unsigned' type) is passed to the function 'fdt_blocks_misordered_' as a parameter with
the 'essentially signed' type
|
MISRAC2012-RULE_10_3-b-2 |
|
32: |
Pointer to void type should not be converted to pointer to object type 'const struct fdt_header *' |
MISRAC2012-RULE_11_5-a-4 |
|
32: |
The argument number '3' ('essentially unsigned' type) is passed to the function 'fdt_blocks_misordered_' as a parameter with
the 'essentially signed' type
|
MISRAC2012-RULE_10_3-b-2 |
|
34: |
Pointer to void type should not be converted to pointer to object type 'const struct fdt_header *' |
MISRAC2012-RULE_11_5-a-4 |
|
40: |
Do not define function-like macro: FDT_RW_PROBE |
MISRAC2012-DIR_4_9-a-4 |
|
47: |
Pass parameter "fdt" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
49: |
Pointer to void type should not be converted to pointer to object type 'const struct fdt_header *' |
MISRAC2012-RULE_11_5-a-4 |
|
49: |
Pointer to void type should not be converted to pointer to object type 'const struct fdt_header *' |
MISRAC2012-RULE_11_5-a-4 |
|
49: |
The expression of the 'essentially unsigned' type is returned from function 'fdt_data_size_' with the 'essentially signed'
type
|
MISRAC2012-RULE_10_3-b-2 |
|
54: |
Pointer to void type should not be converted to pointer to object type 'char *' |
MISRAC2012-RULE_11_5-a-4 |
|
55: |
Pointer to void type should not be converted to pointer to object type 'char *' |
MISRAC2012-RULE_11_5-a-4 |
|
55: |
The left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
57: |
The variable 'p' used as the left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
57: |
The variable 'p' used as the left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
59: |
Pointer to void type should not be converted to pointer to object type 'char *' |
MISRAC2012-RULE_11_5-a-4 |
|
59: |
Pointer to void type should not be converted to pointer to object type 'char *' |
MISRAC2012-RULE_11_5-a-4 |
|
59: |
The left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
59: |
The variable 'end' used as the left hand side operand of the '-' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
59: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
61: |
Pointer to void type should not be converted to pointer to object type 'char *' |
MISRAC2012-RULE_11_5-a-4 |
|
61: |
Pointer to void type should not be converted to pointer to object type 'const struct fdt_header *' |
MISRAC2012-RULE_11_5-a-4 |
|
61: |
The left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
61: |
The left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
61: |
The variable 'end' used as the left hand side operand of the '-' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
61: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
63: |
The argument number '3' ('essentially signed' type) is passed to the function 'memmove' as a parameter with the 'essentially
unsigned' type
|
MISRAC2012-RULE_10_3-b-2 |
|
63: |
The variable 'p' used as the left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
63: |
The variable 'p' used as the left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
63: |
Unused function's "memmove" return value |
MISRAC2012-RULE_17_7-a-2 |
|
70: |
The expression of the 'essentially unsigned' type is assigned to an object with the 'essentially signed' type |
MISRAC2012-RULE_10_3-b-2 |
|
72: |
The argument number '3' ('essentially unsigned' type) is passed to the function 'fdt_splice_' as a parameter with the 'essentially
signed' type
|
MISRAC2012-RULE_10_3-b-2 |
|
72: |
The argument number '4' ('essentially unsigned' type) is passed to the function 'fdt_splice_' as a parameter with the 'essentially
signed' type
|
MISRAC2012-RULE_10_3-b-2 |
|
73: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
75: |
Pointer to void type should not be converted to pointer to object type 'const struct fdt_header *' |
MISRAC2012-RULE_11_5-a-4 |
|
76: |
Pointer to void type should not be converted to pointer to object type 'const struct fdt_header *' |
MISRAC2012-RULE_11_5-a-4 |
|
86: |
Assignment operator '=' is used in improper context |
MISRAC2012-RULE_13_4-a-4 |
|
86: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
89: |
Pointer to void type should not be converted to pointer to object type 'const struct fdt_header *' |
MISRAC2012-RULE_11_5-a-4 |
|
90: |
Pointer to void type should not be converted to pointer to object type 'const struct fdt_header *' |
MISRAC2012-RULE_11_5-a-4 |
|
97: |
The expression of the 'essentially unsigned' type is assigned to an object with the 'essentially signed' type |
MISRAC2012-RULE_10_3-b-2 |
|
99: |
Pointer to void type should not be converted to pointer to object type 'const struct fdt_header *' |
MISRAC2012-RULE_11_5-a-4 |
|
104: |
Pointer to void type should not be converted to pointer to object type 'char *' |
MISRAC2012-RULE_11_5-a-4 |
|
104: |
The left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
105: |
Pointer to void type should not be converted to pointer to object type 'const struct fdt_header *' |
MISRAC2012-RULE_11_5-a-4 |
|
105: |
Pointer to void type should not be converted to pointer to object type 'const struct fdt_header *' |
MISRAC2012-RULE_11_5-a-4 |
|
108: |
Assignment operator '=' is used in improper context |
MISRAC2012-RULE_13_4-a-4 |
|
108: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
111: |
Pointer to void type should not be converted to pointer to object type 'const struct fdt_header *' |
MISRAC2012-RULE_11_5-a-4 |
|
117: |
Pointer to void type should not be converted to pointer to object type 'char *' |
MISRAC2012-RULE_11_5-a-4 |
|
117: |
Pointer to void type should not be converted to pointer to object type 'const struct fdt_header *' |
MISRAC2012-RULE_11_5-a-4 |
|
117: |
The left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
120: |
The expression of the 'essentially unsigned' type is assigned to an object with the 'essentially signed' type |
MISRAC2012-RULE_10_3-b-2 |
|
125: |
Pointer to void type should not be converted to pointer to object type 'const struct fdt_header *' |
MISRAC2012-RULE_11_5-a-4 |
|
125: |
The argument number '2' ('essentially unsigned' type) is passed to the function 'fdt_find_string_' as a parameter with the
'essentially signed' type
|
MISRAC2012-RULE_10_3-b-2 |
|
126: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
128: |
The expression of the 'long' essential type (8 byte) is returned from the function 'fdt_find_add_string_' with a narrower
essential return type (4 byte)
|
MISRAC2012-RULE_10_3-a-2 |
|
130: |
Pointer to void type should not be converted to pointer to object type 'const struct fdt_header *' |
MISRAC2012-RULE_11_5-a-4 |
|
130: |
The variable 'strtab' used as the left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
132: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
137: |
The argument number '3' ('essentially signed' type) is passed to the function 'memcpy' as a parameter with the 'essentially
unsigned' type
|
MISRAC2012-RULE_10_3-b-2 |
|
137: |
Unused function's "memcpy" return value |
MISRAC2012-RULE_17_7-a-2 |
|
138: |
The expression of the 'long' essential type (8 byte) is returned from the function 'fdt_find_add_string_' with a narrower
essential return type (4 byte)
|
MISRAC2012-RULE_10_3-a-2 |
|
146: |
Assignment operator '=' is used in improper context |
MISRAC2012-RULE_13_4-a-4 |
|
146: |
The names of the identifiers 'err_' and 'err' (line: 144 in the 'fdt_rw.c' file) differ only in the presence/absence of the
underscore character
|
MISRAC2012-DIR_4_5-a-4 |
|
150: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
162: |
Assignment operator '=' is used in improper context |
MISRAC2012-RULE_13_4-a-4 |
|
177: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
180: |
Assignment operator '=' is used in improper context |
MISRAC2012-RULE_13_4-a-4 |
|
180: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
180: |
The argument number '3' ('essentially unsigned' type) is passed to the function 'fdt_splice_struct_' as a parameter with the
'essentially signed' type
|
MISRAC2012-RULE_10_3-b-2 |
|
180: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
181: |
The argument number '4' ('essentially unsigned' type) is passed to the function 'fdt_splice_struct_' as a parameter with the
'essentially signed' type
|
MISRAC2012-RULE_10_3-b-2 |
|
181: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
184: |
The argument number '1' ('essentially signed' type) is passed to the function 'cpu_to_fdt32' as a parameter with the 'essentially
unsigned' type
|
MISRAC2012-RULE_10_3-b-2 |
|
197: |
Assignment operator '=' is used in improper context |
MISRAC2012-RULE_13_4-a-4 |
|
204: |
Pointer to void type should not be converted to pointer to object type 'struct fdt_property *' |
MISRAC2012-RULE_11_5-a-4 |
|
205: |
The expression of the 'essentially unsigned' type is assigned to an object with the 'essentially signed' type |
MISRAC2012-RULE_10_3-b-2 |
|
205: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
208: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
209: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
215: |
The argument number '1' ('essentially signed' type) is passed to the function 'cpu_to_fdt32' as a parameter with the 'essentially
unsigned' type
|
MISRAC2012-RULE_10_3-b-2 |
|
216: |
The argument number '1' ('essentially signed' type) is passed to the function 'cpu_to_fdt32' as a parameter with the 'essentially
unsigned' type
|
MISRAC2012-RULE_10_3-b-2 |
|
226: |
Assignment operator '=' is used in improper context |
MISRAC2012-RULE_13_4-a-4 |
|
226: |
The names of the identifiers 'err_' and 'err' (line: 224 in the 'fdt_rw.c' file) differ only in the presence/absence of the
underscore character
|
MISRAC2012-DIR_4_5-a-4 |
|
228: |
Integral type 'unsigned long' should not be converted to pointer to object type 'char *' |
MISRAC2012-RULE_11_4-a-4 |
|
228: |
Pointer to object type 'const char *' should not be converted to integral type 'unsigned long' |
MISRAC2012-RULE_11_4-a-4 |
|
229: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
232: |
The expression of the 'essentially unsigned' type is assigned to an object with the 'essentially signed' type |
MISRAC2012-RULE_10_3-b-2 |
|
234: |
The argument number '3' ('essentially unsigned' type) is passed to the function 'fdt_splice_struct_' as a parameter with the
'essentially signed' type
|
MISRAC2012-RULE_10_3-b-2 |
|
234: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
235: |
The argument number '4' ('essentially unsigned' type) is passed to the function 'fdt_splice_struct_' as a parameter with the
'essentially signed' type
|
MISRAC2012-RULE_10_3-b-2 |
|
235: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
236: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
239: |
The argument number '3' ('essentially signed' type) is passed to the function 'memcpy' as a parameter with the 'essentially
unsigned' type
|
MISRAC2012-RULE_10_3-b-2 |
|
239: |
Unused function's "memcpy" return value |
MISRAC2012-RULE_17_7-a-2 |
|
249: |
Assignment operator '=' is used in improper context |
MISRAC2012-RULE_13_4-a-4 |
|
249: |
The names of the identifiers 'err_' and 'err' (line: 247 in the 'fdt_rw.c' file) differ only in the presence/absence of the
underscore character
|
MISRAC2012-DIR_4_5-a-4 |
|
254: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
268: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
271: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
272: |
The argument number '3' ('essentially signed' type) is passed to the function 'memcpy' as a parameter with the 'essentially
unsigned' type
|
MISRAC2012-RULE_10_3-b-2 |
|
272: |
Unused function's "memcpy" return value |
MISRAC2012-RULE_17_7-a-2 |
|
282: |
Assignment operator '=' is used in improper context |
MISRAC2012-RULE_13_4-a-4 |
|
282: |
The names of the identifiers 'err_' and 'err' (line: 280 in the 'fdt_rw.c' file) differ only in the presence/absence of the
underscore character
|
MISRAC2012-DIR_4_5-a-4 |
|
285: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
288: |
The argument number '3' ('essentially unsigned' type) is passed to the function 'fdt_splice_struct_' as a parameter with the
'essentially signed' type
|
MISRAC2012-RULE_10_3-b-2 |
|
288: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
289: |
The argument number '4' ('essentially unsigned' type) is passed to the function 'fdt_splice_struct_' as a parameter with the
'essentially signed' type
|
MISRAC2012-RULE_10_3-b-2 |
|
289: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
290: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
292: |
The argument number '1' ('essentially signed' type) is passed to the function 'cpu_to_fdt32' as a parameter with the 'essentially
unsigned' type
|
MISRAC2012-RULE_10_3-b-2 |
|
293: |
In the call of the function 'memcpy' the first argument type 'char*' is not compatible with the second argument type 'void*' |
MISRAC2012-RULE_21_15-a-2 |
|
293: |
The argument number '3' ('essentially signed' type) is passed to the function 'memcpy' as a parameter with the 'essentially
unsigned' type
|
MISRAC2012-RULE_10_3-b-2 |
|
293: |
The left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
293: |
Unused function's "memcpy" return value |
MISRAC2012-RULE_17_7-a-2 |
|
296: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
298: |
In the call of the function 'memcpy' the first argument type 'char*' is not compatible with the second argument type 'void*' |
MISRAC2012-RULE_21_15-a-2 |
|
298: |
The argument number '3' ('essentially signed' type) is passed to the function 'memcpy' as a parameter with the 'essentially
unsigned' type
|
MISRAC2012-RULE_10_3-b-2 |
|
298: |
Unused function's "memcpy" return value |
MISRAC2012-RULE_17_7-a-2 |
|
308: |
Assignment operator '=' is used in improper context |
MISRAC2012-RULE_13_4-a-4 |
|
311: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
314: |
The expression of the 'essentially unsigned' type is assigned to an object with the 'essentially signed' type |
MISRAC2012-RULE_10_3-b-2 |
|
314: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
318: |
The function 'fdt_add_subnode_namelen' is referenced only in the translation unit where it is defined |
MISRAC2012-RULE_8_7-a-4 |
|
328: |
Assignment operator '=' is used in improper context |
MISRAC2012-RULE_13_4-a-4 |
|
328: |
The names of the identifiers 'err_' and 'err' (line: 324 in the 'fdt_rw.c' file) differ only in the presence/absence of the
underscore character
|
MISRAC2012-DIR_4_5-a-4 |
|
333: |
Provide 'else' after the last 'else-if' construct |
MISRAC2012-RULE_15_7-a-2 |
| +
|
337: |
The return value of the "fdt_next_tag" method is not checked. It is checked at least 80% times in the testing scope |
MISRAC2012-DIR_4_7-a-2 |
| |
|
Example path
fdt.c (187): || (fdt_next_tag(fdt, offset, &offset) != FDT_BEGIN_NODE)) *** Method call *** Example of checking
Violation path
Method call
Point by which returned value should be checked
fdt_rw.c (337): fdt_next_tag(fdt, parentoffset, &nextoffset); /* skip the BEGIN_NODE */ |
|
|
337: |
Unused function's "fdt_next_tag" return value |
MISRAC2012-RULE_17_7-a-2 |
|
343: |
Pointer to void type should not be converted to pointer to object type 'struct fdt_node_header *' |
MISRAC2012-RULE_11_5-a-4 |
|
344: |
The expression of the 'essentially unsigned' type is assigned to an object with the 'essentially signed' type |
MISRAC2012-RULE_10_3-b-2 |
|
344: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
347: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
351: |
Unused function's "memset" return value |
MISRAC2012-RULE_17_7-a-2 |
|
351: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
352: |
The argument number '3' ('essentially signed' type) is passed to the function 'memcpy' as a parameter with the 'essentially
unsigned' type
|
MISRAC2012-RULE_10_3-b-2 |
|
352: |
Unused function's "memcpy" return value |
MISRAC2012-RULE_17_7-a-2 |
|
353: |
Pointer to object type 'char *' is cast to pointer to different object type 'fdt32_t *' |
MISRAC2012-RULE_11_3-a-2 |
|
353: |
The left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
353: |
The left hand side operand of the '-' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
353: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
361: |
The argument number '4' ('essentially unsigned' type) is passed to the function 'fdt_add_subnode_namelen' as a parameter with
the 'essentially signed' type
|
MISRAC2012-RULE_10_3-b-2 |
|
368: |
Assignment operator '=' is used in improper context |
MISRAC2012-RULE_13_4-a-4 |
|
383: |
The expression of the 'essentially unsigned' type is assigned to an object with the 'essentially signed' type |
MISRAC2012-RULE_10_3-b-2 |
|
383: |
The operand of the '~' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
383: |
The right hand operand of the '&' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
383: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
387: |
Pointer to object type 'const char *' is cast to pointer to different object type 'const struct fdt_header *' |
MISRAC2012-RULE_11_3-a-2 |
|
387: |
The argument number '3' ('essentially signed' type) is passed to the function 'memmove' as a parameter with the 'essentially
unsigned' type
|
MISRAC2012-RULE_10_3-b-2 |
|
387: |
The variable 'new' used as the left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
387: |
The variable 'old' used as the left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
387: |
Unused function's "memmove" return value |
MISRAC2012-RULE_17_7-a-2 |
|
388: |
The argument number '2' ('essentially signed' type) is passed to the function 'fdt_set_off_mem_rsvmap' as a parameter with
the 'essentially unsigned' type
|
MISRAC2012-RULE_10_3-b-2 |
|
390: |
Pointer to object type 'const char *' is cast to pointer to different object type 'const struct fdt_header *' |
MISRAC2012-RULE_11_3-a-2 |
|
390: |
The argument number '3' ('essentially signed' type) is passed to the function 'memmove' as a parameter with the 'essentially
unsigned' type
|
MISRAC2012-RULE_10_3-b-2 |
|
390: |
The variable 'new' used as the left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
390: |
The variable 'old' used as the left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
390: |
Unused function's "memmove" return value |
MISRAC2012-RULE_17_7-a-2 |
|
391: |
The argument number '2' ('essentially signed' type) is passed to the function 'fdt_set_off_dt_struct' as a parameter with
the 'essentially unsigned' type
|
MISRAC2012-RULE_10_3-b-2 |
|
392: |
The argument number '2' ('essentially signed' type) is passed to the function 'fdt_set_size_dt_struct' as a parameter with
the 'essentially unsigned' type
|
MISRAC2012-RULE_10_3-b-2 |
|
394: |
Pointer to object type 'const char *' is cast to pointer to different object type 'const struct fdt_header *' |
MISRAC2012-RULE_11_3-a-2 |
|
394: |
The variable 'new' used as the left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
394: |
The variable 'old' used as the left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
394: |
Unused function's "memmove" return value |
MISRAC2012-RULE_17_7-a-2 |
|
395: |
Pointer to object type 'const char *' is cast to pointer to different object type 'const struct fdt_header *' |
MISRAC2012-RULE_11_3-a-2 |
|
396: |
The argument number '2' ('essentially signed' type) is passed to the function 'fdt_set_off_dt_strings' as a parameter with
the 'essentially unsigned' type
|
MISRAC2012-RULE_10_3-b-2 |
|
397: |
Pointer to object type 'const char *' is cast to pointer to different object type 'const struct fdt_header *' |
MISRAC2012-RULE_11_3-a-2 |
|
405: |
Pointer to void type should not be converted to pointer to object type 'const char *' |
MISRAC2012-RULE_11_5-a-4 |
|
406: |
Pointer to void type should not be converted to pointer to object type 'const struct fdt_header *' |
MISRAC2012-RULE_11_5-a-4 |
|
406: |
The variable 'fdtstart' used as the left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
409: |
Assignment operator '=' is used in improper context |
MISRAC2012-RULE_13_4-a-4 |
|
411: |
The expression of the 'essentially unsigned' type is assigned to an object with the 'essentially signed' type |
MISRAC2012-RULE_10_3-b-2 |
|
414: |
Pointer to void type should not be converted to pointer to object type 'const struct fdt_header *' |
MISRAC2012-RULE_11_5-a-4 |
|
415: |
Pointer to void type should not be converted to pointer to object type 'const struct fdt_header *' |
MISRAC2012-RULE_11_5-a-4 |
|
415: |
The expression of the 'essentially unsigned' type is assigned to an object with the 'essentially signed' type |
MISRAC2012-RULE_10_3-b-2 |
|
418: |
'while' statement in a function 'fdt_open_into' should be followed by a block |
MISRAC2012-RULE_15_6-a-2 |
|
424: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
427: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
430: |
The argument number '2' ('essentially signed' type) is passed to the function 'fdt_set_size_dt_struct' as a parameter with
the 'essentially unsigned' type
|
MISRAC2012-RULE_10_3-b-2 |
|
431: |
The argument number '2' ('essentially signed' type) is passed to the function 'fdt_set_totalsize' as a parameter with the
'essentially unsigned' type
|
MISRAC2012-RULE_10_3-b-2 |
|
436: |
The expression of the 'essentially unsigned' type is assigned to an object with the 'essentially signed' type |
MISRAC2012-RULE_10_3-b-2 |
|
436: |
The operand of the '~' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
436: |
The right hand operand of the '&' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
436: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
437: |
Pointer to void type should not be converted to pointer to object type 'const struct fdt_header *' |
MISRAC2012-RULE_11_5-a-4 |
|
443: |
Pointer to void type should not be converted to pointer to object type 'char *' |
MISRAC2012-RULE_11_5-a-4 |
|
445: |
The variable 'tmp' used as the left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
447: |
Integral type 'unsigned long' should not be converted to pointer to object type 'char *' |
MISRAC2012-RULE_11_4-a-4 |
|
447: |
Pointer to object type 'const char *' should not be converted to integral type 'unsigned long' |
MISRAC2012-RULE_11_4-a-4 |
|
448: |
Pointer to void type should not be converted to pointer to object type 'char *' |
MISRAC2012-RULE_11_5-a-4 |
|
448: |
The left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
448: |
The variable 'tmp' used as the left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
452: |
Pointer to void type should not be converted to pointer to object type 'const char *' in function's argument |
MISRAC2012-RULE_11_5-a-4 |
|
453: |
In the call of the function 'memmove' the first argument type 'void*' is not compatible with the second argument type 'char*' |
MISRAC2012-RULE_21_15-a-2 |
|
453: |
The argument number '3' ('essentially signed' type) is passed to the function 'memmove' as a parameter with the 'essentially
unsigned' type
|
MISRAC2012-RULE_10_3-b-2 |
|
453: |
Unused function's "memmove" return value |
MISRAC2012-RULE_17_7-a-2 |
|
455: |
Integer constant '0xd00dfeed' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
456: |
The argument number '2' ('essentially signed' type) is passed to the function 'fdt_set_totalsize' as a parameter with the
'essentially unsigned' type
|
MISRAC2012-RULE_10_3-b-2 |
|
459: |
Pointer to void type should not be converted to pointer to object type 'const struct fdt_header *' |
MISRAC2012-RULE_11_5-a-4 |
|
468: |
Assignment operator '=' is used in improper context |
MISRAC2012-RULE_13_4-a-4 |
|
470: |
The expression of the 'essentially unsigned' type is assigned to an object with the 'essentially signed' type |
MISRAC2012-RULE_10_3-b-2 |
|
472: |
Pointer to void type should not be converted to pointer to object type 'char *' in function's argument |
MISRAC2012-RULE_11_5-a-4 |
|
472: |
Pointer to void type should not be converted to pointer to object type 'const char *' in function's argument |
MISRAC2012-RULE_11_5-a-4 |
|
472: |
Pointer to void type should not be converted to pointer to object type 'const struct fdt_header *' |
MISRAC2012-RULE_11_5-a-4 |
|
472: |
The argument number '4' ('essentially unsigned' type) is passed to the function 'fdt_packblocks_' as a parameter with the
'essentially signed' type
|
MISRAC2012-RULE_10_3-b-2 |
|
473: |
The argument number '2' ('essentially signed' type) is passed to the function 'fdt_set_totalsize' as a parameter with the
'essentially unsigned' type
|
MISRAC2012-RULE_10_3-b-2 |
| /optee_os_MISRA/optee_os_ruchi393_core/lib/libfdt/fdt_strerror.c |
|
18: |
Do not define function-like macro: FDT_ERRTABENT |
MISRAC2012-DIR_4_9-a-4 |
|
19: |
Preprocessor operator # should not be used |
MISRAC2012-RULE_20_10-a-4 |
|
21: |
Global variable 'fdt_errtable' is being used only in a single function 'fdt_strerror' |
MISRAC2012-RULE_8_9-a-4 |
|
21: |
The size of the array 'fdt_errtable' should be specified explicitly |
MISRAC2012-RULE_9_5-a-2 |
|
22: |
Potential macro 'FDT_ERR_NOTFOUND' used as '1' parameter of potential macro 'FDT_ERRTABENT' |
MISRAC2012-RULE_20_12-a-2 |
|
23: |
Potential macro 'FDT_ERR_EXISTS' used as '1' parameter of potential macro 'FDT_ERRTABENT' |
MISRAC2012-RULE_20_12-a-2 |
|
24: |
Potential macro 'FDT_ERR_NOSPACE' used as '1' parameter of potential macro 'FDT_ERRTABENT' |
MISRAC2012-RULE_20_12-a-2 |
|
26: |
Potential macro 'FDT_ERR_BADOFFSET' used as '1' parameter of potential macro 'FDT_ERRTABENT' |
MISRAC2012-RULE_20_12-a-2 |
|
27: |
Potential macro 'FDT_ERR_BADPATH' used as '1' parameter of potential macro 'FDT_ERRTABENT' |
MISRAC2012-RULE_20_12-a-2 |
|
28: |
Potential macro 'FDT_ERR_BADPHANDLE' used as '1' parameter of potential macro 'FDT_ERRTABENT' |
MISRAC2012-RULE_20_12-a-2 |
|
29: |
Potential macro 'FDT_ERR_BADSTATE' used as '1' parameter of potential macro 'FDT_ERRTABENT' |
MISRAC2012-RULE_20_12-a-2 |
|
31: |
Potential macro 'FDT_ERR_TRUNCATED' used as '1' parameter of potential macro 'FDT_ERRTABENT' |
MISRAC2012-RULE_20_12-a-2 |
|
32: |
Potential macro 'FDT_ERR_BADMAGIC' used as '1' parameter of potential macro 'FDT_ERRTABENT' |
MISRAC2012-RULE_20_12-a-2 |
|
33: |
Potential macro 'FDT_ERR_BADVERSION' used as '1' parameter of potential macro 'FDT_ERRTABENT' |
MISRAC2012-RULE_20_12-a-2 |
|
34: |
Potential macro 'FDT_ERR_BADSTRUCTURE' used as '1' parameter of potential macro 'FDT_ERRTABENT' |
MISRAC2012-RULE_20_12-a-2 |
|
35: |
Potential macro 'FDT_ERR_BADLAYOUT' used as '1' parameter of potential macro 'FDT_ERRTABENT' |
MISRAC2012-RULE_20_12-a-2 |
|
36: |
Potential macro 'FDT_ERR_INTERNAL' used as '1' parameter of potential macro 'FDT_ERRTABENT' |
MISRAC2012-RULE_20_12-a-2 |
|
37: |
Potential macro 'FDT_ERR_BADNCELLS' used as '1' parameter of potential macro 'FDT_ERRTABENT' |
MISRAC2012-RULE_20_12-a-2 |
|
38: |
Potential macro 'FDT_ERR_BADVALUE' used as '1' parameter of potential macro 'FDT_ERRTABENT' |
MISRAC2012-RULE_20_12-a-2 |
|
39: |
Potential macro 'FDT_ERR_BADOVERLAY' used as '1' parameter of potential macro 'FDT_ERRTABENT' |
MISRAC2012-RULE_20_12-a-2 |
|
40: |
Potential macro 'FDT_ERR_NOPHANDLES' used as '1' parameter of potential macro 'FDT_ERRTABENT' |
MISRAC2012-RULE_20_12-a-2 |
|
41: |
Potential macro 'FDT_ERR_BADFLAGS' used as '1' parameter of potential macro 'FDT_ERRTABENT' |
MISRAC2012-RULE_20_12-a-2 |
|
51: |
Provide 'else' after the last 'else-if' construct |
MISRAC2012-RULE_15_7-a-2 |
|
51: |
The operand of the unary '-' operator has essentially unsigned type: 'unsigned long' |
MISRAC2012-RULE_10_1-g-2 |
|
54: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
| /optee_os_MISRA/optee_os_ruchi393_core/lib/libfdt/fdt_sw.c |
|
13: |
Pass parameter "fdt" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
15: |
Integer constant '0xd00dfeed' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
15: |
Pointer to void type should not be converted to pointer to object type 'const struct fdt_header *' |
MISRAC2012-RULE_11_5-a-4 |
|
17: |
Integer constant '0xd00dfeed' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
17: |
Pointer to void type should not be converted to pointer to object type 'const struct fdt_header *' |
MISRAC2012-RULE_11_5-a-4 |
|
17: |
Provide 'else' after the last 'else-if' construct |
MISRAC2012-RULE_15_7-a-2 |
|
22: |
Do not define function-like macro: FDT_SW_PROBE |
MISRAC2012-DIR_4_9-a-4 |
|
38: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
41: |
Pointer to void type should not be converted to pointer to object type 'const struct fdt_header *' |
MISRAC2012-RULE_11_5-a-4 |
|
46: |
Do not define function-like macro: FDT_SW_PROBE_MEMRSV |
MISRAC2012-DIR_4_9-a-4 |
|
64: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
67: |
Pointer to void type should not be converted to pointer to object type 'const struct fdt_header *' |
MISRAC2012-RULE_11_5-a-4 |
|
67: |
Pointer to void type should not be converted to pointer to object type 'const struct fdt_header *' |
MISRAC2012-RULE_11_5-a-4 |
|
72: |
Do not define function-like macro: FDT_SW_PROBE_STRUCT |
MISRAC2012-DIR_4_9-a-4 |
|
79: |
Pass parameter "fdt" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
82: |
Pointer to void type should not be converted to pointer to object type 'const struct fdt_header *' |
MISRAC2012-RULE_11_5-a-4 |
|
92: |
Pointer to void type should not be converted to pointer to object type 'const struct fdt_header *' |
MISRAC2012-RULE_11_5-a-4 |
|
92: |
The expression of the 'essentially unsigned' type is assigned to an object with the 'essentially signed' type |
MISRAC2012-RULE_10_3-b-2 |
|
95: |
Pointer to void type should not be converted to pointer to object type 'const struct fdt_header *' |
MISRAC2012-RULE_11_5-a-4 |
|
95: |
Pointer to void type should not be converted to pointer to object type 'const struct fdt_header *' |
MISRAC2012-RULE_11_5-a-4 |
|
95: |
The expression of the 'essentially unsigned' type is assigned to an object with the 'essentially signed' type |
MISRAC2012-RULE_10_3-b-2 |
|
96: |
Pointer to void type should not be converted to pointer to object type 'const struct fdt_header *' |
MISRAC2012-RULE_11_5-a-4 |
|
98: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
98: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
101: |
The argument number '2' (8 byte essential type) is passed to the function 'fdt_set_size_dt_struct' as a parameter with a narrower
essential type (4 byte)
|
MISRAC2012-RULE_10_3-a-2 |
|
105: |
The function 'fdt_create_with_flags' is referenced only in the translation unit where it is defined |
MISRAC2012-RULE_8_7-a-4 |
|
107: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
114: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
114: |
The operand of the '~' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
114: |
The right hand operand of the '&' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
117: |
The argument number '3' ('essentially signed' type) is passed to the function 'memset' as a parameter with the 'essentially
unsigned' type
|
MISRAC2012-RULE_10_3-b-2 |
|
117: |
Unused function's "memset" return value |
MISRAC2012-RULE_17_7-a-2 |
|
126: |
Integer constant '0xd00dfeed' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
130: |
The argument number '2' ('essentially signed' type) is passed to the function 'fdt_set_totalsize' as a parameter with the
'essentially unsigned' type
|
MISRAC2012-RULE_10_3-b-2 |
|
132: |
The argument number '2' (8 byte essential type) is passed to the function 'fdt_set_off_mem_rsvmap' as a parameter with a narrower
essential type (4 byte)
|
MISRAC2012-RULE_10_3-a-2 |
|
133: |
Pointer to void type should not be converted to pointer to object type 'const struct fdt_header *' |
MISRAC2012-RULE_11_5-a-4 |
|
149: |
Assignment operator '=' is used in improper context |
MISRAC2012-RULE_13_4-a-4 |
|
151: |
Pointer to void type should not be converted to pointer to object type 'const struct fdt_header *' |
MISRAC2012-RULE_11_5-a-4 |
|
151: |
Pointer to void type should not be converted to pointer to object type 'const struct fdt_header *' |
MISRAC2012-RULE_11_5-a-4 |
|
151: |
The value of a composite expression (32 bit essential type) is assigned to an object with wider essential type (64 bit) |
MISRAC2012-RULE_10_6-a-2 |
|
152: |
Pointer to void type should not be converted to pointer to object type 'const struct fdt_header *' |
MISRAC2012-RULE_11_5-a-4 |
|
154: |
Pointer to void type should not be converted to pointer to object type 'const struct fdt_header *' |
MISRAC2012-RULE_11_5-a-4 |
|
160: |
Pointer to void type should not be converted to pointer to object type 'char *' |
MISRAC2012-RULE_11_5-a-4 |
|
160: |
Pointer to void type should not be converted to pointer to object type 'const struct fdt_header *' |
MISRAC2012-RULE_11_5-a-4 |
|
160: |
The left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
160: |
The left hand side operand of the '-' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
160: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
161: |
Pointer to void type should not be converted to pointer to object type 'char *' |
MISRAC2012-RULE_11_5-a-4 |
|
161: |
The left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
161: |
The left hand side operand of the '-' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
161: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
166: |
Unused function's "memmove" return value |
MISRAC2012-RULE_17_7-a-2 |
|
167: |
Unused function's "memmove" return value |
MISRAC2012-RULE_17_7-a-2 |
|
169: |
Unused function's "memmove" return value |
MISRAC2012-RULE_17_7-a-2 |
|
170: |
Unused function's "memmove" return value |
MISRAC2012-RULE_17_7-a-2 |
|
173: |
The argument number '2' ('essentially signed' type) is passed to the function 'fdt_set_totalsize' as a parameter with the
'essentially unsigned' type
|
MISRAC2012-RULE_10_3-b-2 |
|
174: |
Pointer to void type should not be converted to pointer to object type 'const struct fdt_header *' |
MISRAC2012-RULE_11_5-a-4 |
|
174: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
175: |
The argument number '2' ('essentially signed' type) is passed to the function 'fdt_set_off_dt_strings' as a parameter with
the 'essentially unsigned' type
|
MISRAC2012-RULE_10_3-b-2 |
|
180: |
The function 'fdt_add_reservemap_entry' is referenced only in the translation unit where it is defined |
MISRAC2012-RULE_8_7-a-4 |
|
185: |
Assignment operator '=' is used in improper context |
MISRAC2012-RULE_13_4-a-4 |
|
187: |
Pointer to void type should not be converted to pointer to object type 'const struct fdt_header *' |
MISRAC2012-RULE_11_5-a-4 |
|
187: |
The expression of the 'essentially unsigned' type is assigned to an object with the 'essentially signed' type |
MISRAC2012-RULE_10_3-b-2 |
|
188: |
Pointer to void type should not be converted to pointer to object type 'const struct fdt_header *' |
MISRAC2012-RULE_11_5-a-4 |
|
191: |
Pointer to object type 'char *' is cast to pointer to different object type 'struct fdt_reserve_entry *' |
MISRAC2012-RULE_11_3-a-2 |
|
191: |
Pointer to void type should not be converted to pointer to object type 'char *' |
MISRAC2012-RULE_11_5-a-4 |
|
191: |
The left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
195: |
The argument number '2' (8 byte essential type) is passed to the function 'fdt_set_off_dt_struct' as a parameter with a narrower
essential type (4 byte)
|
MISRAC2012-RULE_10_3-a-2 |
|
204: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
207: |
Pointer to void type should not be converted to pointer to object type 'const struct fdt_header *' |
MISRAC2012-RULE_11_5-a-4 |
|
216: |
Assignment operator '=' is used in improper context |
MISRAC2012-RULE_13_4-a-4 |
|
218: |
The expression of the 'essentially unsigned' type is assigned to an object with the 'essentially signed' type |
MISRAC2012-RULE_10_3-b-2 |
|
219: |
Pointer to void type should not be converted to pointer to object type 'struct fdt_node_header *' |
MISRAC2012-RULE_11_5-a-4 |
|
219: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
220: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
224: |
The argument number '3' ('essentially signed' type) is passed to the function 'memcpy' as a parameter with the 'essentially
unsigned' type
|
MISRAC2012-RULE_10_3-b-2 |
|
224: |
Unused function's "memcpy" return value |
MISRAC2012-RULE_17_7-a-2 |
|
232: |
Assignment operator '=' is used in improper context |
MISRAC2012-RULE_13_4-a-4 |
|
234: |
Pointer to void type should not be converted to pointer to object type 'fdt32_t *' |
MISRAC2012-RULE_11_5-a-4 |
|
235: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
244: |
Pointer to void type should not be converted to pointer to object type 'char *' |
MISRAC2012-RULE_11_5-a-4 |
|
244: |
Pointer to void type should not be converted to pointer to object type 'const struct fdt_header *' |
MISRAC2012-RULE_11_5-a-4 |
|
244: |
The left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
245: |
Pointer to void type should not be converted to pointer to object type 'const struct fdt_header *' |
MISRAC2012-RULE_11_5-a-4 |
|
245: |
The expression of the 'essentially unsigned' type is assigned to an object with the 'essentially signed' type |
MISRAC2012-RULE_10_3-b-2 |
|
246: |
The expression of the 'essentially unsigned' type is assigned to an object with the 'essentially signed' type |
MISRAC2012-RULE_10_3-b-2 |
|
250: |
Pointer to void type should not be converted to pointer to object type 'const struct fdt_header *' |
MISRAC2012-RULE_11_5-a-4 |
|
250: |
Pointer to void type should not be converted to pointer to object type 'const struct fdt_header *' |
MISRAC2012-RULE_11_5-a-4 |
|
250: |
The expression of the 'essentially unsigned' type is assigned to an object with the 'essentially signed' type |
MISRAC2012-RULE_10_3-b-2 |
|
251: |
Pointer to void type should not be converted to pointer to object type 'const struct fdt_header *' |
MISRAC2012-RULE_11_5-a-4 |
|
251: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
254: |
The argument number '3' ('essentially signed' type) is passed to the function 'memcpy' as a parameter with the 'essentially
unsigned' type
|
MISRAC2012-RULE_10_3-b-2 |
|
254: |
The variable 'strtab' used as the left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
254: |
Unused function's "memcpy" return value |
MISRAC2012-RULE_17_7-a-2 |
|
255: |
The argument number '2' ('essentially signed' type) is passed to the function 'fdt_set_size_dt_strings' as a parameter with
the 'essentially unsigned' type
|
MISRAC2012-RULE_10_3-b-2 |
|
262: |
Pointer to void type should not be converted to pointer to object type 'const struct fdt_header *' |
MISRAC2012-RULE_11_5-a-4 |
|
262: |
The expression of the 'essentially unsigned' type is assigned to an object with the 'essentially signed' type |
MISRAC2012-RULE_10_3-b-2 |
|
263: |
The expression of the 'essentially unsigned' type is assigned to an object with the 'essentially signed' type |
MISRAC2012-RULE_10_3-b-2 |
|
265: |
The argument number '2' ('essentially signed' type) is passed to the function 'fdt_set_size_dt_strings' as a parameter with
the 'essentially unsigned' type
|
MISRAC2012-RULE_10_3-b-2 |
|
270: |
Pointer to void type should not be converted to pointer to object type 'char *' |
MISRAC2012-RULE_11_5-a-4 |
|
270: |
Pointer to void type should not be converted to pointer to object type 'const struct fdt_header *' |
MISRAC2012-RULE_11_5-a-4 |
|
270: |
The left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
271: |
Pointer to void type should not be converted to pointer to object type 'const struct fdt_header *' |
MISRAC2012-RULE_11_5-a-4 |
|
271: |
The expression of the 'essentially unsigned' type is assigned to an object with the 'essentially signed' type |
MISRAC2012-RULE_10_3-b-2 |
|
276: |
The variable 'strtab' used as the left hand side operand of the '-' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
277: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
278: |
The expression of the 'long' essential type (8 byte) is returned from the function 'fdt_find_add_string_' with a narrower
essential return type (4 byte)
|
MISRAC2012-RULE_10_3-a-2 |
|
285: |
The function 'fdt_property_placeholder' is referenced only in the translation unit where it is defined |
MISRAC2012-RULE_8_7-a-4 |
|
291: |
Assignment operator '=' is used in improper context |
MISRAC2012-RULE_13_4-a-4 |
|
294: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
294: |
The right hand operand of the '&' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
303: |
Pointer to void type should not be converted to pointer to object type 'struct fdt_property *' |
MISRAC2012-RULE_11_5-a-4 |
|
303: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
304: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
305: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
311: |
The argument number '1' ('essentially signed' type) is passed to the function 'cpu_to_fdt32' as a parameter with the 'essentially
unsigned' type
|
MISRAC2012-RULE_10_3-b-2 |
|
312: |
The argument number '1' ('essentially signed' type) is passed to the function 'cpu_to_fdt32' as a parameter with the 'essentially
unsigned' type
|
MISRAC2012-RULE_10_3-b-2 |
|
317: |
A tag name 'fdt_property' is reused |
MISRAC2012-RULE_5_7-a-2 |
|
323: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
325: |
The argument number '3' ('essentially signed' type) is passed to the function 'memcpy' as a parameter with the 'essentially
unsigned' type
|
MISRAC2012-RULE_10_3-b-2 |
|
325: |
Unused function's "memcpy" return value |
MISRAC2012-RULE_17_7-a-2 |
|
331: |
Pointer to void type should not be converted to pointer to object type 'char *' |
MISRAC2012-RULE_11_5-a-4 |
|
337: |
Assignment operator '=' is used in improper context |
MISRAC2012-RULE_13_4-a-4 |
|
340: |
Pointer to void type should not be converted to pointer to object type 'fdt32_t *' |
MISRAC2012-RULE_11_5-a-4 |
|
341: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
346: |
Pointer to void type should not be converted to pointer to object type 'const struct fdt_header *' |
MISRAC2012-RULE_11_5-a-4 |
|
346: |
Pointer to void type should not be converted to pointer to object type 'const struct fdt_header *' |
MISRAC2012-RULE_11_5-a-4 |
|
346: |
The expression of the 'essentially unsigned' type is assigned to an object with the 'essentially signed' type |
MISRAC2012-RULE_10_3-b-2 |
|
347: |
Pointer to void type should not be converted to pointer to object type 'const struct fdt_header *' |
MISRAC2012-RULE_11_5-a-4 |
|
347: |
Pointer to void type should not be converted to pointer to object type 'const struct fdt_header *' |
MISRAC2012-RULE_11_5-a-4 |
|
347: |
The expression of the 'essentially unsigned' type is assigned to an object with the 'essentially signed' type |
MISRAC2012-RULE_10_3-b-2 |
|
348: |
Pointer to void type should not be converted to pointer to object type 'const struct fdt_header *' |
MISRAC2012-RULE_11_5-a-4 |
|
348: |
The variable 'p' used as the left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
348: |
The variable 'p' used as the left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
348: |
Unused function's "memmove" return value |
MISRAC2012-RULE_17_7-a-2 |
|
349: |
The argument number '2' ('essentially signed' type) is passed to the function 'fdt_set_off_dt_strings' as a parameter with
the 'essentially unsigned' type
|
MISRAC2012-RULE_10_3-b-2 |
|
353: |
Assignment operator '=' is used in improper context |
MISRAC2012-RULE_13_4-a-4 |
|
355: |
Pointer to void type should not be converted to pointer to object type 'struct fdt_property *' |
MISRAC2012-RULE_11_5-a-4 |
|
359: |
The expression of the 'essentially unsigned' type is assigned to an object with the 'essentially signed' type |
MISRAC2012-RULE_10_3-b-2 |
|
360: |
Pointer to void type should not be converted to pointer to object type 'const struct fdt_header *' |
MISRAC2012-RULE_11_5-a-4 |
|
361: |
The argument number '1' ('essentially signed' type) is passed to the function 'cpu_to_fdt32' as a parameter with the 'essentially
unsigned' type
|
MISRAC2012-RULE_10_3-b-2 |
|
369: |
Pointer to void type should not be converted to pointer to object type 'const struct fdt_header *' |
MISRAC2012-RULE_11_5-a-4 |
|
373: |
Integer constant '0xd00dfeed' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
| /optee_os_MISRA/optee_os_ruchi393_core/lib/libfdt/fdt_wip.c |
|
23: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
29: |
In the call of the function 'memcpy' the first argument type 'char*' is not compatible with the second argument type 'void*' |
MISRAC2012-RULE_21_15-a-2 |
|
29: |
Pointer to void type should not be converted to pointer to object type 'char *' |
MISRAC2012-RULE_11_5-a-4 |
|
29: |
The argument number '3' ('essentially signed' type) is passed to the function 'memcpy' as a parameter with the 'essentially
unsigned' type
|
MISRAC2012-RULE_10_3-b-2 |
|
29: |
The left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
29: |
Unused function's "memcpy" return value |
MISRAC2012-RULE_17_7-a-2 |
|
40: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
47: |
The argument number '4' ('essentially unsigned' type) is passed to the function 'fdt_setprop_inplace_namelen_partial' as a
parameter with the 'essentially signed' type
|
MISRAC2012-RULE_10_3-b-2 |
|
55: |
'for' statement in a function 'fdt_nop_region_' should be followed by a block |
MISRAC2012-RULE_15_6-a-2 |
|
55: |
Pointer to void type should not be converted to pointer to object type 'char *' |
MISRAC2012-RULE_11_5-a-4 |
|
55: |
Pointer to void type should not be converted to pointer to object type 'fdt32_t *' |
MISRAC2012-RULE_11_5-a-4 |
|
55: |
The left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
65: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
68: |
The argument number '2' ('essentially unsigned' type) is passed to the function 'fdt_nop_region_' as a parameter with the
'essentially signed' type
|
MISRAC2012-RULE_10_3-b-2 |
|
73: |
Identifiers given in declaration of 'fdt_node_end_offset_' function (file: 'libfdt_internal.h', line: '24') are: 'nodeoffset'
not: 'offset'
|
MISRAC2012-RULE_8_3-b-2 |
|
73: |
Pass parameter "fdt" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
77: |
'while' statement in a function 'fdt_node_end_offset_' should be followed by a block |
MISRAC2012-RULE_15_6-a-2 |
|
78: |
Parameter 'offset' is modified in function 'fdt_node_end_offset_' |
MISRAC2012-RULE_17_8-a-4 |
| /optee_os_MISRA/optee_os_ruchi393_core/lib/libfdt/include/fdt.h |
|
38: |
Flexible array member 'name' is declared |
MISRAC2012-RULE_18_7-a-2 |
|
41: |
An external identifier with the same name 'fdt_property' was declared in the 'fdt_sw.c' file in line 317 |
MISRAC2012-RULE_5_8-a-2 |
|
41: |
An external identifier with the same name 'fdt_property' was declared in the 'libfdt.h' file in line 1434 |
MISRAC2012-RULE_5_8-a-2 |
|
41: |
Consider hiding the implementation of the structure 'fdt_property' in a translation unit 'boot.c' |
MISRAC2012-DIR_4_8-a-4 |
|
41: |
Consider hiding the implementation of the structure 'fdt_property' in a translation unit 'dt.c' |
MISRAC2012-DIR_4_8-a-4 |
|
45: |
Flexible array member 'data' is declared |
MISRAC2012-RULE_18_7-a-2 |
| /optee_os_MISRA/optee_os_ruchi393_core/lib/libfdt/include/libfdt.h |
|
111: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
111: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
113: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
113: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
115: |
Arithmetic type 'unsigned long' should not be converted to pointer to void type |
MISRAC2012-RULE_11_6-a-2 |
|
115: |
Pointer to void type should not be converted to arithmetic type 'unsigned long' |
MISRAC2012-RULE_11_6-a-2 |
|
115: |
The argument number '3' ('essentially signed' type) is passed to the function 'fdt_offset_ptr' as a parameter with the 'essentially
unsigned' type
|
MISRAC2012-RULE_10_3-b-2 |
|
118: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
118: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
139: |
Pointer to void type should not be converted to pointer to object type 'uint8_t *' |
MISRAC2012-RULE_11_5-a-4 |
|
141: |
The expression of the 'unsigned int' essential type (4 byte) is assigned to an object with a narrower essential type (1 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
142: |
Operands of the '&' operator have different essential types: 'unsigned int' and 'short' |
MISRAC2012-RULE_10_4-a-2 |
|
142: |
The expression of the 'unsigned int' essential type (4 byte) is assigned to an object with a narrower essential type (1 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
142: |
The right hand operand of the '&' operator has essentially signed type: short |
MISRAC2012-RULE_10_1-e-2 |
|
143: |
Operands of the '&' operator have different essential types: 'unsigned int' and 'short' |
MISRAC2012-RULE_10_4-a-2 |
|
143: |
The expression of the 'unsigned int' essential type (4 byte) is assigned to an object with a narrower essential type (1 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
143: |
The right hand operand of the '&' operator has essentially signed type: short |
MISRAC2012-RULE_10_1-e-2 |
|
144: |
Operands of the '&' operator have different essential types: 'unsigned int' and 'short' |
MISRAC2012-RULE_10_4-a-2 |
|
144: |
The expression of the 'unsigned int' essential type (4 byte) is assigned to an object with a narrower essential type (1 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
144: |
The right hand operand of the '&' operator has essentially signed type: short |
MISRAC2012-RULE_10_1-e-2 |
|
163: |
Pointer to void type should not be converted to pointer to object type 'uint8_t *' |
MISRAC2012-RULE_11_5-a-4 |
|
165: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with a narrower essential type (1 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
166: |
Operands of the '&' operator have different essential types: 'unsigned long' and 'short' |
MISRAC2012-RULE_10_4-a-2 |
|
166: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with a narrower essential type (1 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
166: |
The right hand operand of the '&' operator has essentially signed type: short |
MISRAC2012-RULE_10_1-e-2 |
|
167: |
Operands of the '&' operator have different essential types: 'unsigned long' and 'short' |
MISRAC2012-RULE_10_4-a-2 |
|
167: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with a narrower essential type (1 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
167: |
The right hand operand of the '&' operator has essentially signed type: short |
MISRAC2012-RULE_10_1-e-2 |
|
168: |
Operands of the '&' operator have different essential types: 'unsigned long' and 'short' |
MISRAC2012-RULE_10_4-a-2 |
|
168: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with a narrower essential type (1 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
168: |
The right hand operand of the '&' operator has essentially signed type: short |
MISRAC2012-RULE_10_1-e-2 |
|
169: |
Operands of the '&' operator have different essential types: 'unsigned long' and 'short' |
MISRAC2012-RULE_10_4-a-2 |
|
169: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with a narrower essential type (1 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
169: |
The right hand operand of the '&' operator has essentially signed type: short |
MISRAC2012-RULE_10_1-e-2 |
|
170: |
Operands of the '&' operator have different essential types: 'unsigned long' and 'short' |
MISRAC2012-RULE_10_4-a-2 |
|
170: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with a narrower essential type (1 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
170: |
The right hand operand of the '&' operator has essentially signed type: short |
MISRAC2012-RULE_10_1-e-2 |
|
171: |
Operands of the '&' operator have different essential types: 'unsigned long' and 'short' |
MISRAC2012-RULE_10_4-a-2 |
|
171: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with a narrower essential type (1 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
171: |
The right hand operand of the '&' operator has essentially signed type: short |
MISRAC2012-RULE_10_1-e-2 |
|
172: |
Operands of the '&' operator have different essential types: 'unsigned long' and 'short' |
MISRAC2012-RULE_10_4-a-2 |
|
172: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with a narrower essential type (1 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
172: |
The right hand operand of the '&' operator has essentially signed type: short |
MISRAC2012-RULE_10_1-e-2 |
|
179: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
179: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
179: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
188: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
188: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
201: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
201: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
203: |
Section of code should not be 'commented out' |
MISRAC2012-DIR_4_4-a-4 |
|
226: |
Do not define function-like macro: fdt_for_each_subnode |
MISRAC2012-DIR_4_9-a-4 |
|
227: |
Each instance of parameter: 'fdt' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
227: |
Each instance of parameter: 'node' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
227: |
Each instance of parameter: 'parent' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
228: |
Each instance of parameter: 'node' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
229: |
Each instance of parameter: 'fdt' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
229: |
Each instance of parameter: 'node' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
229: |
Each instance of parameter: 'node' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
234: |
Do not define function-like macro: fdt_get_header |
MISRAC2012-DIR_4_9-a-4 |
|
236: |
Do not define function-like macro: fdt_magic |
MISRAC2012-DIR_4_9-a-4 |
|
236: |
Each instance of parameter: 'fdt' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
237: |
Do not define function-like macro: fdt_totalsize |
MISRAC2012-DIR_4_9-a-4 |
|
237: |
Each instance of parameter: 'fdt' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
238: |
Do not define function-like macro: fdt_off_dt_struct |
MISRAC2012-DIR_4_9-a-4 |
|
238: |
Each instance of parameter: 'fdt' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
239: |
Do not define function-like macro: fdt_off_dt_strings |
MISRAC2012-DIR_4_9-a-4 |
|
239: |
Each instance of parameter: 'fdt' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
240: |
Do not define function-like macro: fdt_off_mem_rsvmap |
MISRAC2012-DIR_4_9-a-4 |
|
240: |
Each instance of parameter: 'fdt' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
241: |
Do not define function-like macro: fdt_version |
MISRAC2012-DIR_4_9-a-4 |
|
241: |
Each instance of parameter: 'fdt' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
242: |
Do not define function-like macro: fdt_last_comp_version |
MISRAC2012-DIR_4_9-a-4 |
|
242: |
Each instance of parameter: 'fdt' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
243: |
Do not define function-like macro: fdt_boot_cpuid_phys |
MISRAC2012-DIR_4_9-a-4 |
|
243: |
Each instance of parameter: 'fdt' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
244: |
Do not define function-like macro: fdt_size_dt_strings |
MISRAC2012-DIR_4_9-a-4 |
|
244: |
Each instance of parameter: 'fdt' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
245: |
Do not define function-like macro: fdt_size_dt_struct |
MISRAC2012-DIR_4_9-a-4 |
|
245: |
Each instance of parameter: 'fdt' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
247: |
Do not define function-like macro: fdt_set_hdr_ |
MISRAC2012-DIR_4_9-a-4 |
|
248: |
Preprocessor operator ## should not be used |
MISRAC2012-RULE_20_10-a-4 |
|
253: |
Pointer to void type should not be converted to pointer to object type 'struct fdt_header *' |
MISRAC2012-RULE_11_5-a-4 |
|
254: |
Pointer to void type should not be converted to pointer to object type 'struct fdt_header *' |
MISRAC2012-RULE_11_5-a-4 |
|
255: |
Pointer to void type should not be converted to pointer to object type 'struct fdt_header *' |
MISRAC2012-RULE_11_5-a-4 |
|
256: |
Pointer to void type should not be converted to pointer to object type 'struct fdt_header *' |
MISRAC2012-RULE_11_5-a-4 |
|
257: |
Pointer to void type should not be converted to pointer to object type 'struct fdt_header *' |
MISRAC2012-RULE_11_5-a-4 |
|
258: |
Pointer to void type should not be converted to pointer to object type 'struct fdt_header *' |
MISRAC2012-RULE_11_5-a-4 |
|
259: |
Pointer to void type should not be converted to pointer to object type 'struct fdt_header *' |
MISRAC2012-RULE_11_5-a-4 |
|
260: |
Pointer to void type should not be converted to pointer to object type 'struct fdt_header *' |
MISRAC2012-RULE_11_5-a-4 |
|
261: |
Pointer to void type should not be converted to pointer to object type 'struct fdt_header *' |
MISRAC2012-RULE_11_5-a-4 |
|
262: |
Pointer to void type should not be converted to pointer to object type 'struct fdt_header *' |
MISRAC2012-RULE_11_5-a-4 |
|
263: |
#undef directive is being used to undefine 'fdt_set_hdr_' macro |
MISRAC2012-RULE_20_5-a-4 |
|
270: |
The names of the identifiers 'fdt_header_size' and 'fdt_header_size_' (line: 269 in the 'libfdt.h' file) differ only in the
presence/absence of the underscore character
|
MISRAC2012-DIR_4_5-a-4 |
|
272: |
Pointer to void type should not be converted to pointer to object type 'const struct fdt_header *' |
MISRAC2012-RULE_11_5-a-4 |
|
292: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
313: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
313: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
319: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
335: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
335: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
349: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
363: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
383: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
386: |
Conditional statement 'if' in a function 'fdt_get_max_phandle' should be followed by a block |
MISRAC2012-RULE_15_6-b-2 |
|
387: |
Provide only one exit point in 'fdt_get_max_phandle' function |
MISRAC2012-RULE_15_5-a-4 |
|
389: |
Provide only one exit point in 'fdt_get_max_phandle' function |
MISRAC2012-RULE_15_5-a-4 |
|
405: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
418: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
435: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
435: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
450: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
450: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
451: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
477: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
477: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
489: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
489: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
515: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
540: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
540: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
560: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
560: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
581: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
581: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
583: |
Section of code should not be 'commented out' |
MISRAC2012-DIR_4_4-a-4 |
|
605: |
Do not define function-like macro: fdt_for_each_property_offset |
MISRAC2012-DIR_4_9-a-4 |
|
606: |
Each instance of parameter: 'fdt' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
606: |
Each instance of parameter: 'node' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
606: |
Each instance of parameter: 'property' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
607: |
Each instance of parameter: 'property' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
608: |
Each instance of parameter: 'fdt' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
608: |
Each instance of parameter: 'property' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
608: |
Each instance of parameter: 'property' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
638: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
639: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
654: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
656: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
656: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
687: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
688: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
689: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
691: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
693: |
Integral type 'unsigned long' should not be converted to pointer to object type 'struct fdt_property *' |
MISRAC2012-RULE_11_4-a-4 |
|
693: |
Pointer to object type 'const struct fdt_property *' should not be converted to integral type 'unsigned long' |
MISRAC2012-RULE_11_4-a-4 |
|
729: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
730: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
745: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
746: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
746: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
747: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
748: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
749: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
751: |
Arithmetic type 'unsigned long' should not be converted to pointer to void type |
MISRAC2012-RULE_11_6-a-2 |
|
751: |
Pointer to void type should not be converted to arithmetic type 'unsigned long' |
MISRAC2012-RULE_11_6-a-2 |
|
784: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
785: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
786: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
787: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
789: |
Arithmetic type 'unsigned long' should not be converted to pointer to void type |
MISRAC2012-RULE_11_6-a-2 |
|
789: |
Pointer to void type should not be converted to arithmetic type 'unsigned long' |
MISRAC2012-RULE_11_6-a-2 |
|
804: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
817: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
859: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
859: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
859: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
861: |
Section of code should not be 'commented out' |
MISRAC2012-DIR_4_4-a-4 |
|
891: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
891: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
892: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
892: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
913: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
913: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
936: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
936: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
938: |
Do not embed "//" comment marker inside C-style comment: /** * fdt_node_offset_by_prop_value - find nodes with a given property
value * @fdt: pointer to the device tree blob * @startoffset: only find nodes after this offset * @propname: property name
to check * @propval: property value to search for * @proplen: length of the value in propval * * fdt_node_offset_by_prop_value()
returns the offset of the first * node after startoffset, which has a property named propname whose * value is of length proplen
and has value equal to propval; or if * startoffset is -1, the very first such node in the tree. * * To iterate through all
nodes matching the criterion, the following * idiom can be used: * offset = fdt_node_offset_by_prop_value(fdt, -1, propname,
* propval, proplen); * while (offset != -FDT_ERR_NOTFOUND) { * // other code here * offset = fdt_node_offset_by_prop_value(fdt,
offset, propname, * propval, proplen); * } * * Note the -1 in the first call to the function, if 0 is used here
* instead, the function will never locate the root node, even if it * matches the criterion. * * returns: * structure block
offset of the located node (>= 0, >startoffset), * on success * -FDT_ERR_NOTFOUND, no node matching the criterion exists
in the * tree after startoffset * -FDT_ERR_BADOFFSET, nodeoffset does not refer to a BEGIN_NODE tag * -FDT_ERR_BADMAGIC,
* -FDT_ERR_BADVERSION, * -FDT_ERR_BADSTATE, * -FDT_ERR_BADSTRUCTURE, standard meanings */
|
MISRAC2012-RULE_3_1-b-2 |
|
938: |
Section of code should not be 'commented out' |
MISRAC2012-DIR_4_4-a-4 |
|
976: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
976: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
978: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
999: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
1023: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
1023: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
1026: |
Do not embed "//" comment marker inside C-style comment: /** * fdt_node_offset_by_compatible - find nodes with a given 'compatible'
value * @fdt: pointer to the device tree blob * @startoffset: only find nodes after this offset * @compatible: 'compatible'
string to match against * * fdt_node_offset_by_compatible() returns the offset of the first * node after startoffset, which
has a 'compatible' property which * lists the given compatible string; or if startoffset is -1, the * very first such node
in the tree. * * To iterate through all nodes matching the criterion, the following * idiom can be used: * offset = fdt_node_offset_by_compatible(fdt,
-1, compatible); * while (offset != -FDT_ERR_NOTFOUND) { * // other code here * offset = fdt_node_offset_by_compatible(fdt,
offset, compatible); * } * * Note the -1 in the first call to the function, if 0 is used here * instead, the function will
never locate the root node, even if it * matches the criterion. * * returns: * structure block offset of the located node
(>= 0, >startoffset), * on success * -FDT_ERR_NOTFOUND, no node matching the criterion exists in the * tree after startoffset
* -FDT_ERR_BADOFFSET, nodeoffset does not refer to a BEGIN_NODE tag * -FDT_ERR_BADMAGIC, * -FDT_ERR_BADVERSION, * -FDT_ERR_BADSTATE,
* -FDT_ERR_BADSTRUCTURE, standard meanings */
|
MISRAC2012-RULE_3_1-b-2 |
|
1026: |
Section of code should not be 'commented out' |
MISRAC2012-DIR_4_4-a-4 |
|
1060: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
1060: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
1075: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
1075: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
1087: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
1087: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
1108: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
1108: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
1135: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
1136: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
1137: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
1172: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
1172: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
1193: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
1193: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
1217: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
1217: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
1218: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
1220: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
1252: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
1252: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
1253: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
1284: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
1284: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
1288: |
The argument number '5' ('essentially unsigned' type) is passed to the function 'fdt_setprop_inplace' as a parameter with
the 'essentially signed' type
|
MISRAC2012-RULE_10_3-b-2 |
|
1319: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
1319: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
1323: |
The argument number '5' ('essentially unsigned' type) is passed to the function 'fdt_setprop_inplace' as a parameter with
the 'essentially signed' type
|
MISRAC2012-RULE_10_3-b-2 |
|
1331: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
1331: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
1361: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
1361: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
1385: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
1385: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
1415: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
1415: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
1428: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
1428: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
1430: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
1430: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
1431: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
1432: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
1433: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
1434: |
A tag name 'fdt_property' is reused |
MISRAC2012-RULE_5_7-a-2 |
|
1434: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
1434: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
1435: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
1438: |
The argument number '4' ('essentially unsigned' type) is passed to the function 'fdt_property' as a parameter with the 'essentially
signed' type
|
MISRAC2012-RULE_10_3-b-2 |
|
1440: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
1443: |
The argument number '4' ('essentially unsigned' type) is passed to the function 'fdt_property' as a parameter with the 'essentially
signed' type
|
MISRAC2012-RULE_10_3-b-2 |
|
1447: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
1466: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
1466: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
1468: |
Do not define function-like macro: fdt_property_string |
MISRAC2012-DIR_4_9-a-4 |
|
1469: |
Each instance of parameter: 'fdt' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
1469: |
Each instance of parameter: 'name' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
1469: |
Each instance of parameter: 'str' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
1470: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
1471: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
1477: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
1477: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
1478: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
1478: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
1479: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
1503: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
1527: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
1527: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
1553: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
1553: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
1583: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
1583: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
1584: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
1614: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
1614: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
1615: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
1645: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
1645: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
1649: |
The argument number '5' ('essentially unsigned' type) is passed to the function 'fdt_setprop' as a parameter with the 'essentially
signed' type
|
MISRAC2012-RULE_10_3-b-2 |
|
1680: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
1680: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
1684: |
The argument number '5' ('essentially unsigned' type) is passed to the function 'fdt_setprop' as a parameter with the 'essentially
signed' type
|
MISRAC2012-RULE_10_3-b-2 |
|
1692: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
1692: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
1726: |
Do not define function-like macro: fdt_setprop_string |
MISRAC2012-DIR_4_9-a-4 |
|
1756: |
Do not define function-like macro: fdt_setprop_empty |
MISRAC2012-DIR_4_9-a-4 |
|
1786: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
1786: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
1787: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
1817: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
1817: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
1821: |
The argument number '5' ('essentially unsigned' type) is passed to the function 'fdt_appendprop' as a parameter with the 'essentially
signed' type
|
MISRAC2012-RULE_10_3-b-2 |
|
1852: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
1852: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
1856: |
The argument number '5' ('essentially unsigned' type) is passed to the function 'fdt_appendprop' as a parameter with the 'essentially
signed' type
|
MISRAC2012-RULE_10_3-b-2 |
|
1864: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
1864: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
1897: |
Do not define function-like macro: fdt_appendprop_string |
MISRAC2012-DIR_4_9-a-4 |
|
1934: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
1934: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
1934: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
1959: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
1959: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
1974: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
1974: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
1975: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
2009: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
2009: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
2032: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
2032: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
2063: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
|
2069: |
The basic numerical type 'int' should not be used |
MISRAC2012-DIR_4_6-b-4 |
| /optee_os_MISRA/optee_os_ruchi393_core/lib/libfdt/include/libfdt_env.h |
|
29: |
Do not define function-like macro: EXTRACT_BYTE |
MISRAC2012-DIR_4_9-a-4 |
|
29: |
Each instance of parameter: 'n' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
29: |
Each instance of parameter: 'x' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
30: |
Do not define function-like macro: CPU_TO_FDT16 |
MISRAC2012-DIR_4_9-a-4 |
|
30: |
Each instance of parameter: 'x' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
30: |
Each instance of parameter: 'x' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
31: |
Do not define function-like macro: CPU_TO_FDT32 |
MISRAC2012-DIR_4_9-a-4 |
|
31: |
Each instance of parameter: 'x' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
31: |
Each instance of parameter: 'x' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
32: |
Each instance of parameter: 'x' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
32: |
Each instance of parameter: 'x' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
33: |
Do not define function-like macro: CPU_TO_FDT64 |
MISRAC2012-DIR_4_9-a-4 |
|
33: |
Each instance of parameter: 'x' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
33: |
Each instance of parameter: 'x' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
34: |
Each instance of parameter: 'x' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
34: |
Each instance of parameter: 'x' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
35: |
Each instance of parameter: 'x' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
35: |
Each instance of parameter: 'x' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
36: |
Each instance of parameter: 'x' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
36: |
Each instance of parameter: 'x' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
64: |
#undef directive is being used to undefine 'CPU_TO_FDT64' macro |
MISRAC2012-RULE_20_5-a-4 |
|
65: |
#undef directive is being used to undefine 'CPU_TO_FDT32' macro |
MISRAC2012-RULE_20_5-a-4 |
|
66: |
#undef directive is being used to undefine 'CPU_TO_FDT16' macro |
MISRAC2012-RULE_20_5-a-4 |
|
67: |
#undef directive is being used to undefine 'EXTRACT_BYTE' macro |
MISRAC2012-RULE_20_5-a-4 |
|
70: |
#include statements are not grouped properly. This is the last #include in file. Some statements are in line 25 |
MISRAC2012-RULE_20_1-a-4 |
|
73: |
Macro might be not defined: MAC_OS_X_VERSION_MAX_ALLOWED |
MISRAC2012-RULE_20_9-b-2 |
|
74: |
Macro might be not defined: MAC_OS_X_VERSION_10_7 |
MISRAC2012-RULE_20_9-b-2 |
| /optee_os_MISRA/optee_os_ruchi393_core/lib/libfdt/libfdt_internal.h |
|
10: |
Do not define function-like macro: FDT_ALIGN |
MISRAC2012-DIR_4_9-a-4 |
|
11: |
Do not define function-like macro: FDT_TAGALIGN |
MISRAC2012-DIR_4_9-a-4 |
|
14: |
Do not define function-like macro: FDT_RO_PROBE |
MISRAC2012-DIR_4_9-a-4 |
|
26: |
The names of the identifiers 'fdt_offset_ptr_' and 'fdt_offset_ptr' (line: 111 in the 'libfdt.h' file) differ only in the
presence/absence of the underscore character
|
MISRAC2012-DIR_4_5-a-4 |
|
28: |
Pointer to void type should not be converted to pointer to object type 'const char *' |
MISRAC2012-RULE_11_5-a-4 |
|
28: |
Pointer to void type should not be converted to pointer to object type 'const struct fdt_header *' |
MISRAC2012-RULE_11_5-a-4 |
|
28: |
The left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
31: |
The names of the identifiers 'fdt_offset_ptr_w_' and 'fdt_offset_ptr_w' (line: 113 in the 'libfdt.h' file) differ only in
the presence/absence of the underscore character
|
MISRAC2012-DIR_4_5-a-4 |
|
33: |
Arithmetic type 'unsigned long' should not be converted to pointer to void type |
MISRAC2012-RULE_11_6-a-2 |
|
33: |
Pointer to void type should not be converted to arithmetic type 'unsigned long' |
MISRAC2012-RULE_11_6-a-2 |
|
39: |
Pointer to object type 'const char *' is cast to pointer to different object type 'const struct fdt_reserve_entry *' |
MISRAC2012-RULE_11_3-a-2 |
|
40: |
Pointer to void type should not be converted to pointer to object type 'const char *' |
MISRAC2012-RULE_11_5-a-4 |
|
40: |
Pointer to void type should not be converted to pointer to object type 'const struct fdt_header *' |
MISRAC2012-RULE_11_5-a-4 |
|
40: |
The left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
42: |
The variable 'rsv_table' used as the left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
46: |
Arithmetic type 'unsigned long' should not be converted to pointer to void type |
MISRAC2012-RULE_11_6-a-2 |
|
46: |
Pointer to object type 'const struct fdt_reserve_entry *' should not be converted to integral type 'unsigned long' |
MISRAC2012-RULE_11_4-a-4 |
|
46: |
Pointer to void type should not be converted to pointer to object type 'struct fdt_reserve_entry *' in function's return |
MISRAC2012-RULE_11_5-a-4 |
| /optee_os_MISRA/optee_os_ruchi393_core/mm/file.c |
|
59: |
'for' statement in a function 'file_find_tag_unlocked' should be followed by a block |
MISRAC2012-RULE_15_6-a-2 |
|
59: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
60: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
75: |
'free' function should not be used |
MISRAC2012-RULE_21_3-a-2 |
|
75: |
'free' function should not be used |
MISRAC2012-DIR_4_12-a-2 |
|
78: |
'free' function should not be used |
MISRAC2012-RULE_21_3-a-2 |
|
78: |
'free' function should not be used |
MISRAC2012-DIR_4_12-a-2 |
|
81: |
A tag name 'fobj' is reused |
MISRAC2012-RULE_5_7-a-2 |
|
81: |
Identifier 'fobj' is hiding an identifier from global or namespace scope |
MISRAC2012-RULE_5_3-a-2 |
|
88: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
89: |
Integer constant '0xFFFF0006' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
91: |
'calloc' function should not be used |
MISRAC2012-RULE_21_3-a-2 |
|
91: |
'calloc' function should not be used |
MISRAC2012-DIR_4_12-a-2 |
|
91: |
Pointer to void type should not be converted to pointer to object type 'struct file_slice_elem *' |
MISRAC2012-RULE_11_5-a-4 |
|
92: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
93: |
Integer constant '0xFFFF000C' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
96: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
96: |
The operands of a logical '||' in function 'file_add_slice' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
97: |
The operands of a logical '||' in function 'file_add_slice' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
99: |
'free' function should not be used |
MISRAC2012-RULE_21_3-a-2 |
|
99: |
'free' function should not be used |
MISRAC2012-DIR_4_12-a-2 |
|
100: |
Integer constant '0xFFFF0006' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
111: |
The left hand operand of the logical operator '&&' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
111: |
The operands of a logical '&&' in function 'file_get' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
148: |
The left hand operand of the logical operator '&&' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
148: |
The operands of a logical '&&' in function 'file_get_by_tag' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
149: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
151: |
'calloc' function should not be used |
MISRAC2012-RULE_21_3-a-2 |
|
151: |
'calloc' function should not be used |
MISRAC2012-DIR_4_12-a-2 |
|
151: |
Pointer to void type should not be converted to pointer to object type 'struct file *' |
MISRAC2012-RULE_11_5-a-4 |
|
152: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
153: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
154: |
Unused function's "memcpy" return value |
MISRAC2012-RULE_17_7-a-2 |
|
159: |
Assignment operator '=' is used in improper context |
MISRAC2012-RULE_13_4-a-4 |
|
169: |
The left hand operand of the logical operator '&&' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
169: |
The operands of a logical '&&' in function 'file_put' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
183: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
185: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
188: |
The operands of a logical '&&' in function 'file_find_slice' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
189: |
The operands of a logical '&&' in function 'file_find_slice' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
189: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
| /optee_os_MISRA/optee_os_ruchi393_core/mm/fobj.c |
|
78: |
Potential macro 'TAILQ_EMPTY' used as '1' parameter of potential macro 'assert' |
MISRAC2012-RULE_20_12-a-2 |
|
207: |
Potential macro 'TAILQ_EMPTY' used as '1' parameter of potential macro 'assert' |
MISRAC2012-RULE_20_12-a-2 |
|
313: |
Potential macro 'TAILQ_EMPTY' used as '1' parameter of potential macro 'assert' |
MISRAC2012-RULE_20_12-a-2 |
|
366: |
Potential macro 'SMALL_PAGE_SIZE' used as '1' parameter of potential macro 'assert' |
MISRAC2012-RULE_20_12-a-2 |
|
534: |
Potential macro 'ALIGNMENT_IS_OK' used as '1' parameter of potential macro 'assert' |
MISRAC2012-RULE_20_12-a-2 |
|
586: |
Potential macro 'ALIGNMENT_IS_OK' used as '1' parameter of potential macro 'assert' |
MISRAC2012-RULE_20_12-a-2 |
|
587: |
Potential macro 'ALIGNMENT_IS_OK' used as '1' parameter of potential macro 'assert' |
MISRAC2012-RULE_20_12-a-2 |
|
721: |
A tag name 'fobj' is reused |
MISRAC2012-RULE_5_7-a-2 |
|
728: |
'calloc' function should not be used |
MISRAC2012-RULE_21_3-a-2 |
|
728: |
'calloc' function should not be used |
MISRAC2012-DIR_4_12-a-2 |
|
728: |
Pointer to void type should not be converted to pointer to object type 'struct fobj_sec_mem *' |
MISRAC2012-RULE_11_5-a-4 |
|
732: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
735: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
736: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
739: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
740: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
743: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
744: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
746: |
Unused function's "memset" return value |
MISRAC2012-RULE_17_7-a-2 |
|
754: |
'free' function should not be used |
MISRAC2012-RULE_21_3-a-2 |
|
754: |
'free' function should not be used |
MISRAC2012-DIR_4_12-a-2 |
|
759: |
A tag name 'fobj' is reused |
MISRAC2012-RULE_5_7-a-2 |
|
759: |
Identifier 'fobj' is hiding an identifier from global or namespace scope |
MISRAC2012-RULE_5_3-a-2 |
|
759: |
Pass parameter "fobj" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
763: |
Integral type 'unsigned long' should not be converted to pointer to object type 'struct fobj_sec_mem *' |
MISRAC2012-RULE_11_4-a-4 |
|
763: |
Pointer to object type 'const struct fobj *' should not be converted to integral type 'unsigned long' |
MISRAC2012-RULE_11_4-a-4 |
|
763: |
Reserved name '__ptr' used |
MISRAC2012-RULE_21_2-a-2 |
|
766: |
A tag name 'fobj' is reused |
MISRAC2012-RULE_5_7-a-2 |
|
766: |
Identifier 'fobj' is hiding an identifier from global or namespace scope |
MISRAC2012-RULE_5_3-a-2 |
|
770: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
772: |
'free' function should not be used |
MISRAC2012-RULE_21_3-a-2 |
|
772: |
'free' function should not be used |
MISRAC2012-DIR_4_12-a-2 |
|
775: |
A tag name 'fobj' is reused |
MISRAC2012-RULE_5_7-a-2 |
|
775: |
Identifier 'fobj' is hiding an identifier from global or namespace scope |
MISRAC2012-RULE_5_3-a-2 |
|
779: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
782: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
782: |
Essential type of LHS operand (64 bit) is wider than essential type of composite expression in RHS operand (32 bit) |
MISRAC2012-RULE_10_7-a-2 |
|
782: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
785: |
Identifier 'ops_sec_mem' is being reused |
MISRAC2012-RULE_5_9-b-4 |
| /optee_os_MISRA/optee_os_ruchi393_core/mm/vm.c |
|
38: |
An unused macro declaration 'TEE_MMU_UDATA_ATTR' has been found |
MISRAC2012-RULE_2_5-a-4 |
|
41: |
An unused macro declaration 'TEE_MMU_UCODE_ATTR' has been found |
MISRAC2012-RULE_2_5-a-4 |
|
45: |
An unused macro declaration 'TEE_MMU_UCACHE_DEFAULT_ATTR' has been found |
MISRAC2012-RULE_2_5-a-4 |
|
65: |
The left hand operand of the logical operator '&&' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
65: |
The operands of a logical '&&' in function 'select_va_in_range' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
66: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
76: |
Do not use expressions with side effects in the right-hand operand of a logical '||' operator |
MISRAC2012-RULE_13_5-a-2 |
|
76: |
The operands of a logical '||' in function 'select_va_in_range' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
77: |
The operands of a logical '||' in function 'select_va_in_range' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
78: |
The operands of a logical '||' in function 'select_va_in_range' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
79: |
Assignment operator '=' is used in improper context |
MISRAC2012-RULE_13_4-a-4 |
|
79: |
Disallowed comma operator is used in function 'select_va_in_range' |
MISRAC2012-RULE_12_3-a-4 |
|
79: |
Reserved name '__roundup_mask' used |
MISRAC2012-RULE_21_2-a-2 |
|
79: |
Reserved name '__roundup_tmp' used |
MISRAC2012-RULE_21_2-a-2 |
|
79: |
Unused function's "__builtin_add_overflow" return value |
MISRAC2012-RULE_17_7-b-2 |
|
82: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
88: |
The left hand operand of the logical operator '&&' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
88: |
The operands of a logical '&&' in function 'select_va_in_range' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
89: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
98: |
Do not use expressions with side effects in the right-hand operand of a logical '||' operator |
MISRAC2012-RULE_13_5-a-2 |
|
98: |
The operands of a logical '||' in function 'select_va_in_range' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
99: |
The operands of a logical '||' in function 'select_va_in_range' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
100: |
The operands of a logical '||' in function 'select_va_in_range' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
101: |
Assignment operator '=' is used in improper context |
MISRAC2012-RULE_13_4-a-4 |
|
101: |
Disallowed comma operator is used in function 'select_va_in_range' |
MISRAC2012-RULE_12_3-a-4 |
|
101: |
Reserved name '__roundup_mask' used |
MISRAC2012-RULE_21_2-a-2 |
|
101: |
Reserved name '__roundup_tmp' used |
MISRAC2012-RULE_21_2-a-2 |
|
101: |
Unused function's "__builtin_add_overflow" return value |
MISRAC2012-RULE_17_7-b-2 |
|
105: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
105: |
The operands of a logical '||' in function 'select_va_in_range' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
105: |
The operands of a logical '||' in function 'select_va_in_range' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
113: |
The names of the identifiers 'end' and '__end' (line: 80 in the 'linker.h' file) differ only in the presence/absence of the
underscore character
|
MISRAC2012-DIR_4_5-a-4 |
|
125: |
Pointer to object type 'struct vm_region **' is cast to pointer to different object type 'struct vm_region_head *' |
MISRAC2012-RULE_11_3-a-2 |
|
127: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
128: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
128: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
131: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
133: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
| +
|
140: |
Value of "tsd" is never used |
MISRAC2012-RULE_2_2-b-2 |
| |
|
Point where value is declared
Point where value is declared
vm.c (140): struct thread_specific_data *tsd __maybe_unused; |
|
|
148: |
Integer constant '0xFFFF000C' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
168: |
A tag name 'pgt_cache' is reused |
MISRAC2012-RULE_5_7-a-2 |
|
168: |
Identifier 'pgt_cache' is hiding an identifier from global or namespace scope |
MISRAC2012-RULE_5_3-a-2 |
|
169: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
170: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
181: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
186: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
187: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
187: |
Reserved name '_a' used |
MISRAC2012-RULE_21_2-a-2 |
|
187: |
Reserved name '_b' used |
MISRAC2012-RULE_21_2-a-2 |
|
187: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
189: |
Pointer to object type 'struct vm_region **' is cast to pointer to different object type 'struct vm_region_head *' |
MISRAC2012-RULE_11_3-a-2 |
|
190: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
191: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
191: |
Reserved name '_a' used |
MISRAC2012-RULE_21_2-a-2 |
|
191: |
Reserved name '_b' used |
MISRAC2012-RULE_21_2-a-2 |
|
191: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
220: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
220: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
221: |
Integer constant '0xFFFF0003' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
225: |
Integer constant '0xFFFF0006' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
226: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
227: |
Integer constant '0xFFFF0006' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
229: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
229: |
Reserved name '_a' used |
MISRAC2012-RULE_21_2-a-2 |
|
229: |
Reserved name '_b' used |
MISRAC2012-RULE_21_2-a-2 |
|
229: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
231: |
Integer constant '0xFFFF0006' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
234: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
237: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
245: |
Pointer to object type 'struct vm_region **' is cast to pointer to different object type 'struct vm_region_head *' |
MISRAC2012-RULE_11_3-a-2 |
|
246: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
250: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
256: |
Integer constant '0xFFFF0003' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
260: |
A tag name 'mobj' is reused |
MISRAC2012-RULE_5_7-a-2 |
|
260: |
Identifier 'mobj' is hiding an identifier from global or namespace scope |
MISRAC2012-RULE_5_3-a-2 |
|
268: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
268: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
269: |
Integer constant '0xFFFF0006' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
271: |
'calloc' function should not be used |
MISRAC2012-RULE_21_3-a-2 |
|
271: |
'calloc' function should not be used |
MISRAC2012-DIR_4_12-a-2 |
|
271: |
Pointer to void type should not be converted to pointer to object type 'struct vm_region *' |
MISRAC2012-RULE_11_5-a-4 |
|
272: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
273: |
Integer constant '0xFFFF000C' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
279: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
280: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
285: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
290: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
291: |
The expression of the 'unsigned int' essential type (4 byte) is assigned to an object with a narrower essential type (2 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
292: |
The expression of the 'unsigned int' essential type (4 byte) is assigned to an object with a narrower essential type (2 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
295: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
296: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
299: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
300: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
303: |
A tag name 'fobj' is reused |
MISRAC2012-RULE_5_7-a-2 |
|
303: |
Identifier 'fobj' is hiding an identifier from global or namespace scope |
MISRAC2012-RULE_5_3-a-2 |
|
305: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
306: |
Integer constant '0xFFFF0000' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
307: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
312: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
313: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
331: |
'free' function should not be used |
MISRAC2012-RULE_21_3-a-2 |
|
331: |
'free' function should not be used |
MISRAC2012-DIR_4_12-a-2 |
|
335: |
A tag name 'vm_info' is reused |
MISRAC2012-RULE_5_7-a-2 |
|
335: |
Identifier 'vm_info' is hiding an identifier from global or namespace scope |
MISRAC2012-RULE_5_3-a-2 |
|
339: |
'for' statement in a function 'find_vm_region' should be followed by a block |
MISRAC2012-RULE_15_6-a-2 |
|
339: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
340: |
The operands of a logical '&&' in function 'find_vm_region' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
340: |
The operands of a logical '&&' in function 'find_vm_region' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
340: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
364: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
368: |
The left hand operand of the logical operator '&&' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
368: |
The operands of a logical '&&' in function 'va_range_is_contiguous' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
380: |
The left hand operand of the logical operator '&&' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
380: |
The operands of a logical '&&' in function 'split_vm_region' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
382: |
'calloc' function should not be used |
MISRAC2012-RULE_21_3-a-2 |
|
382: |
'calloc' function should not be used |
MISRAC2012-DIR_4_12-a-2 |
|
382: |
Pointer to void type should not be converted to pointer to object type 'struct vm_region *' |
MISRAC2012-RULE_11_5-a-4 |
|
383: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
384: |
Integer constant '0xFFFF000C' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
389: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
390: |
'free' function should not be used |
MISRAC2012-RULE_21_3-a-2 |
|
390: |
'free' function should not be used |
MISRAC2012-DIR_4_12-a-2 |
|
404: |
Assignment operator '=' is used in improper context |
MISRAC2012-RULE_13_4-a-4 |
|
420: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
420: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
421: |
Integer constant '0xFFFF0006' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
424: |
Integer constant '0xFFFF0006' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
431: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
431: |
The operands of a logical '||' in function 'split_vm_range' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
431: |
The operands of a logical '||' in function 'split_vm_range' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
432: |
Integer constant '0xFFFF0006' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
440: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
446: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
447: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
448: |
Integer constant '0xFFFF0006' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
449: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
451: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
469: |
Improper expression is used in the first clause of a 'for' statement |
MISRAC2012-RULE_14_2-b-2 |
|
469: |
The second clause of a 'for' statement does not contain a loop counter |
MISRAC2012-RULE_14_2-c-2 |
|
469: |
The third clause of a 'for' statement contains an expression with a persistent side effect other than modification of a loop
counter
|
MISRAC2012-RULE_14_2-d-2 |
|
471: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
475: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
486: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
488: |
The operands of a logical '||' in function 'merge_vm_range' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
489: |
The operands of a logical '||' in function 'merge_vm_range' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
490: |
The operands of a logical '||' in function 'merge_vm_range' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
492: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
498: |
'free' function should not be used |
MISRAC2012-RULE_21_3-a-2 |
|
498: |
'free' function should not be used |
MISRAC2012-DIR_4_12-a-2 |
|
514: |
The operands of a logical '&&' in function 'cmp_region_for_remap' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
514: |
The operands of a logical '&&' in function 'cmp_region_for_remap' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
515: |
The operands of a logical '&&' in function 'cmp_region_for_remap' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
515: |
The operands of a logical '&&' in function 'cmp_region_for_remap' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
515: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
518: |
Value 37 is out of acceptable range: 'lower than 30' |
METRIC.CC-3 |
|
528: |
A tag name 'fobj' is reused |
MISRAC2012-RULE_5_7-a-2 |
|
528: |
Identifier 'fobj' is hiding an identifier from global or namespace scope |
MISRAC2012-RULE_5_3-a-2 |
|
533: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
533: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
533: |
The operands of a logical '||' in function 'vm_remap' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
533: |
The right hand operand of the logical operator '||' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
534: |
Integer constant '0xFFFF0006' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
537: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
542: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
546: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
546: |
The third clause of a 'for' statement contains an object that is modified in the 'for' loop body |
MISRAC2012-RULE_14_2-d-2 |
|
547: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
547: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
565: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
571: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
573: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
575: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
577: |
The left hand operand of the logical operator '&&' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
577: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
577: |
The operands of a logical '&&' in function 'vm_remap' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
580: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
593: |
Assignment operator '=' is used in improper context |
MISRAC2012-RULE_13_4-a-4 |
|
595: |
The left hand operand of the logical operator '&&' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
595: |
The operands of a logical '&&' in function 'vm_remap' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
595: |
The third clause of a 'for' statement contains an object that is modified in the 'for' loop body |
MISRAC2012-RULE_14_2-d-2 |
|
598: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
599: |
Assignment operator '=' is used in improper context |
MISRAC2012-RULE_13_4-a-4 |
|
602: |
Assignment operator '=' is used in improper context |
MISRAC2012-RULE_13_4-a-4 |
|
606: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
624: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
626: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
628: |
The left hand operand of the logical operator '&&' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
628: |
The operands of a logical '&&' in function 'vm_remap' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
628: |
The right hand operand of the logical operator '&&' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
639: |
Parameter 'rn' is not used in function 'cmp_region_for_get_flags' |
MISRAC2012-RULE_2_7-a-4 |
|
649: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
649: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
649: |
The operands of a logical '||' in function 'vm_get_flags' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
649: |
The right hand operand of the logical operator '||' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
650: |
Integer constant '0xFFFF0006' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
653: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
654: |
Integer constant '0xFFFF0006' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
657: |
Integer constant '0xFFFF0006' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
666: |
Parameter 'rn' is not used in function 'cmp_region_for_get_prot' |
MISRAC2012-RULE_2_7-a-4 |
|
668: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
669: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
677: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
677: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
677: |
The operands of a logical '||' in function 'vm_get_prot' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
677: |
The right hand operand of the logical operator '||' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
678: |
Integer constant '0xFFFF0006' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
681: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
682: |
Integer constant '0xFFFF0006' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
685: |
Integer constant '0xFFFF0006' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
687: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
703: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
703: |
The left hand operand of the logical operator '||' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
703: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
703: |
The operands of a logical '||' in function 'vm_set_prot' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
703: |
The operands of a logical '||' in function 'vm_set_prot' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
704: |
Integer constant '0xFFFF0006' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
707: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
710: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
711: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
711: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
713: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
713: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
719: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
720: |
The expression of the 'unsigned int' essential type (4 byte) is assigned to an object with a narrower essential type (2 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
728: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
729: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
729: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
735: |
Provide 'else' after the last 'else-if' construct |
MISRAC2012-RULE_15_7-a-2 |
|
736: |
Arithmetic type 'unsigned long' should not be converted to pointer to void type |
MISRAC2012-RULE_11_6-a-2 |
|
736: |
Unused function's "cache_op_inner" return value |
MISRAC2012-RULE_17_7-a-2 |
|
742: |
Unused function's "cache_op_inner" return value |
MISRAC2012-RULE_17_7-a-2 |
|
753: |
'free' function should not be used |
MISRAC2012-RULE_21_3-a-2 |
|
753: |
'free' function should not be used |
MISRAC2012-DIR_4_12-a-2 |
|
767: |
Assignment operator '=' is used in improper context |
MISRAC2012-RULE_13_4-a-4 |
|
767: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
767: |
Disallowed comma operator is used in function 'vm_unmap' |
MISRAC2012-RULE_12_3-a-4 |
|
767: |
Reserved name '__roundup_mask' used |
MISRAC2012-RULE_21_2-a-2 |
|
767: |
Reserved name '__roundup_tmp' used |
MISRAC2012-RULE_21_2-a-2 |
|
767: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
767: |
Unused function's "__builtin_add_overflow" return value |
MISRAC2012-RULE_17_7-b-2 |
|
768: |
Integer constant '0xFFFF0006' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
770: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
770: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
770: |
The operands of a logical '||' in function 'vm_unmap' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
770: |
The right hand operand of the logical operator '||' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
771: |
Integer constant '0xFFFF0006' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
774: |
Integer constant '0xFFFF0006' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
777: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
785: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
785: |
The operands of a logical '||' in function 'vm_unmap' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
785: |
The operands of a logical '||' in function 'vm_unmap' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
796: |
A tag name 'mobj' is reused |
MISRAC2012-RULE_5_7-a-2 |
|
796: |
Identifier 'mobj' is hiding an identifier from global or namespace scope |
MISRAC2012-RULE_5_3-a-2 |
|
802: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
805: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
810: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
822: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
824: |
Integer constant '0xFFFF0000' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
827: |
Unused function's "memset" return value |
MISRAC2012-RULE_17_7-a-2 |
|
832: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
842: |
Assignment operator '=' is used in improper context |
MISRAC2012-RULE_13_4-a-4 |
|
842: |
Disallowed comma operator is used in function 'vm_clean_param' |
MISRAC2012-RULE_12_3-a-4 |
|
842: |
Do not use expressions with side effects in the right-hand operand of a logical '&&' operator |
MISRAC2012-RULE_13_5-a-2 |
|
842: |
The operands of a logical '&&' in function 'vm_clean_param' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
842: |
The second clause of a 'for' statement contains an expression that has a persistent side effect |
MISRAC2012-RULE_14_2-c-2 |
|
843: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
850: |
Pass parameter "uctx" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
854: |
'for' statement in a function 'check_param_map_empty' should be followed by a block |
MISRAC2012-RULE_15_6-a-2 |
|
854: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
855: |
Potential macro 'VM_FLAG_EPHEMERAL' used as '1' parameter of potential macro 'assert' |
MISRAC2012-RULE_20_12-a-2 |
|
855: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
858: |
Pass parameter "uctx" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
863: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
867: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
873: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
879: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
880: |
Arithmetic type 'unsigned long' should not be converted to pointer to void type |
MISRAC2012-RULE_11_6-a-2 |
|
883: |
Integer constant '0xFFFF0000' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
888: |
Pointer to void type should not be converted to pointer to object type 'const struct param_mem *' |
MISRAC2012-RULE_11_5-a-4 |
|
889: |
Pointer to void type should not be converted to pointer to object type 'const struct param_mem *' |
MISRAC2012-RULE_11_5-a-4 |
|
893: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
893: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
893: |
The operands of a logical '&&' in function 'cmp_param_mem' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
893: |
The operands of a logical '&&' in function 'cmp_param_mem' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
895: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
897: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
900: |
Reserved name '_a' used |
MISRAC2012-RULE_21_2-a-2 |
|
900: |
Reserved name '_b' used |
MISRAC2012-RULE_21_2-a-2 |
|
900: |
The left hand operand of the '<' operator has essentially Boolean type |
MISRAC2012-RULE_10_1-b-2 |
|
900: |
The left hand operand of the '>' operator has essentially Boolean type |
MISRAC2012-RULE_10_1-b-2 |
|
900: |
The right hand operand of the '<' operator has essentially Boolean type |
MISRAC2012-RULE_10_1-b-2 |
|
900: |
The right hand operand of the '>' operator has essentially Boolean type |
MISRAC2012-RULE_10_1-b-2 |
|
900: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
901: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
904: |
Pointer to object type 'struct mobj *' should not be converted to integral type 'unsigned long' |
MISRAC2012-RULE_11_4-a-4 |
|
904: |
Reserved name '_a' used |
MISRAC2012-RULE_21_2-a-2 |
|
904: |
Reserved name '_b' used |
MISRAC2012-RULE_21_2-a-2 |
|
904: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
905: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
908: |
Reserved name '_a' used |
MISRAC2012-RULE_21_2-a-2 |
|
908: |
Reserved name '_b' used |
MISRAC2012-RULE_21_2-a-2 |
|
908: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
909: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
912: |
Reserved name '_a' used |
MISRAC2012-RULE_21_2-a-2 |
|
912: |
Reserved name '_b' used |
MISRAC2012-RULE_21_2-a-2 |
|
912: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
923: |
Unused function's "memset" return value |
MISRAC2012-RULE_17_7-a-2 |
|
925: |
Shifting operation should be enclosed with if checking that RHS operand does not exceed the upper limit (one less than the
width in bits of the underlying type of the LHS operand)
|
MISRAC2012-RULE_12_2-a-2 |
|
925: |
The right hand operand of the '&' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
928: |
The operands of a logical '&&' in function 'vm_map_param' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
929: |
The operands of a logical '&&' in function 'vm_map_param' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
930: |
The operands of a logical '&&' in function 'vm_map_param' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
933: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
935: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
937: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
937: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
944: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
945: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
956: |
Usage of 'qsort' function is not allowed |
MISRAC2012-RULE_21_9-a-2 |
|
958: |
Disallowed comma operator is used in function 'vm_map_param' |
MISRAC2012-RULE_12_3-a-4 |
|
958: |
Improper expression is used in the first clause of a 'for' statement |
MISRAC2012-RULE_14_2-b-2 |
|
958: |
The operands of a logical '&&' in function 'vm_map_param' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
958: |
The right hand operand of the logical operator '&&' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
959: |
The operands of a logical '&&' in function 'vm_map_param' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
960: |
The operands of a logical '||' in function 'vm_map_param' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
961: |
The operands of a logical '||' in function 'vm_map_param' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
963: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
975: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
984: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
987: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
988: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
992: |
Shifting operation should be enclosed with if checking that RHS operand does not exceed the upper limit (one less than the
width in bits of the underlying type of the LHS operand)
|
MISRAC2012-RULE_12_2-a-2 |
|
992: |
The right hand operand of the '&' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
994: |
The operands of a logical '&&' in function 'vm_map_param' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
995: |
The operands of a logical '&&' in function 'vm_map_param' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
996: |
The operands of a logical '&&' in function 'vm_map_param' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
998: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
1002: |
The variable 'param_va' used as the left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
1004: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
1009: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
1015: |
A tag name 'mobj' is reused |
MISRAC2012-RULE_5_7-a-2 |
|
1015: |
Identifier 'mobj' is hiding an identifier from global or namespace scope |
MISRAC2012-RULE_5_3-a-2 |
|
1019: |
'calloc' function should not be used |
MISRAC2012-RULE_21_3-a-2 |
|
1019: |
'calloc' function should not be used |
MISRAC2012-DIR_4_12-a-2 |
|
1019: |
Pointer to void type should not be converted to pointer to object type 'struct vm_region *' |
MISRAC2012-RULE_11_5-a-4 |
|
1021: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
1022: |
Integer constant '0xFFFF000C' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
1027: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
1029: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
1034: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
1035: |
'free' function should not be used |
MISRAC2012-RULE_21_3-a-2 |
|
1035: |
'free' function should not be used |
MISRAC2012-DIR_4_12-a-2 |
|
1040: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
1048: |
A tag name 'mobj' is reused |
MISRAC2012-RULE_5_7-a-2 |
|
1048: |
Identifier 'mobj' is hiding an identifier from global or namespace scope |
MISRAC2012-RULE_5_3-a-2 |
|
1048: |
Pass parameter "mobj" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
1052: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
1053: |
The operands of a logical '&&' in function 'vm_rem_rwmem' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
1053: |
The operands of a logical '&&' in function 'vm_rem_rwmem' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
1063: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
1070: |
'while' statement in a function 'vm_info_final' should be followed by a block |
MISRAC2012-RULE_15_6-a-2 |
|
1073: |
Unused function's "memset" return value |
MISRAC2012-RULE_17_7-a-2 |
|
1082: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
1083: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
1085: |
Pointer to void type should not be converted to arithmetic type 'unsigned long' |
MISRAC2012-RULE_11_6-a-2 |
|
1098: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
1099: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
1101: |
Pointer to void type should not be converted to arithmetic type 'unsigned long' |
MISRAC2012-RULE_11_6-a-2 |
|
1110: |
A tag name 'mobj' is reused |
MISRAC2012-RULE_5_7-a-2 |
|
1110: |
Identifier 'mobj' is hiding an identifier from global or namespace scope |
MISRAC2012-RULE_5_3-a-2 |
|
1114: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
1115: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
1117: |
Pointer to void type should not be converted to arithmetic type 'unsigned long' |
MISRAC2012-RULE_11_6-a-2 |
|
1121: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
1123: |
Pointer to void type should not be converted to arithmetic type 'unsigned long' |
MISRAC2012-RULE_11_6-a-2 |
|
1123: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
1128: |
Integer constant '0xFFFF0006' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
1136: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
1137: |
Pointer to void type should not be converted to arithmetic type 'unsigned long' |
MISRAC2012-RULE_11_6-a-2 |
|
1141: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
1155: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
1155: |
Reserved name '_a' used |
MISRAC2012-RULE_21_2-a-2 |
|
1155: |
Reserved name '_b' used |
MISRAC2012-RULE_21_2-a-2 |
|
1155: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
1157: |
Potential macro 'IS_POWER_OF_TWO' used as '1' parameter of potential macro 'assert' |
MISRAC2012-RULE_20_12-a-2 |
|
1157: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
1157: |
The operands of a logical '||' in function 'tee_mmu_user_va2pa_attr' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
1160: |
Pointer to void type should not be converted to arithmetic type 'unsigned long' |
MISRAC2012-RULE_11_6-a-2 |
|
1166: |
Pointer to void type should not be converted to arithmetic type 'unsigned long' |
MISRAC2012-RULE_11_6-a-2 |
|
1168: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
1174: |
Integer constant '0xFFFF0001' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
1187: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
1193: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
1198: |
Potential macro 'IS_POWER_OF_TWO' used as '1' parameter of potential macro 'assert' |
MISRAC2012-RULE_20_12-a-2 |
|
1198: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
1198: |
The operands of a logical '||' in function 'vm_pa2va' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
1200: |
The loop counter is modified inside the 'for' loop body |
MISRAC2012-RULE_14_2-a-2 |
|
1200: |
The second clause of a 'for' statement contains an object that is modified inside the loop body: 'ofs' |
MISRAC2012-RULE_14_2-c-2 |
|
1200: |
The third clause of a 'for' statement contains an object that is modified in the 'for' loop body |
MISRAC2012-RULE_14_2-d-2 |
|
1202: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
1212: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
1221: |
Arithmetic type 'unsigned long' should not be converted to pointer to void type |
MISRAC2012-RULE_11_6-a-2 |
|
1238: |
Integer constant '0xFFFF0001' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
1240: |
The left hand operand of the logical operator '&&' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
1240: |
The right hand operand of the '&' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
1240: |
The right hand operand of the logical operator '&&' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
1241: |
The right hand operand of the '&' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
1242: |
Integer constant '0xFFFF0001' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
1248: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
1248: |
The operands of a logical '&&' in function 'vm_check_access_rights' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
1248: |
The right hand operand of the '&' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
1249: |
Arithmetic type 'unsigned long' should not be converted to pointer to void type |
MISRAC2012-RULE_11_6-a-2 |
|
1249: |
The operands of a logical '&&' in function 'vm_check_access_rights' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
1250: |
Integer constant '0xFFFF0001' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
1256: |
Arithmetic type 'unsigned long' should not be converted to pointer to void type |
MISRAC2012-RULE_11_6-a-2 |
|
1260: |
The left hand operand of the logical operator '&&' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
1260: |
The right hand operand of the '&' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
1260: |
The right hand operand of the logical operator '&&' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
1261: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
1262: |
Integer constant '0xFFFF0001' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
1264: |
The left hand operand of the logical operator '&&' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
1264: |
The right hand operand of the '&' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
1265: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
1265: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
1265: |
The operands of a logical '&&' in function 'vm_check_access_rights' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
1266: |
Integer constant '0xFFFF0001' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
1268: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
1268: |
The left hand operand of the logical operator '&&' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
1268: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
1268: |
The operands of a logical '&&' in function 'vm_check_access_rights' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
1268: |
The right hand operand of the '&' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
1269: |
Integer constant '0xFFFF0001' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
1270: |
The left hand operand of the logical operator '&&' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
1270: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
1270: |
The operands of a logical '&&' in function 'vm_check_access_rights' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
1270: |
The right hand operand of the '&' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
1271: |
Integer constant '0xFFFF0001' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
| +
|
1290: |
The return value of the "is_user_ta_ctx" method is not checked. It is checked at least 80% times in the testing scope |
MISRAC2012-DIR_4_7-a-2 |
| |
|
Example path
ldelf_loader.c (137): if (is_user_ta_ctx(uctx->ts_ctx)) { *** Method call *** Example of checking
Violation path
Method call
vm.c (1290): is_user_ta_ctx(...)
Point by which returned value should be checked
vm.c (1290): pgt_free(&tsd->pgt_cache, is_user_ta_ctx(tsd->ctx)); |
|
| /optee_os_MISRA/optee_os_ruchi393_core/pta/device.c |
|
26: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
26: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
26: |
The left hand operand of the logical operator '&&' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
26: |
The right hand operand of the '&' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
26: |
The right hand operand of the logical operator '&&' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
27: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
27: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
27: |
The right hand operand of the '&' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
32: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
33: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
34: |
The variable 'buf' used as the left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
36: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with a narrower essential type (4 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
50: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
50: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
50: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
50: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
50: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
50: |
The left hand operand of the '|' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
50: |
The left hand operand of the '|' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
50: |
The right hand operand of the '|' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
54: |
Integer constant '0xFFFF0006' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
56: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
56: |
The operands of a logical '&&' in function 'get_devices' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
57: |
Integer constant '0xFFFF0006' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
62: |
'for' statement in a function 'get_devices' should be followed by a block |
MISRAC2012-RULE_15_6-a-2 |
|
62: |
More than one variable is declared in the first clause of a 'for' statement |
MISRAC2012-RULE_14_2-b-2 |
|
62: |
Pointer to void type should not be converted to pointer to object type 'const struct pseudo_ta_head *' |
MISRAC2012-RULE_11_5-a-4 |
|
62: |
Reserved name '__scattered_array_begin' used |
MISRAC2012-RULE_21_2-a-2 |
|
62: |
Reserved name '__scattered_array_end' used |
MISRAC2012-RULE_21_2-a-2 |
| +
|
62: |
Two unrelated pointers "ta" and "__scattered_array_end" are compared |
MISRAC2012-DIR_4_1-j-2 |
| |
|
Start of the path
device.c (40): static TEE_Result get_devices(uint32_t types,
device.c (44): const struct pseudo_ta_head *ta = NULL;
device.c (45): const struct embedded_ts *eta = NULL;
device.c (46): void *buf = NULL;
device.c (47): uint32_t blen = 0;
device.c (48): uint32_t pos = 0;
device.c (50): if (types != TEE_PARAM_TYPES(TEE_PARAM_TYPE_MEMREF_OUTPUT,
device.c (56): if (!params[0].memref.buffer && (params[0].memref.size > 0)) *** Condition evaluation: !params[0].memref.buffer (assuming false) *** Condition evaluation: !params[0].memref.buffer && (params[0].memref.size > 0) (false)
device.c (59): buf = params[0].memref.buffer;
device.c (60): blen = params[0].memref.size;
device.c (62): scattered_array_relax_ptr(...)
scattered_array.c (10): return p;
Point of comparison
device.c (62): SCATTERED_ARRAY_FOREACH(ta, pseudo_tas, struct pseudo_ta_head) |
|
| +
|
62: |
Two unrelated pointers "ta" and "__scattered_array_end" are compared |
MISRAC2012-RULE_18_3-a-2 |
| |
|
Start of the path
device.c (40): static TEE_Result get_devices(uint32_t types,
device.c (44): const struct pseudo_ta_head *ta = NULL;
device.c (45): const struct embedded_ts *eta = NULL;
device.c (46): void *buf = NULL;
device.c (47): uint32_t blen = 0;
device.c (48): uint32_t pos = 0;
device.c (50): if (types != TEE_PARAM_TYPES(TEE_PARAM_TYPE_MEMREF_OUTPUT,
device.c (56): if (!params[0].memref.buffer && (params[0].memref.size > 0)) *** Condition evaluation: !params[0].memref.buffer (assuming false) *** Condition evaluation: !params[0].memref.buffer && (params[0].memref.size > 0) (false)
device.c (59): buf = params[0].memref.buffer;
device.c (60): blen = params[0].memref.size;
device.c (62): scattered_array_relax_ptr(...)
scattered_array.c (10): return p;
Point of comparison
device.c (62): SCATTERED_ARRAY_FOREACH(ta, pseudo_tas, struct pseudo_ta_head) |
|
|
63: |
Pointer to void type should not be converted to pointer to object type 'uint8_t *' in function's argument |
MISRAC2012-RULE_11_5-a-4 |
|
65: |
Unreachable code inside 'if' block |
MISRAC2012-RULE_2_1-c-2 |
|
66: |
'for' statement in a function 'get_devices' should be followed by a block |
MISRAC2012-RULE_15_6-a-2 |
|
66: |
Identifier '__scattered_array_begin' is being reused |
MISRAC2012-RULE_5_9-b-4 |
|
66: |
Identifier '__scattered_array_end' is being reused |
MISRAC2012-RULE_5_9-b-4 |
|
66: |
More than one variable is declared in the first clause of a 'for' statement |
MISRAC2012-RULE_14_2-b-2 |
|
66: |
Pointer to void type should not be converted to pointer to object type 'const struct embedded_ts *' |
MISRAC2012-RULE_11_5-a-4 |
|
66: |
Reserved name '__scattered_array_begin' used |
MISRAC2012-RULE_21_2-a-2 |
|
66: |
Reserved name '__scattered_array_end' used |
MISRAC2012-RULE_21_2-a-2 |
|
67: |
Pointer to void type should not be converted to pointer to object type 'uint8_t *' in function's argument |
MISRAC2012-RULE_11_5-a-4 |
|
72: |
Integer constant '0xFFFF0010' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
77: |
Parameter 'pSessionContext' is not used in function 'invoke_command' |
MISRAC2012-RULE_2_7-a-4 |
|
77: |
Pass parameter "pSessionContext" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
84: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
84: |
The argument number '3' ('essentially signed' type) is passed to the function 'get_devices' as a parameter with the 'essentially
unsigned' type
|
MISRAC2012-RULE_10_3-b-2 |
|
84: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
87: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
87: |
The argument number '3' ('essentially signed' type) is passed to the function 'get_devices' as a parameter with the 'essentially
unsigned' type
|
MISRAC2012-RULE_10_3-b-2 |
|
87: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
89: |
Missing statement or comment before terminating 'break' |
MISRAC2012-RULE_16_4-b-2 |
|
89: |
Missing statement or comment before terminating 'break' |
MISRAC2012-RULE_16_1-f-2 |
|
92: |
Integer constant '0xFFFF0009' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
95: |
Reserved name '__scattered_array_0pseudo_tas' used |
MISRAC2012-RULE_21_2-a-2 |
|
95: |
The expression of the 'essentially signed' type is assigned to an object with the 'essentially unsigned' type |
MISRAC2012-RULE_10_3-b-2 |
|
95: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
95: |
The left hand operand of the '|' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
95: |
The right hand operand of the '|' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
| /optee_os_MISRA/optee_os_ruchi393_core/pta/secstor_ta_mgmt.c |
|
27: |
Integer constant '0xFFFF0008' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
29: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
34: |
Integer constant '0xFFFF0003' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
40: |
A tag name 'shdr' is reused |
MISRAC2012-RULE_5_7-a-2 |
|
40: |
Identifier 'shdr' is hiding an identifier from global or namespace scope |
MISRAC2012-RULE_5_3-a-2 |
|
47: |
The expression of the 'essentially signed' type is assigned to an object with the 'essentially unsigned' type |
MISRAC2012-RULE_10_3-b-2 |
|
53: |
Integer constant '0xFFFF000F' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
56: |
Integer constant '0xFFFF000F' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
59: |
Integer constant '0xFFFF000F' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
61: |
'malloc' function should not be used |
MISRAC2012-RULE_21_3-a-2 |
|
61: |
'malloc' function should not be used |
MISRAC2012-DIR_4_12-a-2 |
|
62: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
63: |
Integer constant '0xFFFF000C' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
71: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
72: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
74: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
75: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
77: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
78: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
81: |
In the call of the function 'memcpy' the first argument type 'shdr_bootstrap_ta*' is not compatible with the second argument
type 'unsigned char*'
|
MISRAC2012-RULE_21_15-a-2 |
| +
|
81: |
The return value of the "shdr_get_size" method is not checked. It is checked at least 80% times in the testing scope |
MISRAC2012-DIR_4_7-a-2 |
| |
|
Example path
ree_fs_ta.c (188): if (ta_size < SHDR_GET_SIZE(shdr) + sizeof(*bs_hdr)) { *** Method call *** Example of checking
Violation path
Method call
secstor_ta_mgmt.c (80): offs = SHDR_GET_SIZE(shdr);
Point by which returned value should be checked
secstor_ta_mgmt.c (81): memcpy(&bs_ta, nw + offs, sizeof(bs_ta)); |
|
|
81: |
The variable 'nw' used as the left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
81: |
Unused function's "memcpy" return value |
MISRAC2012-RULE_17_7-a-2 |
|
85: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
86: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
89: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
90: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
93: |
Unused function's "memset" return value |
MISRAC2012-RULE_17_7-a-2 |
|
94: |
Missing statement or comment before terminating 'break' |
MISRAC2012-RULE_16_4-b-2 |
|
94: |
Missing statement or comment before terminating 'break' |
MISRAC2012-RULE_16_1-f-2 |
|
94: |
The 'switch' statement contains less than two switch-clauses |
MISRAC2012-RULE_16_6-a-2 |
|
94: |
The 'switch' statement contains less than two switch-clauses |
MISRAC2012-RULE_16_1-h-2 |
|
98: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with a narrower essential type (4 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
102: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
103: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
105: |
Only one 'goto' statement in loop is allowed. This loop contains 'goto' in lines: 111, 114 |
MISRAC2012-RULE_15_4-a-4 |
|
106: |
Reserved name '_a' used |
MISRAC2012-RULE_21_2-a-2 |
|
106: |
Reserved name '_b' used |
MISRAC2012-RULE_21_2-a-2 |
|
106: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
108: |
In the call of the function 'memcpy' the first argument type 'void*' is not compatible with the second argument type 'unsigned
char*'
|
MISRAC2012-RULE_21_15-a-2 |
|
108: |
The variable 'nw' used as the left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
108: |
Unused function's "memcpy" return value |
MISRAC2012-RULE_17_7-a-2 |
|
109: |
Pointer to void type should not be converted to pointer to object type 'const uint8_t *' in function's argument |
MISRAC2012-RULE_11_5-a-4 |
|
110: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
111: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
113: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
114: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
118: |
Pointer to void type should not be converted to pointer to object type 'uint8_t *' in function's argument |
MISRAC2012-RULE_11_5-a-4 |
|
119: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
120: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
121: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
121: |
The left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
122: |
Integer constant '0xFFFF000F' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
123: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
127: |
'free' function should not be used |
MISRAC2012-RULE_21_3-a-2 |
|
127: |
'free' function should not be used |
MISRAC2012-DIR_4_12-a-2 |
|
135: |
'free' function should not be used |
MISRAC2012-RULE_21_3-a-2 |
|
135: |
'free' function should not be used |
MISRAC2012-DIR_4_12-a-2 |
|
143: |
A tag name 'shdr' is reused |
MISRAC2012-RULE_5_7-a-2 |
|
143: |
Identifier 'shdr' is hiding an identifier from global or namespace scope |
MISRAC2012-RULE_5_3-a-2 |
|
144: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
144: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
144: |
The expression of the 'essentially signed' type is assigned to an object with the 'essentially unsigned' type |
MISRAC2012-RULE_10_3-b-2 |
|
144: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
144: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
144: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
144: |
The left hand operand of the '|' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
144: |
The left hand operand of the '|' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
144: |
The right hand operand of the '|' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
150: |
Integer constant '0xFFFF0006' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
152: |
Pointer to void type should not be converted to pointer to object type 'const struct shdr *' in function's argument |
MISRAC2012-RULE_11_5-a-4 |
|
153: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
154: |
Integer constant '0xFFFF000F' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
157: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
158: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
160: |
Pointer to void type should not be converted to pointer to object type 'const uint8_t *' in function's argument |
MISRAC2012-RULE_11_5-a-4 |
|
166: |
Parameter 'sess_ctx' is not used in function 'invoke_command' |
MISRAC2012-RULE_2_7-a-4 |
|
166: |
Pass parameter "sess_ctx" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
174: |
Missing statement or comment before terminating 'break' |
MISRAC2012-RULE_16_4-b-2 |
|
174: |
Missing statement or comment before terminating 'break' |
MISRAC2012-RULE_16_1-f-2 |
|
176: |
Integer constant '0xFFFF0009' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
179: |
Reserved name '__scattered_array_0pseudo_tas' used |
MISRAC2012-RULE_21_2-a-2 |
|
179: |
The expression of the 'essentially signed' type is assigned to an object with the 'essentially unsigned' type |
MISRAC2012-RULE_10_3-b-2 |
|
179: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
179: |
The left hand operand of the '|' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
179: |
The right hand operand of the '|' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
| /optee_os_MISRA/optee_os_ruchi393_core/pta/stats.c |
|
41: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
41: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
41: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
41: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
41: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
41: |
The left hand operand of the '|' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
41: |
The left hand operand of the '|' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
41: |
The right hand operand of the '|' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
45: |
Integer constant '0xFFFF0006' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
50: |
Integer constant '0xFFFF0006' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
52: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with a narrower essential type (4 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
53: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
58: |
Integer constant '0xFFFF0010' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
61: |
Pointer to void type should not be converted to pointer to object type 'struct malloc_stats *' |
MISRAC2012-RULE_11_5-a-4 |
|
64: |
The left hand operand of the logical operator '&&' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
70: |
Unused function's "strlcpy" return value |
MISRAC2012-RULE_17_7-a-2 |
|
71: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
81: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
82: |
Unused function's "strlcpy" return value |
MISRAC2012-RULE_17_7-a-2 |
|
108: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
108: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
108: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
108: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
108: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
108: |
The left hand operand of the '|' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
108: |
The left hand operand of the '|' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
108: |
The right hand operand of the '|' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
113: |
Integer constant '0xFFFF0006' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
117: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with a narrower essential type (4 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
118: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with a narrower essential type (4 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
119: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with a narrower essential type (4 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
120: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with a narrower essential type (4 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
121: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with a narrower essential type (4 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
122: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with a narrower essential type (4 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
128: |
Parameter 'p' is not used in function 'get_memleak_stats' |
MISRAC2012-RULE_2_7-a-4 |
|
131: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
131: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
131: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
131: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
131: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
131: |
The left hand operand of the '|' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
131: |
The left hand operand of the '|' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
131: |
The right hand operand of the '|' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
133: |
Integer constant '0xFFFF0006' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
144: |
Parameter 'psess' is not used in function 'invoke_command' |
MISRAC2012-RULE_2_7-a-4 |
|
144: |
Pass parameter "psess" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
156: |
Missing statement or comment before terminating 'break' |
MISRAC2012-RULE_16_4-b-2 |
|
156: |
Missing statement or comment before terminating 'break' |
MISRAC2012-RULE_16_1-f-2 |
|
158: |
Integer constant '0xFFFF0006' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
161: |
Integer constant '0xd96a5b40' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
161: |
Reserved name '__scattered_array_0pseudo_tas' used |
MISRAC2012-RULE_21_2-a-2 |
|
161: |
The expression of the 'essentially signed' type is assigned to an object with the 'essentially unsigned' type |
MISRAC2012-RULE_10_3-b-2 |
|
161: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
161: |
The left hand operand of the '|' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
161: |
The right hand operand of the '|' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
| /optee_os_MISRA/optee_os_ruchi393_core/pta/system.c |
|
33: |
Global variable 'system_pnum' is being used only in a single function 'system_rng_reseed' |
MISRAC2012-RULE_8_9-a-4 |
|
40: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
40: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
40: |
The expression of the 'essentially signed' type is assigned to an object with the 'essentially unsigned' type |
MISRAC2012-RULE_10_3-b-2 |
|
40: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
40: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
40: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
40: |
The left hand operand of the '|' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
40: |
The left hand operand of the '|' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
46: |
Integer constant '0xFFFF0006' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
47: |
Pointer to void type should not be converted to pointer to object type 'uint8_t *' |
MISRAC2012-RULE_11_5-a-4 |
|
50: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
50: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
50: |
The operands of a logical '||' in function 'system_rng_reseed' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
50: |
The operands of a logical '||' in function 'system_rng_reseed' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
51: |
Integer constant '0xFFFF0006' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
58: |
Pass parameter "uctx" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
63: |
Integer constant '0xFFFF0000' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
66: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
66: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
66: |
The expression of the 'essentially signed' type is assigned to an object with the 'essentially unsigned' type |
MISRAC2012-RULE_10_3-b-2 |
|
66: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
66: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
66: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
66: |
The left hand operand of the '|' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
66: |
The left hand operand of the '|' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
72: |
Integer constant '0xFFFF0006' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
74: |
The operands of a logical '||' in function 'system_derive_ta_unique_key' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
75: |
The operands of a logical '||' in function 'system_derive_ta_unique_key' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
76: |
The operands of a logical '||' in function 'system_derive_ta_unique_key' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
77: |
Integer constant '0xFFFF0006' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
87: |
The expression of the 'essentially signed' type is assigned to an object with the 'essentially unsigned' type |
MISRAC2012-RULE_10_3-b-2 |
|
87: |
The left hand operand of the '|' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
90: |
Pointer to void type should not be converted to arithmetic type 'unsigned long' |
MISRAC2012-RULE_11_6-a-2 |
|
93: |
Integer constant '0xFFFF000F' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
97: |
Integer constant '0xFFFF000F' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
99: |
'calloc' function should not be used |
MISRAC2012-RULE_21_3-a-2 |
|
99: |
'calloc' function should not be used |
MISRAC2012-DIR_4_12-a-2 |
|
99: |
Pointer to void type should not be converted to pointer to object type 'uint8_t *' |
MISRAC2012-RULE_11_5-a-4 |
|
100: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
101: |
Integer constant '0xFFFF000C' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
103: |
In the call of the function 'memcpy' the first argument type is not compatible with the second argument type |
MISRAC2012-RULE_21_15-a-2 |
|
103: |
Unused function's "memcpy" return value |
MISRAC2012-RULE_17_7-a-2 |
|
106: |
In the call of the function 'memcpy' the first argument type 'unsigned char*' is not compatible with the second argument type
'void*'
|
MISRAC2012-RULE_21_15-a-2 |
|
106: |
The variable 'data' used as the left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
106: |
Unused function's "memcpy" return value |
MISRAC2012-RULE_17_7-a-2 |
|
110: |
Pointer to void type should not be converted to pointer to object type 'uint8_t *' in function's argument |
MISRAC2012-RULE_11_5-a-4 |
|
121: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
121: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
121: |
The expression of the 'essentially signed' type is assigned to an object with the 'essentially unsigned' type |
MISRAC2012-RULE_10_3-b-2 |
|
121: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
121: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
121: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
121: |
The left hand operand of the '|' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
121: |
The left hand operand of the '|' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
125: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
126: |
Integer constant '0xFFFF0000' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
127: |
A tag name 'mobj' is reused |
MISRAC2012-RULE_5_7-a-2 |
|
127: |
Identifier 'mobj' is hiding an identifier from global or namespace scope |
MISRAC2012-RULE_5_3-a-2 |
|
136: |
Integer constant '0xFFFF0006' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
137: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
138: |
Integer constant '0xFFFF0006' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
140: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
148: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
148: |
Reserved name '__roundup_mask' used |
MISRAC2012-RULE_21_2-a-2 |
|
148: |
Reserved name '__roundup_x' used |
MISRAC2012-RULE_21_2-a-2 |
|
148: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
148: |
The argument number '1' (8 byte essential type) is passed to the function 'fobj_sec_mem_alloc' as a parameter with a narrower
essential type (4 byte)
|
MISRAC2012-RULE_10_3-a-2 |
|
148: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with a narrower essential type (4 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
148: |
The first operand of the conditional operator '?:' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
149: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
150: |
Integer constant '0xFFFF000C' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
153: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
154: |
Integer constant '0xFFFF000C' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
158: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
167: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
167: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
167: |
The expression of the 'essentially signed' type is assigned to an object with the 'essentially unsigned' type |
MISRAC2012-RULE_10_3-b-2 |
|
167: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
167: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
167: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
167: |
The left hand operand of the '|' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
167: |
The left hand operand of the '|' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
178: |
Integer constant '0xFFFF0006' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
180: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
181: |
Integer constant '0xFFFF0006' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
184: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
184: |
The value of a composite expression (32 bit essential type) is assigned to an object with wider essential type (64 bit) |
MISRAC2012-RULE_10_6-a-2 |
|
193: |
Integer constant '0xFFFF0006' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
196: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
198: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
199: |
Integer constant '0xFFFF0001' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
208: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
208: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
208: |
The expression of the 'essentially signed' type is assigned to an object with the 'essentially unsigned' type |
MISRAC2012-RULE_10_3-b-2 |
|
208: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
208: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
208: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
208: |
The left hand operand of the '|' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
208: |
The left hand operand of the '|' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
212: |
Integer constant '0xFFFF0000' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
218: |
Integer constant '0xFFFF0006' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
220: |
Pointer to void type should not be converted to pointer to object type 'TEE_UUID *' |
MISRAC2012-RULE_11_5-a-4 |
|
221: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
221: |
The operands of a logical '||' in function 'system_dlopen' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
221: |
The operands of a logical '||' in function 'system_dlopen' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
222: |
Integer constant '0xFFFF0006' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
236: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
236: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
236: |
The expression of the 'essentially signed' type is assigned to an object with the 'essentially unsigned' type |
MISRAC2012-RULE_10_3-b-2 |
|
236: |
The left hand operand of the '<<' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
236: |
The left hand operand of the '|' operator has essentially signed type: int |
MISRAC2012-RULE_10_1-e-2 |
|
236: |
The left hand operand of the '|' operator has essentially signed type: signed char |
MISRAC2012-RULE_10_1-e-2 |
|
240: |
Integer constant '0xFFFF0000' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
248: |
Integer constant '0xFFFF0006' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
250: |
Pointer to void type should not be converted to pointer to object type 'TEE_UUID *' |
MISRAC2012-RULE_11_5-a-4 |
|
251: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
251: |
The operands of a logical '||' in function 'system_dlsym' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
251: |
The operands of a logical '||' in function 'system_dlsym' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
252: |
Integer constant '0xFFFF0006' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
254: |
Pointer to void type should not be converted to pointer to object type 'const char *' |
MISRAC2012-RULE_11_5-a-4 |
|
255: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
256: |
Integer constant '0xFFFF0006' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
263: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
272: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
272: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
272: |
The expression of the 'essentially signed' type is assigned to an object with the 'essentially unsigned' type |
MISRAC2012-RULE_10_3-b-2 |
|
280: |
Integer constant '0xFFFF0006' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
284: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with a narrower essential type (4 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
292: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
292: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
292: |
The expression of the 'essentially signed' type is assigned to an object with the 'essentially unsigned' type |
MISRAC2012-RULE_10_3-b-2 |
|
296: |
Integer constant '0xFFFF0000' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
300: |
Integer constant '0xFFFF0006' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
302: |
Pointer to void type should not be converted to pointer to object type 'const TEE_UUID *' in function's argument |
MISRAC2012-RULE_11_5-a-4 |
|
313: |
Parameter 'param_types' is not used in function 'open_session' |
MISRAC2012-RULE_2_7-a-4 |
|
314: |
Parameter 'params' is not used in function 'open_session' |
MISRAC2012-RULE_2_7-a-4 |
|
315: |
Parameter 'sess_ctx' is not used in function 'open_session' |
MISRAC2012-RULE_2_7-a-4 |
|
315: |
Pass parameter "sess_ctx" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
321: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
322: |
Integer constant '0xFFFF0001' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
324: |
Integer constant '0xFFFF0001' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
329: |
Parameter 'sess_ctx' is not used in function 'invoke_command' |
MISRAC2012-RULE_2_7-a-4 |
|
329: |
Pass parameter "sess_ctx" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
354: |
Missing statement or comment before terminating 'break' |
MISRAC2012-RULE_16_4-b-2 |
|
354: |
Missing statement or comment before terminating 'break' |
MISRAC2012-RULE_16_1-f-2 |
|
357: |
Integer constant '0xFFFF0009' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
360: |
Reserved name '__scattered_array_0pseudo_tas' used |
MISRAC2012-RULE_21_2-a-2 |
|
360: |
The expression of the 'essentially signed' type is assigned to an object with the 'essentially unsigned' type |
MISRAC2012-RULE_10_3-b-2 |
| /optee_os_MISRA/optee_os_ruchi393_core/tee/fs_dirfile.c |
|
47: |
'realloc' function should not be used |
MISRAC2012-RULE_21_3-a-2 |
|
47: |
'realloc' function should not be used |
MISRAC2012-DIR_4_12-a-2 |
|
47: |
Left-hand operand of right-shift operator is an expression of ' int' type |
MISRAC2012-RULE_1_3-o-2 |
|
47: |
The argument number '2' ('essentially signed' type) is passed to the function 'realloc' as a parameter with the 'essentially
unsigned' type
|
MISRAC2012-RULE_10_3-b-2 |
|
48: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
49: |
Integer constant '0xFFFF000C' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
50: |
Pointer to void type should not be converted to pointer to object type 'bitstr_t *' |
MISRAC2012-RULE_11_5-a-4 |
|
52: |
'while' statement in a function 'maybe_grow_files' should be followed by a block |
MISRAC2012-RULE_15_6-a-2 |
|
52: |
Left-hand operand of right-shift operator is a variable '_start' of 'signed int' type |
MISRAC2012-RULE_1_3-o-2 |
|
52: |
Left-hand operand of right-shift operator is a variable '_stop' of 'signed int' type |
MISRAC2012-RULE_1_3-o-2 |
|
52: |
Reserved name '_name' used |
MISRAC2012-RULE_21_2-a-2 |
|
52: |
Reserved name '_start' used |
MISRAC2012-RULE_21_2-a-2 |
|
52: |
Reserved name '_startbyte' used |
MISRAC2012-RULE_21_2-a-2 |
|
52: |
Reserved name '_stop' used |
MISRAC2012-RULE_21_2-a-2 |
|
52: |
Reserved name '_stopbyte' used |
MISRAC2012-RULE_21_2-a-2 |
|
52: |
Shifting operation should be enclosed with if checking that RHS operand lies between zero and one less than the width in bits
of the underlying type of the LHS operand
|
MISRAC2012-RULE_12_2-a-2 |
|
52: |
The right hand operand of the shift operator '<<' has essentially signed type 'int' |
MISRAC2012-RULE_10_1-f-2 |
|
52: |
The right hand operand of the shift operator '>>' has essentially signed type 'int' |
MISRAC2012-RULE_10_1-f-2 |
|
62: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
63: |
Left-hand operand of right-shift operator is a variable 'idx' of 'signed int' type |
MISRAC2012-RULE_1_3-o-2 |
|
63: |
Shifting operation should be enclosed with if checking that RHS operand lies between zero and one less than the width in bits
of the underlying type of the LHS operand
|
MISRAC2012-RULE_12_2-a-2 |
|
63: |
The right hand operand of the shift operator '<<' has essentially signed type 'int' |
MISRAC2012-RULE_10_1-f-2 |
|
71: |
Left-hand operand of right-shift operator is a variable 'idx' of 'signed int' type |
MISRAC2012-RULE_1_3-o-2 |
|
71: |
Shifting operation should be enclosed with if checking that RHS operand lies between zero and one less than the width in bits
of the underlying type of the LHS operand
|
MISRAC2012-RULE_12_2-a-2 |
|
71: |
The right hand operand of the shift operator '<<' has essentially signed type 'int' |
MISRAC2012-RULE_10_1-f-2 |
|
74: |
Pass parameter "dirh" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
77: |
Left-hand operand of right-shift operator is a variable 'idx' of 'signed int' type |
MISRAC2012-RULE_1_3-o-2 |
|
77: |
Shifting operation should be enclosed with if checking that RHS operand lies between zero and one less than the width in bits
of the underlying type of the LHS operand
|
MISRAC2012-RULE_12_2-a-2 |
|
77: |
The expression of the 'essentially signed' type is returned from function 'test_file' with the 'essentially Boolean' type |
MISRAC2012-RULE_10_3-b-2 |
|
77: |
The right hand operand of the shift operator '<<' has essentially signed type 'int' |
MISRAC2012-RULE_10_1-f-2 |
|
91: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
91: |
The operands of a logical '&&' in function 'read_dent' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
91: |
The operands of a logical '&&' in function 'read_dent' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
92: |
Integer constant '0xFFFF0008' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
98: |
Pass parameter "dent" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
104: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
104: |
The operands of a logical '&&' in function 'write_dent' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
104: |
The operands of a logical '&&' in function 'write_dent' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
110: |
Identifiers given in declaration of 'tee_fs_dirfile_open' function (file: 'fs_dirfile.h', line: '56') are: 'dirh' not: 'dirh_ret' |
MISRAC2012-RULE_8_3-b-2 |
|
115: |
'calloc' function should not be used |
MISRAC2012-RULE_21_3-a-2 |
|
115: |
'calloc' function should not be used |
MISRAC2012-DIR_4_12-a-2 |
|
115: |
Pointer to void type should not be converted to pointer to object type 'struct tee_fs_dirfile_dirh *' |
MISRAC2012-RULE_11_5-a-4 |
|
118: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
119: |
Integer constant '0xFFFF000C' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
123: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
124: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
126: |
Improper expression is used in the first clause of a 'for' statement |
MISRAC2012-RULE_14_2-b-2 |
|
126: |
Only one 'goto' statement in loop is allowed. This loop contains 'goto' in lines: 133, 145, 151 |
MISRAC2012-RULE_15_4-a-4 |
|
126: |
The second clause of a 'for' statement does not contain a loop counter |
MISRAC2012-RULE_14_2-c-2 |
|
126: |
The third clause of a 'for' statement contains an expression with a persistent side effect other than modification of a loop
counter
|
MISRAC2012-RULE_14_2-d-2 |
|
129: |
The argument number '2' ('essentially unsigned' type) is passed to the function 'read_dent' as a parameter with the 'essentially
signed' type
|
MISRAC2012-RULE_10_3-b-2 |
|
130: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
131: |
Integer constant '0xFFFF0008' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
133: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
136: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
139: |
The argument number '2' ('essentially unsigned' type) is passed to the function 'test_file' as a parameter with the 'essentially
signed' type
|
MISRAC2012-RULE_10_3-b-2 |
|
142: |
Unused function's "memset" return value |
MISRAC2012-RULE_17_7-a-2 |
|
144: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
145: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
149: |
The argument number '2' ('essentially unsigned' type) is passed to the function 'set_file' as a parameter with the 'essentially
signed' type
|
MISRAC2012-RULE_10_3-b-2 |
|
151: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
154: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
165: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
167: |
'free' function should not be used |
MISRAC2012-RULE_21_3-a-2 |
|
167: |
'free' function should not be used |
MISRAC2012-DIR_4_12-a-2 |
|
168: |
'free' function should not be used |
MISRAC2012-RULE_21_3-a-2 |
|
168: |
'free' function should not be used |
MISRAC2012-DIR_4_12-a-2 |
|
184: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
185: |
'for' statement in a function 'tee_fs_dirfile_get_tmp' should be followed by a block |
MISRAC2012-RULE_15_6-a-2 |
|
185: |
Disallowed comma operator is used in function 'tee_fs_dirfile_get_tmp' |
MISRAC2012-RULE_12_3-a-4 |
|
185: |
Left-hand operand of right-shift operator is an expression of ' int' type |
MISRAC2012-RULE_1_3-o-2 |
|
185: |
Reserved name '_byte' used |
MISRAC2012-RULE_21_2-a-2 |
|
185: |
Reserved name '_lb' used |
MISRAC2012-RULE_21_2-a-2 |
|
185: |
Reserved name '_name' used |
MISRAC2012-RULE_21_2-a-2 |
|
185: |
Reserved name '_nbits' used |
MISRAC2012-RULE_21_2-a-2 |
|
185: |
Reserved name '_stopbyte' used |
MISRAC2012-RULE_21_2-a-2 |
|
185: |
Reserved name '_value' used |
MISRAC2012-RULE_21_2-a-2 |
|
185: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
185: |
The '++' operator should cause the only side effect in an expression |
MISRAC2012-RULE_13_3-a-4 |
|
185: |
The third clause of a 'for' statement should not contain a comma operator |
MISRAC2012-RULE_14_2-d-2 |
|
191: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
192: |
The expression of the 'essentially signed' type is assigned to an object with the 'essentially unsigned' type |
MISRAC2012-RULE_10_3-b-2 |
|
206: |
Improper expression is used in the first clause of a 'for' statement |
MISRAC2012-RULE_14_2-b-2 |
|
206: |
Only one 'break' statement in loop is allowed. This loop contains 'breaks' in lines: 212, 229 |
MISRAC2012-RULE_15_4-a-4 |
|
206: |
The second clause of a 'for' statement does not contain a loop counter |
MISRAC2012-RULE_14_2-c-2 |
|
206: |
The third clause of a 'for' statement contains an expression with a persistent side effect other than modification of a loop
counter
|
MISRAC2012-RULE_14_2-d-2 |
|
208: |
Integer constant '0xFFFF0008' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
208: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
208: |
The operands of a logical '&&' in function 'tee_fs_dirfile_find' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
208: |
The operands of a logical '&&' in function 'tee_fs_dirfile_find' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
209: |
Unused function's "memset" return value |
MISRAC2012-RULE_17_7-a-2 |
|
214: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
219: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
219: |
The operands of a logical '&&' in function 'tee_fs_dirfile_find' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
219: |
The operands of a logical '&&' in function 'tee_fs_dirfile_find' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
224: |
The argument number '2' ('essentially unsigned' type) is passed to the function 'test_file' as a parameter with the 'essentially
signed' type
|
MISRAC2012-RULE_10_3-b-2 |
|
224: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
224: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
224: |
The operands of a logical '||' in function 'tee_fs_dirfile_find' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
224: |
The operands of a logical '||' in function 'tee_fs_dirfile_find' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
224: |
The operands of a logical '||' in function 'tee_fs_dirfile_find' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
227: |
The first argument to the function 'memcmp()' is a pointer to an inappropriate type 'TEE_UUID' |
MISRAC2012-RULE_21_16-a-2 |
|
227: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
227: |
The operands of a logical '&&' in function 'tee_fs_dirfile_find' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
227: |
The second argument to the function 'memcmp()' is a pointer to an inappropriate type 'const TEE_UUID' |
MISRAC2012-RULE_21_16-a-2 |
|
228: |
In the call of the function 'memcmp' the first argument type 'unsigned char**' is not compatible with the second argument
type 'void*'
|
MISRAC2012-RULE_21_15-a-2 |
|
228: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
228: |
The operands of a logical '&&' in function 'tee_fs_dirfile_find' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
228: |
The second argument to the function 'memcmp()' is a pointer to an inappropriate type 'const void' |
MISRAC2012-RULE_21_16-a-2 |
|
232: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
235: |
Unused function's "memcpy" return value |
MISRAC2012-RULE_17_7-a-2 |
|
247: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
248: |
Usage of 'snprintf' function is not allowed |
MISRAC2012-RULE_21_6-a-2 |
|
250: |
Usage of 'snprintf' function is not allowed |
MISRAC2012-RULE_21_6-a-2 |
|
253: |
Integer constant '0xFFFF0000' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
255: |
The expression of the 'essentially signed' type is assigned to an object with the 'essentially unsigned' type |
MISRAC2012-RULE_10_3-b-2 |
|
257: |
Integer constant '0xFFFF0010' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
270: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
270: |
The operands of a logical '||' in function 'tee_fs_dirfile_rename' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
270: |
The operands of a logical '||' in function 'tee_fs_dirfile_rename' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
271: |
Integer constant '0xFFFF0006' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
272: |
Unused function's "memset" return value |
MISRAC2012-RULE_17_7-a-2 |
|
274: |
In the call of the function 'memcpy' the first argument type 'unsigned char*' is not compatible with the second argument type
'void*'
|
MISRAC2012-RULE_21_15-a-2 |
|
274: |
Unused function's "memcpy" return value |
MISRAC2012-RULE_17_7-a-2 |
|
275: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with a narrower essential type (4 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
276: |
Unused function's "memcpy" return value |
MISRAC2012-RULE_17_7-a-2 |
|
283: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
284: |
Integer constant '0xFFFF0008' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
287: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
293: |
The argument number '2' ('essentially signed' type) is passed to the function 'write_dent' as a parameter with the 'essentially
unsigned' type
|
MISRAC2012-RULE_10_3-b-2 |
|
304: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
307: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
312: |
The argument number '2' ('essentially unsigned' type) is passed to the function 'test_file' as a parameter with the 'essentially
signed' type
|
MISRAC2012-RULE_10_3-b-2 |
|
314: |
Unused function's "memset" return value |
MISRAC2012-RULE_17_7-a-2 |
|
315: |
The argument number '2' ('essentially signed' type) is passed to the function 'write_dent' as a parameter with the 'essentially
unsigned' type
|
MISRAC2012-RULE_10_3-b-2 |
|
316: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
317: |
The argument number '2' ('essentially unsigned' type) is passed to the function 'clear_file' as a parameter with the 'essentially
signed' type
|
MISRAC2012-RULE_10_3-b-2 |
|
329: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
332: |
The argument number '2' ('essentially unsigned' type) is passed to the function 'test_file' as a parameter with the 'essentially
signed' type
|
MISRAC2012-RULE_10_3-b-2 |
|
334: |
In the call of the function 'memcpy' the first argument type 'unsigned char**' is not compatible with the second argument
type 'unsigned char*'
|
MISRAC2012-RULE_21_15-a-2 |
|
334: |
Unused function's "memcpy" return value |
MISRAC2012-RULE_17_7-a-2 |
|
336: |
The argument number '2' ('essentially signed' type) is passed to the function 'write_dent' as a parameter with the 'essentially
unsigned' type
|
MISRAC2012-RULE_10_3-b-2 |
|
350: |
The second clause of a 'for' statement does not contain a loop counter |
MISRAC2012-RULE_14_2-c-2 |
|
350: |
The third clause of a 'for' statement contains an expression with a persistent side effect other than modification of a loop
counter
|
MISRAC2012-RULE_14_2-d-2 |
|
352: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
354: |
The first argument to the function 'memcmp()' is a pointer to an inappropriate type 'TEE_UUID' |
MISRAC2012-RULE_21_16-a-2 |
|
354: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
354: |
The operands of a logical '&&' in function 'tee_fs_dirfile_get_next' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
354: |
The right hand operand of the logical operator '&&' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
354: |
The second argument to the function 'memcmp()' is a pointer to an inappropriate type 'const TEE_UUID' |
MISRAC2012-RULE_21_16-a-2 |
|
360: |
Integer constant '0xFFFF0010' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
362: |
In the call of the function 'memcpy' the first argument type 'void*' is not compatible with the second argument type 'unsigned
char*'
|
MISRAC2012-RULE_21_15-a-2 |
|
362: |
Unused function's "memcpy" return value |
MISRAC2012-RULE_17_7-a-2 |
| /optee_os_MISRA/optee_os_ruchi393_core/tee/fs_htree.c |
|
19: |
An unused macro declaration 'TEE_FS_HTREE_CHIP_ID_SIZE' has been found |
MISRAC2012-RULE_2_5-a-4 |
|
21: |
An unused macro declaration 'TEE_FS_HTREE_TSK_SIZE' has been found |
MISRAC2012-RULE_2_5-a-4 |
|
22: |
An unused macro declaration 'TEE_FS_HTREE_ENC_ALG' has been found |
MISRAC2012-RULE_2_5-a-4 |
|
23: |
An unused macro declaration 'TEE_FS_HTREE_ENC_SIZE' has been found |
MISRAC2012-RULE_2_5-a-4 |
|
24: |
An unused macro declaration 'TEE_FS_HTREE_SSK_SIZE' has been found |
MISRAC2012-RULE_2_5-a-4 |
|
27: |
An unused macro declaration 'TEE_FS_HTREE_HMAC_ALG' has been found |
MISRAC2012-RULE_2_5-a-4 |
|
29: |
Do not define function-like macro: BLOCK_NUM_TO_NODE_ID |
MISRAC2012-DIR_4_9-a-4 |
|
31: |
An unused macro declaration 'NODE_ID_TO_BLOCK_NUM' has been found |
MISRAC2012-RULE_2_5-a-4 |
|
31: |
Do not define function-like macro: NODE_ID_TO_BLOCK_NUM |
MISRAC2012-DIR_4_9-a-4 |
|
77: |
Do not define function-like macro: HTREE_NODE_COMMITTED_CHILD |
MISRAC2012-DIR_4_9-a-4 |
|
125: |
Integer constant '0xF0100001' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
127: |
Unused function's "memcpy" return value |
MISRAC2012-RULE_17_7-a-2 |
|
158: |
Unused function's "memcpy" return value |
MISRAC2012-RULE_17_7-a-2 |
|
187: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
190: |
Function "traverse_post_order" is called recursively |
MISRAC2012-RULE_17_2-a-2 |
|
194: |
Function "traverse_post_order" is called recursively |
MISRAC2012-RULE_17_2-a-2 |
|
211: |
Potential macro 'UINT_MAX' used as '1' parameter of potential macro 'assert' |
MISRAC2012-RULE_20_12-a-2 |
|
211: |
The left hand operand of the logical operator '&&' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
211: |
The operands of a logical '&&' in function 'node_id_to_level' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
211: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
213: |
The argument number '1' (8 byte essential type) is passed to the function '__builtin_clz' as a parameter with a narrower essential
type (4 byte)
|
MISRAC2012-RULE_10_3-a-2 |
|
213: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
236: |
Shifting operation should be enclosed with if checking that RHS operand does not exceed the upper limit (one less than the
width in bits of the underlying type of the LHS operand)
|
MISRAC2012-RULE_12_2-a-2 |
|
237: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
249: |
The left hand operand of the logical operator '&&' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
249: |
The operands of a logical '&&' in function 'find_node' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
262: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
263: |
Integer constant '0xFFFF0000' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
265: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
272: |
Integer constant '0xFFFF0000' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
284: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
286: |
'calloc' function should not be used |
MISRAC2012-RULE_21_3-a-2 |
|
286: |
'calloc' function should not be used |
MISRAC2012-DIR_4_12-a-2 |
|
286: |
Pointer to void type should not be converted to pointer to object type 'struct htree_node *' |
MISRAC2012-RULE_11_5-a-4 |
|
287: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
288: |
Integer constant '0xFFFF000C' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
296: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with a narrower essential type (4 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
305: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
306: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
314: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
326: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
327: |
Improper expression is used in the first clause of a 'for' statement |
MISRAC2012-RULE_14_2-b-2 |
|
327: |
The second clause of a 'for' statement does not contain a loop counter |
MISRAC2012-RULE_14_2-c-2 |
|
327: |
The third clause of a 'for' statement contains an expression with a persistent side effect other than modification of a loop
counter
|
MISRAC2012-RULE_14_2-d-2 |
|
328: |
The argument number '3' ('essentially signed' type) is passed to the function 'rpc_read_node' as a parameter with the 'essentially
unsigned' type
|
MISRAC2012-RULE_10_3-b-2 |
|
332: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
334: |
The argument number '2' ('essentially signed' type) is passed to the function 'rpc_read_head' as a parameter with the 'essentially
unsigned' type
|
MISRAC2012-RULE_10_3-b-2 |
|
340: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
341: |
Integer constant '0xFFFF000F' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
347: |
The argument number '2' ('essentially signed' type) is passed to the function 'rpc_read_head' as a parameter with the 'essentially
unsigned' type
|
MISRAC2012-RULE_10_3-b-2 |
|
347: |
The variable 'head' used as the left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
354: |
Integer constant '0xFFFF000F' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
356: |
The argument number '3' ('essentially signed' type) is passed to the function 'rpc_read_node' as a parameter with the 'essentially
unsigned' type
|
MISRAC2012-RULE_10_3-b-2 |
|
379: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
380: |
Integer constant '0xFFFF0000' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
381: |
Essential type of LHS operand (16 bit) is wider than essential type of composite expression in RHS operand (8 bit) |
MISRAC2012-RULE_10_7-a-2 |
|
381: |
The expression of the 'essentially Boolean' type is assigned to an object with the 'essentially unsigned' type |
MISRAC2012-RULE_10_3-b-2 |
|
381: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
382: |
Shifting operation should be enclosed with if checking that RHS operand does not exceed the upper limit (one less than the
width in bits of the underlying type of the LHS operand)
|
MISRAC2012-RULE_12_2-a-2 |
|
404: |
The left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
415: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
416: |
Pointer to void type should not be converted to pointer to object type 'const uint8_t *' in function's argument |
MISRAC2012-RULE_11_5-a-4 |
|
421: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
428: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
435: |
The argument number '3' ('essentially Enum' type) is passed to the function 'crypto_hash_final' as a parameter with the 'essentially
unsigned' type
|
MISRAC2012-RULE_10_3-b-2 |
|
440: |
Pass parameter "ni" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
446: |
The expression of the 'essentially signed' type is assigned to an object with the 'essentially unsigned' type |
MISRAC2012-RULE_10_3-b-2 |
|
449: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
453: |
The left hand operand of the '+' operator has essentially enum type: t_hash_size |
MISRAC2012-RULE_10_1-d-2 |
|
470: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
472: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
476: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
479: |
Pointer to void type should not be converted to pointer to object type 'const uint8_t *' in function's argument |
MISRAC2012-RULE_11_5-a-4 |
|
482: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
488: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
492: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
511: |
Pointer to void type should not be converted to pointer to object type 'const uint8_t *' in function's argument |
MISRAC2012-RULE_11_5-a-4 |
|
511: |
Pointer to void type should not be converted to pointer to object type 'uint8_t *' in function's argument |
MISRAC2012-RULE_11_5-a-4 |
|
516: |
The operands of a logical '&&' in function 'authenc_decrypt_final' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
516: |
The operands of a logical '&&' in function 'authenc_decrypt_final' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
517: |
Integer constant '0xFFFF0000' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
518: |
Integer constant '0xFFFF3071' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
519: |
Integer constant '0xF0100001' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
532: |
Pointer to void type should not be converted to pointer to object type 'const uint8_t *' in function's argument |
MISRAC2012-RULE_11_5-a-4 |
|
532: |
Pointer to void type should not be converted to pointer to object type 'uint8_t *' in function's argument |
MISRAC2012-RULE_11_5-a-4 |
|
537: |
The operands of a logical '&&' in function 'authenc_encrypt_final' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
538: |
The operands of a logical '||' in function 'authenc_encrypt_final' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
538: |
The operands of a logical '||' in function 'authenc_encrypt_final' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
539: |
Integer constant '0xFFFF0000' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
569: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
573: |
The operands of a logical '&&' in function 'verify_node' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
573: |
The right hand operand of the logical operator '&&' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
574: |
The operands of a logical '&&' in function 'verify_node' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
575: |
Integer constant '0xF0100001' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
614: |
Identifiers given in declaration of 'tee_fs_htree_open' function (file: 'fs_htree.h', line: '112') are: 'ht' not: 'ht_ret' |
MISRAC2012-RULE_8_3-b-2 |
|
619: |
'calloc' function should not be used |
MISRAC2012-RULE_21_3-a-2 |
|
619: |
'calloc' function should not be used |
MISRAC2012-DIR_4_12-a-2 |
|
619: |
Pointer to void type should not be converted to pointer to object type 'struct tee_fs_htree *' |
MISRAC2012-RULE_11_5-a-4 |
|
621: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
622: |
Integer constant '0xFFFF000C' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
633: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
638: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
642: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
647: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
652: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
656: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
660: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
672: |
Pass parameter "ht" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
683: |
Parameter 'targ' is not used in function 'free_node' |
MISRAC2012-RULE_2_7-a-4 |
|
683: |
Pass parameter "targ" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
686: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
687: |
'free' function should not be used |
MISRAC2012-RULE_21_3-a-2 |
|
687: |
'free' function should not be used |
MISRAC2012-DIR_4_12-a-2 |
|
693: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
695: |
Unused function's "htree_traverse_post_order" return value |
MISRAC2012-RULE_17_7-a-2 |
|
696: |
'free' function should not be used |
MISRAC2012-RULE_21_3-a-2 |
|
696: |
'free' function should not be used |
MISRAC2012-DIR_4_12-a-2 |
|
712: |
The left hand operand of the '>=' operator has essentially Boolean type |
MISRAC2012-RULE_10_1-b-2 |
|
712: |
The right hand operand of the '>=' operator has essentially Boolean type |
MISRAC2012-RULE_10_1-b-2 |
|
717: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
718: |
Shifting operation should be enclosed with if checking that RHS operand does not exceed the upper limit (one less than the
width in bits of the underlying type of the LHS operand)
|
MISRAC2012-RULE_12_2-a-2 |
|
718: |
The value of a composite expression (8 bit essential type) is assigned to an object with wider essential type (32 bit) |
MISRAC2012-RULE_10_6-a-2 |
|
721: |
The expression of the 'unsigned int' essential type (4 byte) is assigned to an object with a narrower essential type (2 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
722: |
The expression of the 'essentially Boolean' type is assigned to an object with the 'essentially unsigned' type |
MISRAC2012-RULE_10_3-b-2 |
|
722: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
728: |
The expression of the 'essentially Boolean' type is assigned to an object with the 'essentially unsigned' type |
MISRAC2012-RULE_10_3-b-2 |
|
728: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
757: |
Identifiers given in declaration of 'tee_fs_htree_sync_to_storage' function (file: 'fs_htree.h', line: '140') are: 'ht' not:
'ht_arg'
|
MISRAC2012-RULE_8_3-b-2 |
|
764: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
765: |
Integer constant '0xF0100001' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
776: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
781: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
783: |
The value of a composite expression (32 bit essential type) is passed to function 'rpc_write_head' as parameter with wider
essential type (64 bit)
|
MISRAC2012-RULE_10_6-a-2 |
|
785: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
788: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
789: |
Unused function's "memcpy" return value |
MISRAC2012-RULE_17_7-a-2 |
|
810: |
Identifiers given in declaration of 'tee_fs_htree_write_block' function (file: 'fs_htree.h', line: '160') are: 'ht' not: 'ht_arg' |
MISRAC2012-RULE_8_3-b-2 |
|
821: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
822: |
Integer constant '0xF0100001' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
826: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
831: |
The expression of the 'essentially Boolean' type is assigned to an object with the 'essentially unsigned' type |
MISRAC2012-RULE_10_3-b-2 |
|
831: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
836: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
841: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
845: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
849: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
860: |
Identifiers given in declaration of 'tee_fs_htree_read_block' function (file: 'fs_htree.h', line: '170') are: 'ht' not: 'ht_arg' |
MISRAC2012-RULE_8_3-b-2 |
|
872: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
873: |
Integer constant '0xF0100001' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
877: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
879: |
The expression of the 'essentially Boolean' type is assigned to an object with the 'essentially unsigned' type |
MISRAC2012-RULE_10_3-b-2 |
|
879: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
884: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
888: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
890: |
Integer constant '0xF0100001' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
891: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
897: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
907: |
Identifiers given in declaration of 'tee_fs_htree_truncate' function (file: 'fs_htree.h', line: '150') are: 'ht' not: 'ht_arg' |
MISRAC2012-RULE_8_3-b-2 |
|
907: |
Pass parameter "ht_arg" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
913: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
914: |
Integer constant '0xF0100001' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
918: |
The left hand operand of the logical operator '&&' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
918: |
The operands of a logical '&&' in function 'tee_fs_htree_truncate' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
919: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
919: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
919: |
The operands of a logical '&&' in function 'tee_fs_htree_truncate' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
919: |
The operands of a logical '&&' in function 'tee_fs_htree_truncate' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
920: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
923: |
'free' function should not be used |
MISRAC2012-RULE_21_3-a-2 |
|
923: |
'free' function should not be used |
MISRAC2012-DIR_4_12-a-2 |
| /optee_os_MISRA/optee_os_ruchi393_core/tee/socket.c |
|
22: |
A tag name 'mobj' is reused |
MISRAC2012-RULE_5_7-a-2 |
|
22: |
Identifier 'mobj' is hiding an identifier from global or namespace scope |
MISRAC2012-RULE_5_3-a-2 |
|
25: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
25: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
25: |
The expression of the 'essentially signed' type is assigned to an object with the 'essentially unsigned' type |
MISRAC2012-RULE_10_3-b-2 |
|
33: |
Integer constant '0xFFFF0006' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
39: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
40: |
Integer constant '0xFFFF000C' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
42: |
Unused function's "memcpy" return value |
MISRAC2012-RULE_17_7-a-2 |
|
57: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with a narrower essential type (4 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
65: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
65: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
65: |
The expression of the 'essentially signed' type is assigned to an object with the 'essentially unsigned' type |
MISRAC2012-RULE_10_3-b-2 |
|
73: |
Integer constant '0xFFFF0006' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
86: |
A tag name 'mobj' is reused |
MISRAC2012-RULE_5_7-a-2 |
|
86: |
Identifier 'mobj' is hiding an identifier from global or namespace scope |
MISRAC2012-RULE_5_3-a-2 |
|
89: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
89: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
89: |
The expression of the 'essentially signed' type is assigned to an object with the 'essentially unsigned' type |
MISRAC2012-RULE_10_3-b-2 |
|
97: |
Integer constant '0xFFFF0006' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
103: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
104: |
Integer constant '0xFFFF000C' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
106: |
Unused function's "memcpy" return value |
MISRAC2012-RULE_17_7-a-2 |
|
117: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with a narrower essential type (4 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
125: |
A tag name 'mobj' is reused |
MISRAC2012-RULE_5_7-a-2 |
|
125: |
Identifier 'mobj' is hiding an identifier from global or namespace scope |
MISRAC2012-RULE_5_3-a-2 |
|
128: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
128: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
128: |
The expression of the 'essentially signed' type is assigned to an object with the 'essentially unsigned' type |
MISRAC2012-RULE_10_3-b-2 |
|
136: |
Integer constant '0xFFFF0006' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
142: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
143: |
Integer constant '0xFFFF000C' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
156: |
Integer constant '0xFFFF0000' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
157: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with a narrower essential type (4 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
158: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
159: |
Unused function's "memcpy" return value |
MISRAC2012-RULE_17_7-a-2 |
|
167: |
A tag name 'mobj' is reused |
MISRAC2012-RULE_5_7-a-2 |
|
167: |
Identifier 'mobj' is hiding an identifier from global or namespace scope |
MISRAC2012-RULE_5_3-a-2 |
|
170: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
170: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
170: |
The expression of the 'essentially signed' type is assigned to an object with the 'essentially unsigned' type |
MISRAC2012-RULE_10_3-b-2 |
|
178: |
Integer constant '0xFFFF0006' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
184: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
185: |
Integer constant '0xFFFF000C' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
187: |
Unused function's "memcpy" return value |
MISRAC2012-RULE_17_7-a-2 |
|
202: |
Unused function's "memcpy" return value |
MISRAC2012-RULE_17_7-a-2 |
|
204: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with a narrower essential type (4 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
212: |
Global variable 'ta_funcs' is being used only in a single function 'pta_socket_invoke_command' |
MISRAC2012-RULE_8_9-a-4 |
|
212: |
The size of the array 'ta_funcs' should be specified explicitly |
MISRAC2012-RULE_9_5-a-2 |
|
224: |
Parameter 'param_types' is not used in function 'pta_socket_open_session' |
MISRAC2012-RULE_2_7-a-4 |
|
225: |
Parameter 'pParams' is not used in function 'pta_socket_open_session' |
MISRAC2012-RULE_2_7-a-4 |
|
231: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
231: |
The operands of a logical '||' in function 'pta_socket_open_session' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
231: |
The operands of a logical '||' in function 'pta_socket_open_session' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
232: |
Integer constant '0xFFFF0001' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
234: |
Arithmetic type 'unsigned long' should not be converted to pointer to void type |
MISRAC2012-RULE_11_6-a-2 |
|
239: |
Pass parameter "sess_ctx" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
244: |
Pointer to void type should not be converted to arithmetic type 'unsigned long' |
MISRAC2012-RULE_11_6-a-2 |
|
253: |
Pass parameter "sess_ctx" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
256: |
The operands of a logical '&&' in function 'pta_socket_invoke_command' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
256: |
The operands of a logical '&&' in function 'pta_socket_invoke_command' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
256: |
The right hand operand of the logical operator '&&' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
257: |
Pointer to void type should not be converted to arithmetic type 'unsigned long' |
MISRAC2012-RULE_11_6-a-2 |
|
259: |
Integer constant '0xFFFF0009' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
262: |
Reserved name '__scattered_array_0pseudo_tas' used |
MISRAC2012-RULE_21_2-a-2 |
|
262: |
The expression of the 'essentially signed' type is assigned to an object with the 'essentially unsigned' type |
MISRAC2012-RULE_10_3-b-2 |
| /optee_os_MISRA/optee_os_ruchi393_core/tee/tadb.c |
|
53: |
An unused tag declaration 'tadb_header' has been found |
MISRAC2012-RULE_2_4-b-4 |
|
55: |
Flexible array member 'opaque' is declared |
MISRAC2012-RULE_18_7-a-2 |
|
58: |
An external identifier with the same name 'tee_tadb_ta_write' was declared in the 'tadb.c' file in line 440 |
MISRAC2012-RULE_5_8-a-2 |
|
66: |
An external identifier with the same name 'tee_tadb_ta_read' was declared in the 'tadb.c' file in line 717 |
MISRAC2012-RULE_5_8-a-2 |
|
76: |
Global variable 'tadb_obj_id' is being used only in a single function 'tadb_open' |
MISRAC2012-RULE_8_9-a-4 |
|
85: |
Usage of 'snprintf' function is not allowed |
MISRAC2012-RULE_21_6-a-2 |
|
93: |
The first argument to the function 'memcmp()' is a pointer to an inappropriate type 'const TEE_UUID' |
MISRAC2012-RULE_21_16-a-2 |
|
93: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
93: |
The second argument to the function 'memcmp()' is a pointer to an inappropriate type 'const TEE_UUID' |
MISRAC2012-RULE_21_16-a-2 |
|
99: |
A tag name 'mobj' is reused |
MISRAC2012-RULE_5_7-a-2 |
|
99: |
Identifier 'mobj' is hiding an identifier from global or namespace scope |
MISRAC2012-RULE_5_3-a-2 |
|
106: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
107: |
Integer constant '0xFFFF000C' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
109: |
Pointer to void type should not be converted to pointer to object type 'char *' in function's argument |
MISRAC2012-RULE_11_5-a-4 |
|
111: |
The size of the array 'params' should be specified explicitly |
MISRAC2012-RULE_9_5-a-2 |
|
118: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
119: |
The expression of the 'essentially unsigned' type is assigned to an object with the 'essentially signed' type |
MISRAC2012-RULE_10_3-b-2 |
|
126: |
A tag name 'mobj' is reused |
MISRAC2012-RULE_5_7-a-2 |
|
126: |
Identifier 'mobj' is hiding an identifier from global or namespace scope |
MISRAC2012-RULE_5_3-a-2 |
|
132: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
133: |
Integer constant '0xFFFF000C' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
135: |
Pointer to void type should not be converted to pointer to object type 'char *' in function's argument |
MISRAC2012-RULE_11_5-a-4 |
|
137: |
The size of the array 'params' should be specified explicitly |
MISRAC2012-RULE_9_5-a-2 |
|
152: |
'realloc' function should not be used |
MISRAC2012-RULE_21_3-a-2 |
|
152: |
'realloc' function should not be used |
MISRAC2012-DIR_4_12-a-2 |
|
152: |
Left-hand operand of right-shift operator is an expression of ' int' type |
MISRAC2012-RULE_1_3-o-2 |
|
152: |
The argument number '2' ('essentially signed' type) is passed to the function 'realloc' as a parameter with the 'essentially
unsigned' type
|
MISRAC2012-RULE_10_3-b-2 |
|
153: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
154: |
Integer constant '0xFFFF000C' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
155: |
Pointer to void type should not be converted to pointer to object type 'bitstr_t *' |
MISRAC2012-RULE_11_5-a-4 |
|
157: |
'while' statement in a function 'maybe_grow_files' should be followed by a block |
MISRAC2012-RULE_15_6-a-2 |
|
157: |
Left-hand operand of right-shift operator is a variable '_start' of 'signed int' type |
MISRAC2012-RULE_1_3-o-2 |
|
157: |
Left-hand operand of right-shift operator is a variable '_stop' of 'signed int' type |
MISRAC2012-RULE_1_3-o-2 |
|
157: |
Reserved name '_name' used |
MISRAC2012-RULE_21_2-a-2 |
|
157: |
Reserved name '_start' used |
MISRAC2012-RULE_21_2-a-2 |
|
157: |
Reserved name '_startbyte' used |
MISRAC2012-RULE_21_2-a-2 |
|
157: |
Reserved name '_stop' used |
MISRAC2012-RULE_21_2-a-2 |
|
157: |
Reserved name '_stopbyte' used |
MISRAC2012-RULE_21_2-a-2 |
|
157: |
Shifting operation should be enclosed with if checking that RHS operand lies between zero and one less than the width in bits
of the underlying type of the LHS operand
|
MISRAC2012-RULE_12_2-a-2 |
|
157: |
The right hand operand of the shift operator '<<' has essentially signed type 'int' |
MISRAC2012-RULE_10_1-f-2 |
|
157: |
The right hand operand of the shift operator '>>' has essentially signed type 'int' |
MISRAC2012-RULE_10_1-f-2 |
|
167: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
168: |
Left-hand operand of right-shift operator is a variable 'idx' of 'signed int' type |
MISRAC2012-RULE_1_3-o-2 |
|
168: |
Shifting operation should be enclosed with if checking that RHS operand lies between zero and one less than the width in bits
of the underlying type of the LHS operand
|
MISRAC2012-RULE_12_2-a-2 |
|
168: |
The right hand operand of the shift operator '<<' has essentially signed type 'int' |
MISRAC2012-RULE_10_1-f-2 |
|
176: |
Left-hand operand of right-shift operator is a variable 'idx' of 'signed int' type |
MISRAC2012-RULE_1_3-o-2 |
|
176: |
Shifting operation should be enclosed with if checking that RHS operand lies between zero and one less than the width in bits
of the underlying type of the LHS operand
|
MISRAC2012-RULE_12_2-a-2 |
|
176: |
The right hand operand of the shift operator '<<' has essentially signed type 'int' |
MISRAC2012-RULE_10_1-f-2 |
|
179: |
Pass parameter "db" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
182: |
Left-hand operand of right-shift operator is a variable 'idx' of 'signed int' type |
MISRAC2012-RULE_1_3-o-2 |
|
182: |
Shifting operation should be enclosed with if checking that RHS operand lies between zero and one less than the width in bits
of the underlying type of the LHS operand
|
MISRAC2012-RULE_12_2-a-2 |
|
182: |
The expression of the 'essentially signed' type is returned from function 'test_file' with the 'essentially Boolean' type |
MISRAC2012-RULE_10_3-b-2 |
|
182: |
The right hand operand of the shift operator '<<' has essentially signed type 'int' |
MISRAC2012-RULE_10_1-f-2 |
|
193: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
193: |
The operands of a logical '&&' in function 'read_ent' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
193: |
The operands of a logical '&&' in function 'read_ent' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
194: |
Integer constant '0xFFFF0008' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
210: |
'calloc' function should not be used |
MISRAC2012-RULE_21_3-a-2 |
|
210: |
'calloc' function should not be used |
MISRAC2012-DIR_4_12-a-2 |
|
210: |
Pointer to void type should not be converted to pointer to object type 'struct tee_tadb_dir *' |
MISRAC2012-RULE_11_5-a-4 |
|
213: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with narrower essential type (4 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
216: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
217: |
Integer constant '0xFFFF000C' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
222: |
Integer constant '0xFFFF0008' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
226: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
227: |
'free' function should not be used |
MISRAC2012-RULE_21_3-a-2 |
|
227: |
'free' function should not be used |
MISRAC2012-DIR_4_12-a-2 |
|
239: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
240: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
242: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
243: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
256: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
258: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
260: |
'free' function should not be used |
MISRAC2012-RULE_21_3-a-2 |
|
260: |
'free' function should not be used |
MISRAC2012-DIR_4_12-a-2 |
|
261: |
'free' function should not be used |
MISRAC2012-RULE_21_3-a-2 |
|
261: |
'free' function should not be used |
MISRAC2012-DIR_4_12-a-2 |
|
278: |
The value of a composite expression (32 bit essential type) is assigned to an object with wider essential type (64 bit) |
MISRAC2012-RULE_10_6-a-2 |
|
281: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
287: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
301: |
Pointer to void type should not be converted to pointer to object type 'const uint8_t *' |
MISRAC2012-RULE_11_5-a-4 |
|
302: |
Pointer to void type should not be converted to pointer to object type 'uint8_t *' in function's argument |
MISRAC2012-RULE_11_5-a-4 |
|
303: |
The left hand operand of the logical operator '||' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
303: |
The operands of a logical '||' in function 'tadb_update_payload' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
316: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
330: |
Improper expression is used in the first clause of a 'for' statement |
MISRAC2012-RULE_14_2-b-2 |
|
330: |
Only one 'goto' statement in loop is allowed. This loop contains 'goto' in lines: 337, 349, 355 |
MISRAC2012-RULE_15_4-a-4 |
|
330: |
The second clause of a 'for' statement does not contain a loop counter |
MISRAC2012-RULE_14_2-c-2 |
|
330: |
The third clause of a 'for' statement contains an expression with a persistent side effect other than modification of a loop
counter
|
MISRAC2012-RULE_14_2-d-2 |
|
334: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
335: |
Integer constant '0xFFFF0008' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
337: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
343: |
The argument number '2' ('essentially unsigned' type) is passed to the function 'test_file' as a parameter with the 'essentially
signed' type
|
MISRAC2012-RULE_10_3-b-2 |
|
346: |
Unused function's "memset" return value |
MISRAC2012-RULE_17_7-a-2 |
|
348: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
349: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
353: |
The argument number '2' ('essentially unsigned' type) is passed to the function 'set_file' as a parameter with the 'essentially
signed' type
|
MISRAC2012-RULE_10_3-b-2 |
|
354: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
355: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
359: |
'free' function should not be used |
MISRAC2012-RULE_21_3-a-2 |
|
359: |
'free' function should not be used |
MISRAC2012-DIR_4_12-a-2 |
|
366: |
Identifiers given in declaration of 'tee_tadb_ta_create' function (file: 'tadb.h', line: '47') are: 'ta' not: 'ta_ret' |
MISRAC2012-RULE_8_3-b-2 |
|
374: |
Integer constant '0xFFFF0000' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
376: |
'calloc' function should not be used |
MISRAC2012-RULE_21_3-a-2 |
|
376: |
'calloc' function should not be used |
MISRAC2012-DIR_4_12-a-2 |
|
376: |
Pointer to void type should not be converted to pointer to object type 'struct tee_tadb_ta_write *' |
MISRAC2012-RULE_11_5-a-4 |
|
377: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
378: |
Integer constant '0xFFFF000C' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
381: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
382: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
391: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
392: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
394: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
395: |
'for' statement in a function 'tee_tadb_ta_create' should be followed by a block |
MISRAC2012-RULE_15_6-a-2 |
|
395: |
Disallowed comma operator is used in function 'tee_tadb_ta_create' |
MISRAC2012-RULE_12_3-a-4 |
|
395: |
Left-hand operand of right-shift operator is an expression of ' int' type |
MISRAC2012-RULE_1_3-o-2 |
|
395: |
Reserved name '_byte' used |
MISRAC2012-RULE_21_2-a-2 |
|
395: |
Reserved name '_lb' used |
MISRAC2012-RULE_21_2-a-2 |
|
395: |
Reserved name '_name' used |
MISRAC2012-RULE_21_2-a-2 |
|
395: |
Reserved name '_nbits' used |
MISRAC2012-RULE_21_2-a-2 |
|
395: |
Reserved name '_stopbyte' used |
MISRAC2012-RULE_21_2-a-2 |
|
395: |
Reserved name '_value' used |
MISRAC2012-RULE_21_2-a-2 |
|
395: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
395: |
The '++' operator should cause the only side effect in an expression |
MISRAC2012-RULE_13_3-a-4 |
|
395: |
The third clause of a 'for' statement should not contain a comma operator |
MISRAC2012-RULE_14_2-d-2 |
|
401: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
402: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
406: |
The expression of the 'essentially signed' type is assigned to an object with the 'essentially unsigned' type |
MISRAC2012-RULE_10_3-b-2 |
|
410: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
411: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
414: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
415: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
419: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
420: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
423: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
424: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
435: |
'free' function should not be used |
MISRAC2012-RULE_21_3-a-2 |
|
435: |
'free' function should not be used |
MISRAC2012-DIR_4_12-a-2 |
|
440: |
A tag name 'tee_tadb_ta_write' is reused |
MISRAC2012-RULE_5_7-a-2 |
|
444: |
Pointer to void type should not be converted to pointer to object type 'const uint8_t *' |
MISRAC2012-RULE_11_5-a-4 |
|
448: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
449: |
Reserved name '_a' used |
MISRAC2012-RULE_21_2-a-2 |
|
449: |
Reserved name '_b' used |
MISRAC2012-RULE_21_2-a-2 |
|
449: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
453: |
The argument number '4' ('essentially unsigned' type) is passed to the function 'tee_fs_rpc_write_init' as a parameter with
the 'essentially signed' type
|
MISRAC2012-RULE_10_3-b-2 |
|
454: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
459: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
463: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
467: |
The variable 'rb' used as the left hand side operand of the '+=' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
478: |
Unused function's "tee_fs_rpc_close" return value |
MISRAC2012-RULE_17_7-a-2 |
|
479: |
Unused function's "ta_operation_remove" return value |
MISRAC2012-RULE_17_7-a-2 |
|
482: |
The argument number '2' ('essentially unsigned' type) is passed to the function 'clear_file' as a parameter with the 'essentially
signed' type
|
MISRAC2012-RULE_10_3-b-2 |
|
486: |
'free' function should not be used |
MISRAC2012-RULE_21_3-a-2 |
|
486: |
'free' function should not be used |
MISRAC2012-DIR_4_12-a-2 |
|
502: |
Improper expression is used in the first clause of a 'for' statement |
MISRAC2012-RULE_14_2-b-2 |
|
502: |
Only one 'break' statement in loop is allowed. This loop contains 'breaks' in lines: 508, 515 |
MISRAC2012-RULE_15_4-a-4 |
|
502: |
The second clause of a 'for' statement does not contain a loop counter |
MISRAC2012-RULE_14_2-c-2 |
|
502: |
The third clause of a 'for' statement contains an expression with a persistent side effect other than modification of a loop
counter
|
MISRAC2012-RULE_14_2-d-2 |
|
506: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
507: |
Integer constant '0xFFFF0008' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
512: |
The first argument to the function 'memcmp()' is a pointer to an inappropriate type 'TEE_UUID' |
MISRAC2012-RULE_21_16-a-2 |
|
512: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
512: |
The second argument to the function 'memcmp()' is a pointer to an inappropriate type 'const TEE_UUID' |
MISRAC2012-RULE_21_16-a-2 |
|
513: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
532: |
Integer constant '0xFFFF0008' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
548: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
549: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
551: |
Unused function's "tee_fs_rpc_close" return value |
MISRAC2012-RULE_17_7-a-2 |
|
562: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
566: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
567: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
570: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
571: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
573: |
The argument number '2' ('essentially unsigned' type) is passed to the function 'clear_file' as a parameter with the 'essentially
signed' type
|
MISRAC2012-RULE_10_3-b-2 |
|
579: |
'free' function should not be used |
MISRAC2012-RULE_21_3-a-2 |
|
579: |
'free' function should not be used |
MISRAC2012-DIR_4_12-a-2 |
|
581: |
Unused function's "ta_operation_remove" return value |
MISRAC2012-RULE_17_7-a-2 |
|
600: |
Integer constant '0xFFFF0000' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
603: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
608: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
614: |
The argument number '2' ('essentially unsigned' type) is passed to the function 'clear_file' as a parameter with the 'essentially
signed' type
|
MISRAC2012-RULE_10_3-b-2 |
|
619: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
622: |
Unused function's "ta_operation_remove" return value |
MISRAC2012-RULE_17_7-a-2 |
|
626: |
Identifiers given in declaration of 'tee_tadb_ta_open' function (file: 'tadb.h', line: '56') are: 'ta' not: 'ta_ret' |
MISRAC2012-RULE_8_3-b-2 |
|
634: |
Integer constant '0xFFFF0000' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
636: |
'calloc' function should not be used |
MISRAC2012-RULE_21_3-a-2 |
|
636: |
'calloc' function should not be used |
MISRAC2012-DIR_4_12-a-2 |
|
636: |
Pointer to void type should not be converted to pointer to object type 'struct tee_tadb_ta_read *' |
MISRAC2012-RULE_11_5-a-4 |
|
637: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
638: |
Integer constant '0xFFFF000C' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
641: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
642: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
647: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
648: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
652: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
653: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
656: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
657: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
665: |
'free' function should not be used |
MISRAC2012-RULE_21_3-a-2 |
|
665: |
'free' function should not be used |
MISRAC2012-DIR_4_12-a-2 |
|
670: |
Pass parameter "ta" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
675: |
Pass parameter "ta" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
678: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
678: |
The operands of a logical '||' in function 'tee_tadb_get_tag' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
678: |
The operands of a logical '||' in function 'tee_tadb_get_tag' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
679: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with a narrower essential type (4 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
680: |
Integer constant '0xFFFF0010' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
682: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with a narrower essential type (4 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
684: |
Unused function's "memcpy" return value |
MISRAC2012-RULE_17_7-a-2 |
|
692: |
The value of a composite expression (32 bit essential type) is assigned to an object with wider essential type (64 bit) |
MISRAC2012-RULE_10_6-a-2 |
|
694: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
698: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
699: |
Integer constant '0xFFFF000C' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
701: |
Pointer to void type should not be converted to pointer to object type 'uint8_t *' |
MISRAC2012-RULE_11_5-a-4 |
|
702: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
704: |
The size of the array 'params' should be specified explicitly |
MISRAC2012-RULE_9_5-a-2 |
|
705: |
The expression of the 'essentially signed' type is assigned to an object with the 'essentially unsigned' type |
MISRAC2012-RULE_10_3-b-2 |
|
710: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
717: |
A tag name 'tee_tadb_ta_read' is reused |
MISRAC2012-RULE_5_7-a-2 |
|
720: |
The value of a composite expression (32 bit essential type) is assigned to an object with wider essential type (64 bit) |
MISRAC2012-RULE_10_6-a-2 |
|
724: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
727: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
729: |
The left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
730: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
734: |
Reserved name '_a' used |
MISRAC2012-RULE_21_2-a-2 |
|
734: |
Reserved name '_b' used |
MISRAC2012-RULE_21_2-a-2 |
|
734: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
735: |
'malloc' function should not be used |
MISRAC2012-RULE_21_3-a-2 |
|
735: |
'malloc' function should not be used |
MISRAC2012-DIR_4_12-a-2 |
|
735: |
Pointer to void type should not be converted to pointer to object type 'uint8_t *' |
MISRAC2012-RULE_11_5-a-4 |
|
735: |
The names of the identifiers 'b' and '_b' (line: 734 in the 'tadb.c' file) differ only in the presence/absence of the underscore
character
|
MISRAC2012-DIR_4_5-a-4 |
|
737: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
738: |
Integer constant '0xFFFF000C' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
741: |
Reserved name '_a' used |
MISRAC2012-RULE_21_2-a-2 |
|
741: |
Reserved name '_b' used |
MISRAC2012-RULE_21_2-a-2 |
|
741: |
The names of the identifiers '_b' and 'b' (line: 735 in the 'tadb.c' file) differ only in the presence/absence of the underscore
character
|
MISRAC2012-DIR_4_5-a-4 |
|
741: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
744: |
The left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
746: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
751: |
'free' function should not be used |
MISRAC2012-RULE_21_3-a-2 |
|
751: |
'free' function should not be used |
MISRAC2012-DIR_4_12-a-2 |
|
752: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
762: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
773: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
775: |
Unused function's "tee_fs_rpc_close" return value |
MISRAC2012-RULE_17_7-a-2 |
|
777: |
'free' function should not be used |
MISRAC2012-RULE_21_3-a-2 |
|
777: |
'free' function should not be used |
MISRAC2012-DIR_4_12-a-2 |
| /optee_os_MISRA/optee_os_ruchi393_core/tee/tee_cryp_concat_kdf.c |
|
33: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
37: |
Only one 'goto' statement in loop is allowed. This loop contains 'goto' in lines: 42, 46, 49, 54, 58 |
MISRAC2012-RULE_15_4-a-4 |
|
37: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
38: |
The argument number '1' (8 byte essential type) is passed to the function '__builtin_bswap32' as a parameter with a narrower
essential type (4 byte)
|
MISRAC2012-RULE_10_3-a-2 |
|
42: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
46: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
49: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
50: |
The left hand operand of the logical operator '&&' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
50: |
The right hand operand of the logical operator '&&' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
54: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
58: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
60: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
62: |
Unused function's "memcpy" return value |
MISRAC2012-RULE_17_7-a-2 |
|
63: |
The variable 'out' used as the left hand side operand of the '+=' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
| /optee_os_MISRA/optee_os_ruchi393_core/tee/tee_cryp_hkdf.c |
|
14: |
Global variable 'zero_salt' is being used only in a single function 'hkdf_extract' |
MISRAC2012-RULE_8_9-a-4 |
|
23: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
25: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
25: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
25: |
The operands of a logical '||' in function 'hkdf_extract' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
25: |
The operands of a logical '||' in function 'hkdf_extract' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
31: |
Parameter 'salt' is modified in function 'hkdf_extract' |
MISRAC2012-RULE_17_8-a-4 |
|
34: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
38: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
39: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
49: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
53: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
57: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
74: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
74: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
78: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
80: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
80: |
The operands of a logical '||' in function 'hkdf_expand' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
80: |
The operands of a logical '||' in function 'hkdf_expand' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
81: |
Integer constant '0xFFFF0007' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
82: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
85: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
86: |
Parameter 'info_len' is modified in function 'hkdf_expand' |
MISRAC2012-RULE_17_8-a-4 |
|
89: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
90: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
98: |
Integer constant '0xFFFF0006' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
99: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
115: |
Only one 'goto' statement in loop is allowed. This loop contains 'goto' in lines: 120, 123, 126, 129, 132 |
MISRAC2012-RULE_15_4-a-4 |
|
116: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with a narrower essential type (1 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
120: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
123: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
126: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
129: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
132: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
134: |
The variable 'okm' used as the left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
134: |
Unused function's "memcpy" return value |
MISRAC2012-RULE_17_7-a-2 |
| /optee_os_MISRA/optee_os_ruchi393_core/tee/tee_cryp_pbkdf2.c |
|
28: |
Pass parameter "p" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
35: |
Unused function's "memset" return value |
MISRAC2012-RULE_17_7-a-2 |
|
42: |
The left hand operand of the logical operator '&&' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
42: |
The right hand operand of the logical operator '&&' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
65: |
'for' statement in a function 'pbkdf2_f' should be followed by a block |
MISRAC2012-RULE_15_6-a-2 |
|
79: |
A tag name 'pbkdf2_parms' is reused |
MISRAC2012-RULE_5_7-a-2 |
|
79: |
Identifier 'pbkdf2_parms' is hiding an identifier from global or namespace scope |
MISRAC2012-RULE_5_3-a-2 |
|
80: |
A tag name 'hmac_parms' is reused |
MISRAC2012-RULE_5_7-a-2 |
|
80: |
Identifier 'hmac_parms' is hiding an identifier from global or namespace scope |
MISRAC2012-RULE_5_3-a-2 |
|
82: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
82: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
102: |
The argument number '3' (8 byte essential type) is passed to the function 'pbkdf2_f' as a parameter with a narrower essential
type (4 byte)
|
MISRAC2012-RULE_10_3-a-2 |
|
105: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
106: |
The variable 'out' used as the left hand side operand of the '+=' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
108: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
109: |
The argument number '3' (8 byte essential type) is passed to the function 'pbkdf2_f' as a parameter with a narrower essential
type (4 byte)
|
MISRAC2012-RULE_10_3-a-2 |
| /optee_os_MISRA/optee_os_ruchi393_core/tee/tee_cryp_utl.c |
|
19: |
The names of the identifiers 'tee_alg_get_digest_size' and '__tee_alg_get_digest_size' (line: 174 in the 'utee_defines.h'
file) differ only in the presence/absence of the underscore character
|
MISRAC2012-DIR_4_5-a-4 |
|
23: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
24: |
Integer constant '0xFFFF000A' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
39: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
43: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
44: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
48: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
49: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
59: |
The function 'tee_cipher_get_block_size' is referenced only in the translation unit where it is defined |
MISRAC2012-RULE_8_7-a-4 |
|
86: |
Integer constant '0xF0000613' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
91: |
Integer constant '0xFFFF000A' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
104: |
The operands of a logical '&&' in function 'tee_do_cipher_update' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
104: |
The operands of a logical '&&' in function 'tee_do_cipher_update' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
105: |
Integer constant '0xFFFF0006' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
115: |
The operands of a logical '&&' in function 'tee_do_cipher_update' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
115: |
The operands of a logical '&&' in function 'tee_do_cipher_update' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
116: |
Integer constant '0xFFFF0006' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
127: |
Integer constant '0xFFFF0006' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
146: |
Integer constant '0xFFFF000A' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
158: |
The 'plat_prng_add_jitter_entropy' function is also defined in other translation units |
MISRAC2012-RULE_8_6-a-2 |
|
172: |
The function 'plat_rng_init' is referenced only in the translation unit where it is defined |
MISRAC2012-RULE_8_7-a-4 |
|
193: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
195: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
205: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
213: |
Reserved name '__scattered_array_0initcall' used |
MISRAC2012-RULE_21_2-a-2 |
| /optee_os_MISRA/optee_os_ruchi393_core/tee/tee_fs_key_manager.c |
|
39: |
A tag name 'tee_fs_ssk' is reused |
MISRAC2012-RULE_5_7-a-2 |
|
48: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
48: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
48: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
48: |
The operands of a logical '||' in function 'do_hmac' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
48: |
The operands of a logical '||' in function 'do_hmac' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
48: |
The operands of a logical '||' in function 'do_hmac' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
49: |
Integer constant '0xFFFF0006' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
55: |
Pointer to void type should not be converted to pointer to object type 'const uint8_t *' in function's argument |
MISRAC2012-RULE_11_5-a-4 |
|
57: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
59: |
Pointer to void type should not be converted to pointer to object type 'const uint8_t *' in function's argument |
MISRAC2012-RULE_11_5-a-4 |
|
61: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
63: |
Pointer to void type should not be converted to pointer to object type 'uint8_t *' in function's argument |
MISRAC2012-RULE_11_5-a-4 |
|
65: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
81: |
The dimension of array 'dst_key' is not an integer constant expression |
MISRAC2012-RULE_18_8-a-2 |
|
83: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
83: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
83: |
The operands of a logical '||' in function 'tee_fs_fek_crypt' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
83: |
The operands of a logical '||' in function 'tee_fs_fek_crypt' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
84: |
Integer constant '0xFFFF0006' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
87: |
Integer constant '0xFFFF0006' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
90: |
Integer constant '0xFFFF0000' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
92: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
94: |
The argument number '4' ('essentially Enum' type) is passed to the function 'do_hmac' as a parameter with the 'essentially
unsigned' type
|
MISRAC2012-RULE_10_3-b-2 |
|
105: |
The argument number '4' ('essentially Enum' type) is passed to the function 'do_hmac' as a parameter with the 'essentially
unsigned' type
|
MISRAC2012-RULE_10_3-b-2 |
|
116: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
120: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
124: |
Unused function's "memcpy" return value |
MISRAC2012-RULE_17_7-a-2 |
|
143: |
Missing statement or comment before terminating 'break' |
MISRAC2012-RULE_16_4-b-2 |
|
143: |
Missing statement or comment before terminating 'break' |
MISRAC2012-RULE_16_1-f-2 |
|
143: |
The 'switch' statement contains less than two switch-clauses |
MISRAC2012-RULE_16_6-a-2 |
|
143: |
The 'switch' statement contains less than two switch-clauses |
MISRAC2012-RULE_16_1-h-2 |
|
143: |
The result of comparison is always true or always false |
MISRAC2012-RULE_14_3-i-2 |
|
155: |
Identifiers given in declaration of 'tee_fs_generate_fek' function (file: 'tee_fs_key_manager.h', line: '19') are: 'encrypted_fek,
fek_size' not: 'buf, buf_size'
|
MISRAC2012-RULE_8_3-b-2 |
|
160: |
Integer constant '0xFFFF0006' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
162: |
Pointer to void type should not be converted to pointer to object type 'uint8_t *' in function's argument |
MISRAC2012-RULE_11_5-a-4 |
|
166: |
Pointer to void type should not be converted to pointer to object type 'const uint8_t *' in function's argument |
MISRAC2012-RULE_11_5-a-4 |
|
167: |
Pointer to void type should not be converted to pointer to object type 'uint8_t *' in function's argument |
MISRAC2012-RULE_11_5-a-4 |
|
191: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
196: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
201: |
Identifier 'out' is hiding parameter with the same name |
MISRAC2012-RULE_5_3-b-2 |
|
218: |
The expression of the 'essentially signed' type is assigned to an object with the 'essentially unsigned' type |
MISRAC2012-RULE_10_3-b-2 |
|
219: |
The expression of the 'essentially signed' type is assigned to an object with the 'essentially unsigned' type |
MISRAC2012-RULE_10_3-b-2 |
|
247: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
252: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
257: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
262: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
265: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
277: |
Reserved name '__scattered_array_0initcall' used |
MISRAC2012-RULE_21_2-a-2 |
| /optee_os_MISRA/optee_os_ruchi393_core/tee/tee_fs_rpc.c |
|
21: |
An unused tag declaration 'tee_fs_dir' has been found |
MISRAC2012-RULE_2_4-b-4 |
|
42: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
43: |
Integer constant '0xFFFF000C' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
58: |
The expression of the 'essentially unsigned' type is assigned to an object with the 'essentially signed' type |
MISRAC2012-RULE_10_3-b-2 |
|
82: |
The expression of the 'essentially signed' type is assigned to an object with the 'essentially unsigned' type |
MISRAC2012-RULE_10_3-b-2 |
|
97: |
Integer constant '0xFFFF0006' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
99: |
Pointer to void type should not be converted to pointer to object type 'uint8_t *' |
MISRAC2012-RULE_11_5-a-4 |
|
102: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
103: |
Integer constant '0xFFFF000C' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
107: |
The expression of the 'essentially signed' type is assigned to an object with the 'essentially unsigned' type |
MISRAC2012-RULE_10_3-b-2 |
|
136: |
Integer constant '0xFFFF0006' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
138: |
Pointer to void type should not be converted to pointer to object type 'uint8_t *' |
MISRAC2012-RULE_11_5-a-4 |
|
141: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
142: |
Integer constant '0xFFFF000C' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
146: |
The expression of the 'essentially signed' type is assigned to an object with the 'essentially unsigned' type |
MISRAC2012-RULE_10_3-b-2 |
|
166: |
The expression of the 'essentially signed' type is assigned to an object with the 'essentially unsigned' type |
MISRAC2012-RULE_10_3-b-2 |
|
184: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
185: |
Integer constant '0xFFFF000C' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
| /optee_os_MISRA/optee_os_ruchi393_core/tee/tee_obj.c |
|
26: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
27: |
Pointer to object type 'struct tee_obj *' should not be converted to integral type 'unsigned long' |
MISRAC2012-RULE_11_4-a-4 |
|
32: |
Integer constant '0xFFFF0007' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
39: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
41: |
Unused function's "tee_pobj_release" return value |
MISRAC2012-RULE_17_7-a-2 |
|
51: |
'while' statement in a function 'tee_obj_close_all' should be followed by a block |
MISRAC2012-RULE_15_6-a-2 |
|
61: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
62: |
Integer constant '0xF0100003' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
65: |
Integer constant '0xF0100001' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
67: |
Unused function value (function called through expression) |
MISRAC2012-RULE_17_7-a-2 |
|
77: |
'calloc' function should not be used |
MISRAC2012-RULE_21_3-a-2 |
|
77: |
'calloc' function should not be used |
MISRAC2012-DIR_4_12-a-2 |
|
77: |
Pointer to void type should not be converted to pointer to object type 'struct tee_obj *' in function's return |
MISRAC2012-RULE_11_5-a-4 |
|
82: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
84: |
'free' function should not be used |
MISRAC2012-RULE_21_3-a-2 |
|
84: |
'free' function should not be used |
MISRAC2012-DIR_4_12-a-2 |
|
85: |
'free' function should not be used |
MISRAC2012-RULE_21_3-a-2 |
|
85: |
'free' function should not be used |
MISRAC2012-DIR_4_12-a-2 |
| /optee_os_MISRA/optee_os_ruchi393_core/tee/tee_pobj.c |
|
12: |
A tag name 'tee_pobjs' is reused |
MISRAC2012-RULE_5_7-a-2 |
|
19: |
The left hand operand of the logical operator '||' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
19: |
The right hand operand of the logical operator '||' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
21: |
Integer constant '0xFFFF0003' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
30: |
The left hand operand of the logical operator '||' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
30: |
The right hand operand of the logical operator '||' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
32: |
The left hand operand of the logical operator '&&' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
32: |
The operands of a logical '&&' in function 'tee_pobj_check_access' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
32: |
The right hand operand of the logical operator '&&' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
34: |
Integer constant '0xFFFF0003' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
45: |
Integer constant '0xFFFF0003' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
48: |
The left hand operand of the logical operator '||' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
48: |
The right hand operand of the logical operator '||' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
50: |
The left hand operand of the logical operator '&&' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
50: |
The operands of a logical '&&' in function 'tee_pobj_check_access' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
50: |
The right hand operand of the logical operator '&&' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
52: |
Integer constant '0xFFFF0003' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
55: |
Integer constant '0xFFFF0003' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
60: |
Pass parameter "obj_id" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
60: |
Pass parameter "uuid" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
72: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
74: |
The first argument to the function 'memcmp()' is a pointer to an inappropriate type 'void' |
MISRAC2012-RULE_21_16-a-2 |
|
74: |
The second argument to the function 'memcmp()' is a pointer to an inappropriate type 'void' |
MISRAC2012-RULE_21_16-a-2 |
|
75: |
The first argument to the function 'memcmp()' is a pointer to an inappropriate type 'TEE_UUID' |
MISRAC2012-RULE_21_16-a-2 |
|
75: |
The second argument to the function 'memcmp()' is a pointer to an inappropriate type 'TEE_UUID' |
MISRAC2012-RULE_21_16-a-2 |
|
81: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
84: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
87: |
Integer constant '0xFFFF0003' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
88: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
93: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
97: |
'calloc' function should not be used |
MISRAC2012-RULE_21_3-a-2 |
|
97: |
'calloc' function should not be used |
MISRAC2012-DIR_4_12-a-2 |
|
97: |
Pointer to void type should not be converted to pointer to object type 'struct tee_pobj *' |
MISRAC2012-RULE_11_5-a-4 |
|
98: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
99: |
Integer constant '0xFFFF000C' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
100: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
104: |
Unused function's "memcpy" return value |
MISRAC2012-RULE_17_7-a-2 |
|
113: |
'malloc' function should not be used |
MISRAC2012-RULE_21_3-a-2 |
|
113: |
'malloc' function should not be used |
MISRAC2012-DIR_4_12-a-2 |
|
115: |
'free' function should not be used |
MISRAC2012-RULE_21_3-a-2 |
|
115: |
'free' function should not be used |
MISRAC2012-DIR_4_12-a-2 |
|
116: |
Integer constant '0xFFFF000C' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
117: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
119: |
Unused function's "memcpy" return value |
MISRAC2012-RULE_17_7-a-2 |
|
133: |
Identifiers given in declaration of 'tee_pobj_create_final' function (file: 'tee_pobj.h', line: '39') are: 'obj' not: 'po' |
MISRAC2012-RULE_8_3-b-2 |
|
144: |
Integer constant '0xFFFF0006' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
150: |
'free' function should not be used |
MISRAC2012-RULE_21_3-a-2 |
|
150: |
'free' function should not be used |
MISRAC2012-DIR_4_12-a-2 |
|
151: |
'free' function should not be used |
MISRAC2012-RULE_21_3-a-2 |
|
151: |
'free' function should not be used |
MISRAC2012-DIR_4_12-a-2 |
|
158: |
Pass parameter "obj_id" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
164: |
The operands of a logical '||' in function 'tee_pobj_rename' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
164: |
The operands of a logical '||' in function 'tee_pobj_rename' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
165: |
Integer constant '0xFFFF0006' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
169: |
Integer constant '0xFFFF0007' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
170: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
173: |
'malloc' function should not be used |
MISRAC2012-RULE_21_3-a-2 |
|
173: |
'malloc' function should not be used |
MISRAC2012-DIR_4_12-a-2 |
|
175: |
Integer constant '0xFFFF000C' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
176: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
178: |
Unused function's "memcpy" return value |
MISRAC2012-RULE_17_7-a-2 |
|
181: |
'free' function should not be used |
MISRAC2012-RULE_21_3-a-2 |
|
181: |
'free' function should not be used |
MISRAC2012-DIR_4_12-a-2 |
|
188: |
'free' function should not be used |
MISRAC2012-RULE_21_3-a-2 |
|
188: |
'free' function should not be used |
MISRAC2012-DIR_4_12-a-2 |
| /optee_os_MISRA/optee_os_ruchi393_core/tee/tee_ree_fs.c |
|
48: |
Left-hand operand of right-shift operator is a variable 'position' of 'signed int' type |
MISRAC2012-RULE_1_3-o-2 |
|
55: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
55: |
The argument number '2' ('essentially signed' type) is passed to the function 'mempool_alloc' as a parameter with the 'essentially
unsigned' type
|
MISRAC2012-RULE_10_3-b-2 |
|
67: |
The argument number '1' ('essentially unsigned' type) is passed to the function 'pos_to_block_num' as a parameter with the
'essentially signed' type
|
MISRAC2012-RULE_10_3-b-2 |
|
67: |
The expression of the 'essentially signed' type is assigned to an object with the 'essentially unsigned' type |
MISRAC2012-RULE_10_3-b-2 |
|
68: |
The argument number '1' ('essentially unsigned' type) is passed to the function 'pos_to_block_num' as a parameter with the
'essentially signed' type
|
MISRAC2012-RULE_10_3-b-2 |
|
68: |
The expression of the 'essentially signed' type is assigned to an object with the 'essentially unsigned' type |
MISRAC2012-RULE_10_3-b-2 |
|
68: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
70: |
Cast from 'const void *' removes 'const' qualifier |
MISRAC2012-RULE_11_8-a-2 |
|
70: |
Pointer to void type should not be converted to pointer to object type 'uint8_t *' |
MISRAC2012-RULE_11_5-a-4 |
|
79: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
80: |
Integer constant '0xFFFF0006' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
82: |
Pointer to void type should not be converted to pointer to object type 'uint8_t *' |
MISRAC2012-RULE_11_5-a-4 |
|
83: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
84: |
Integer constant '0xFFFF000C' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
86: |
Only one 'goto' statement in loop is allowed. This loop contains 'goto' in lines: 98, 111 |
MISRAC2012-RULE_15_4-a-4 |
|
87: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
88: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
88: |
Reserved name '_a' used |
MISRAC2012-RULE_21_2-a-2 |
|
88: |
Reserved name '_b' used |
MISRAC2012-RULE_21_2-a-2 |
|
88: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
90: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
90: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
91: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
93: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
93: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
94: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
98: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
100: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
100: |
The argument number '3' ('essentially signed' type) is passed to the function 'memset' as a parameter with the 'essentially
unsigned' type
|
MISRAC2012-RULE_10_3-b-2 |
|
100: |
Unused function's "memset" return value |
MISRAC2012-RULE_17_7-a-2 |
|
103: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
104: |
The variable 'block' used as the left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
104: |
Unused function's "memcpy" return value |
MISRAC2012-RULE_17_7-a-2 |
|
106: |
The variable 'block' used as the left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
106: |
Unused function's "memset" return value |
MISRAC2012-RULE_17_7-a-2 |
|
111: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
113: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
114: |
The variable 'data_ptr' used as the left hand side operand of the '+=' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
117: |
Parameter 'pos' is modified in function 'out_of_place_write' |
MISRAC2012-RULE_17_8-a-4 |
|
126: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
135: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
139: |
The operands of a logical '||' in function 'get_offs_size' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
139: |
The operands of a logical '||' in function 'get_offs_size' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
198: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
198: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
199: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
200: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
204: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
205: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
205: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
206: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
207: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
207: |
The expression of the 'essentially signed' type is assigned to an object with the 'essentially unsigned' type |
MISRAC2012-RULE_10_3-b-2 |
|
210: |
Integer constant '0xFFFF0000' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
219: |
Pointer to void type should not be converted to pointer to object type 'struct tee_fs_fd *' |
MISRAC2012-RULE_11_5-a-4 |
|
229: |
The argument number '4' ('essentially unsigned' type) is passed to the function 'tee_fs_rpc_read_init' as a parameter with
the 'essentially signed' type
|
MISRAC2012-RULE_10_3-b-2 |
|
237: |
Pointer to void type should not be converted to pointer to object type 'struct tee_fs_fd *' |
MISRAC2012-RULE_11_5-a-4 |
|
247: |
The argument number '4' ('essentially unsigned' type) is passed to the function 'tee_fs_rpc_write_init' as a parameter with
the 'essentially signed' type
|
MISRAC2012-RULE_10_3-b-2 |
|
250: |
Global variable 'ree_fs_storage_ops' is being used only in a single function 'ree_fs_open_primitive' |
MISRAC2012-RULE_8_9-a-4 |
|
251: |
The expression of the 'essentially signed' type is assigned to an object with the 'essentially unsigned' type |
MISRAC2012-RULE_10_3-b-2 |
|
275: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
275: |
The argument number '2' ('essentially signed' type) is passed to the function 'get_offs_size' as a parameter with the 'essentially
unsigned' type
|
MISRAC2012-RULE_10_3-b-2 |
|
276: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
281: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
281: |
The argument number '2' ('essentially signed' type) is passed to the function 'tee_fs_htree_truncate' as a parameter with
the 'essentially unsigned' type
|
MISRAC2012-RULE_10_3-b-2 |
|
290: |
The expression of the 'essentially signed' type is assigned to an object with the 'essentially unsigned' type |
MISRAC2012-RULE_10_3-b-2 |
|
304: |
Pointer to void type should not be converted to pointer to object type 'uint8_t *' |
MISRAC2012-RULE_11_5-a-4 |
|
306: |
Pointer to incomplete type 'struct tee_file_handle *' should not be cast to type 'struct tee_fs_fd *' |
MISRAC2012-RULE_11_2-a-2 |
|
310: |
The operands of a logical '||' in function 'ree_fs_read_primitive' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
310: |
The operands of a logical '||' in function 'ree_fs_read_primitive' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
312: |
Provide 'else' after the last 'else-if' construct |
MISRAC2012-RULE_15_7-a-2 |
|
312: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
317: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
319: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
322: |
The argument number '1' ('essentially unsigned' type) is passed to the function 'pos_to_block_num' as a parameter with the
'essentially signed' type
|
MISRAC2012-RULE_10_3-b-2 |
|
323: |
The argument number '1' ('essentially unsigned' type) is passed to the function 'pos_to_block_num' as a parameter with the
'essentially signed' type
|
MISRAC2012-RULE_10_3-b-2 |
|
323: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
325: |
Pointer to void type should not be converted to pointer to object type 'uint8_t *' |
MISRAC2012-RULE_11_5-a-4 |
|
326: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
327: |
Integer constant '0xFFFF000C' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
328: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
332: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
333: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
333: |
Reserved name '_a' used |
MISRAC2012-RULE_21_2-a-2 |
|
333: |
Reserved name '_b' used |
MISRAC2012-RULE_21_2-a-2 |
|
333: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
335: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
335: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
336: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
338: |
The argument number '2' ('essentially signed' type) is passed to the function 'tee_fs_htree_read_block' as a parameter with
the 'essentially unsigned' type
|
MISRAC2012-RULE_10_3-b-2 |
|
340: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
342: |
The variable 'block' used as the left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
342: |
Unused function's "memcpy" return value |
MISRAC2012-RULE_17_7-a-2 |
|
344: |
The variable 'data_ptr' used as the left hand side operand of the '+=' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
346: |
Parameter 'pos' is modified in function 'ree_fs_read_primitive' |
MISRAC2012-RULE_17_8-a-4 |
|
352: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
373: |
Pointer to incomplete type 'struct tee_file_handle *' should not be cast to type 'struct tee_fs_fd *' |
MISRAC2012-RULE_11_2-a-2 |
|
376: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
382: |
Integer constant '0xFFFF0006' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
385: |
The argument number '2' ('essentially unsigned' type) is passed to the function 'ree_fs_ftruncate_internal' as a parameter
with the 'essentially signed' type
|
MISRAC2012-RULE_10_3-b-2 |
|
395: |
Pass parameter "dfh" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
401: |
'calloc' function should not be used |
MISRAC2012-RULE_21_3-a-2 |
|
401: |
'calloc' function should not be used |
MISRAC2012-DIR_4_12-a-2 |
|
401: |
Pointer to void type should not be converted to pointer to object type 'struct tee_fs_fd *' |
MISRAC2012-RULE_11_5-a-4 |
|
402: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
403: |
Integer constant '0xFFFF000C' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
414: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
420: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
424: |
The expression of type 'struct tee_fs_fd *' should not be cast to pointer to incomplete type 'struct tee_file_handle *' |
MISRAC2012-RULE_11_2-a-2 |
|
426: |
Integer constant '0xFFFF000F' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
429: |
Unused function's "tee_fs_rpc_close" return value |
MISRAC2012-RULE_17_7-a-2 |
|
431: |
Unused function's "tee_fs_rpc_remove_dfh" return value |
MISRAC2012-RULE_17_7-a-2 |
|
432: |
'free' function should not be used |
MISRAC2012-RULE_21_3-a-2 |
|
432: |
'free' function should not be used |
MISRAC2012-DIR_4_12-a-2 |
|
440: |
Pointer to incomplete type 'struct tee_file_handle *' should not be cast to type 'struct tee_fs_fd *' |
MISRAC2012-RULE_11_2-a-2 |
|
442: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
444: |
Unused function's "tee_fs_rpc_close" return value |
MISRAC2012-RULE_17_7-a-2 |
|
445: |
'free' function should not be used |
MISRAC2012-RULE_21_3-a-2 |
|
445: |
'free' function should not be used |
MISRAC2012-DIR_4_12-a-2 |
|
453: |
Pointer to incomplete type 'struct tee_file_handle *' should not be cast to type 'struct tee_fs_fd *' |
MISRAC2012-RULE_11_2-a-2 |
|
457: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
457: |
The operands of a logical '&&' in function 'ree_dirf_commit_writes' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
457: |
The right hand operand of the logical operator '&&' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
458: |
Unused function's "memcpy" return value |
MISRAC2012-RULE_17_7-a-2 |
|
463: |
Global variable 'ree_dirf_ops' is being used only in a single function 'open_dirh' |
MISRAC2012-RULE_8_9-a-4 |
|
533: |
Integer constant '0xFFFF0008' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
553: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
556: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
562: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
563: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
570: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
585: |
The left hand operand of the logical operator '&&' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
585: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
585: |
The operands of a logical '||' in function 'put_dirh_primitive' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
589: |
Pass parameter "dirh" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
591: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
597: |
Pass parameter "po" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
608: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
613: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
616: |
Integer constant '0xFFFF0008' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
621: |
Integer constant '0xF0100001' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
622: |
Provide 'else' after the last 'else-if' construct |
MISRAC2012-RULE_15_7-a-2 |
|
622: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
622: |
The operands of a logical '&&' in function 'ree_fs_open' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
622: |
The right hand operand of the logical operator '&&' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
623: |
Pointer to incomplete type 'struct tee_file_handle *' should not be cast to type 'struct tee_fs_fd *' |
MISRAC2012-RULE_11_2-a-2 |
|
629: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
637: |
Pass parameter "po" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
646: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
646: |
The operands of a logical '&&' in function 'set_name' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
646: |
The operands of a logical '&&' in function 'set_name' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
647: |
Integer constant '0xFFFF0003' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
649: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
660: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
664: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
668: |
Unused function's "tee_fs_rpc_remove_dfh" return value |
MISRAC2012-RULE_17_7-a-2 |
|
675: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
701: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
702: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
705: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
706: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
709: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
710: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
712: |
The left hand operand of the logical operator '&&' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
712: |
The right hand operand of the logical operator '&&' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
714: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
715: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
719: |
The left hand operand of the logical operator '&&' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
719: |
The right hand operand of the logical operator '&&' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
721: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
722: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
726: |
The left hand operand of the logical operator '&&' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
726: |
The right hand operand of the logical operator '&&' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
728: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
729: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
732: |
Pointer to incomplete type 'struct tee_file_handle *' should not be cast to type 'struct tee_fs_fd *' |
MISRAC2012-RULE_11_2-a-2 |
|
734: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
735: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
739: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
741: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
744: |
Unused function's "tee_fs_rpc_remove_dfh" return value |
MISRAC2012-RULE_17_7-a-2 |
|
757: |
Pointer to incomplete type 'struct tee_file_handle *' should not be cast to type 'struct tee_fs_fd *' |
MISRAC2012-RULE_11_2-a-2 |
|
762: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
763: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
766: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
767: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
770: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
771: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
774: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
775: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
778: |
The argument number '2' ('essentially unsigned' type) is passed to the function 'put_dirh' as a parameter with the 'essentially
Boolean' type
|
MISRAC2012-RULE_10_3-b-2 |
|
784: |
Pass parameter "new" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
784: |
Pass parameter "old" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
792: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
793: |
Integer constant '0xFFFF0006' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
797: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
798: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
802: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
802: |
The operands of a logical '&&' in function 'ree_fs_rename' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
802: |
The operands of a logical '&&' in function 'ree_fs_rename' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
803: |
Integer constant '0xFFFF0003' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
804: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
809: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
810: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
814: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
815: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
819: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
820: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
824: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
825: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
828: |
Unused function's "tee_fs_rpc_remove_dfh" return value |
MISRAC2012-RULE_17_7-a-2 |
|
831: |
The argument number '2' ('essentially unsigned' type) is passed to the function 'put_dirh' as a parameter with the 'essentially
Boolean' type
|
MISRAC2012-RULE_10_3-b-2 |
|
838: |
Pass parameter "po" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
846: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
847: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
851: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
852: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
855: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
856: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
859: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
860: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
862: |
Unused function's "tee_fs_rpc_remove_dfh" return value |
MISRAC2012-RULE_17_7-a-2 |
|
864: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
867: |
The argument number '2' ('essentially unsigned' type) is passed to the function 'put_dirh' as a parameter with the 'essentially
Boolean' type
|
MISRAC2012-RULE_10_3-b-2 |
|
877: |
Pointer to incomplete type 'struct tee_file_handle *' should not be cast to type 'struct tee_fs_fd *' |
MISRAC2012-RULE_11_2-a-2 |
|
882: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
883: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
885: |
The argument number '2' ('essentially unsigned' type) is passed to the function 'ree_fs_ftruncate_internal' as a parameter
with the 'essentially signed' type
|
MISRAC2012-RULE_10_3-b-2 |
|
886: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
887: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
890: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
891: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
894: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
895: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
898: |
The argument number '2' ('essentially unsigned' type) is passed to the function 'put_dirh' as a parameter with the 'essentially
Boolean' type
|
MISRAC2012-RULE_10_3-b-2 |
|
909: |
'calloc' function should not be used |
MISRAC2012-RULE_21_3-a-2 |
|
909: |
'calloc' function should not be used |
MISRAC2012-DIR_4_12-a-2 |
|
909: |
Pointer to void type should not be converted to pointer to object type 'struct tee_fs_dir *' |
MISRAC2012-RULE_11_5-a-4 |
|
911: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
912: |
Integer constant '0xFFFF000C' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
919: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
920: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
930: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
| +
|
933: |
"d" is checked for null after being dereferenced |
MISRAC2012-DIR_4_1-f-2 |
| |
|
Point of dereferencing
tee_ree_fs.c (927): d->idx = -1; *** Important values: d != null
tee_ree_fs.c (929): out:
tee_ree_fs.c (930): if (!res) { *** Condition evaluation: !res (assuming false)
Point of checking for nullity
tee_ree_fs.c (933): if (d) *** Important values: d != null |
|
|
933: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
935: |
'free' function should not be used |
MISRAC2012-RULE_21_3-a-2 |
|
935: |
'free' function should not be used |
MISRAC2012-DIR_4_12-a-2 |
|
944: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
948: |
'free' function should not be used |
MISRAC2012-RULE_21_3-a-2 |
|
948: |
'free' function should not be used |
MISRAC2012-DIR_4_12-a-2 |
| /optee_os_MISRA/optee_os_ruchi393_core/tee/tee_supp_plugin_rpc.c |
|
22: |
Integer constant '0xFFFF0000' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
26: |
A tag name 'mobj' is reused |
MISRAC2012-RULE_5_7-a-2 |
|
26: |
Identifier 'mobj' is hiding an identifier from global or namespace scope |
MISRAC2012-RULE_5_3-a-2 |
|
36: |
The 'switch' statement contains less than two switch-clauses |
MISRAC2012-RULE_16_6-a-2 |
|
36: |
The 'switch' statement contains less than two switch-clauses |
MISRAC2012-RULE_16_1-h-2 |
|
38: |
The left hand operand of the logical operator '&&' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
38: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
38: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
38: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
38: |
The operands of a logical '&&' in function 'tee_invoke_supp_plugin_rpc' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
38: |
The operands of a logical '&&' in function 'tee_invoke_supp_plugin_rpc' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
38: |
The operands of a logical '||' in function 'tee_invoke_supp_plugin_rpc' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
38: |
The right hand operand of the logical operator '&&' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
39: |
Integer constant '0xFFFF0006' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
41: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
43: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
45: |
Integer constant '0xFFFF000C' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
49: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
51: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
54: |
Unused function's "memcpy" return value |
MISRAC2012-RULE_17_7-a-2 |
|
67: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
70: |
The left hand operand of the logical operator '&&' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
70: |
The operands of a logical '&&' in function 'tee_invoke_supp_plugin_rpc' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
70: |
The right hand operand of the logical operator '&&' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
71: |
Unused function's "memcpy" return value |
MISRAC2012-RULE_17_7-a-2 |
|
71: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
74: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
| /optee_os_MISRA/optee_os_ruchi393_core/tee/tee_svc.c |
|
29: |
Declaration of object 'tee_svc_uref_base' does not precede its definition |
MISRAC2012-RULE_8_4-a-2 |
|
39: |
'malloc' function should not be used |
MISRAC2012-RULE_21_3-a-2 |
|
39: |
'malloc' function should not be used |
MISRAC2012-DIR_4_12-a-2 |
|
39: |
Pointer to void type should not be converted to pointer to object type 'char *' |
MISRAC2012-RULE_11_5-a-4 |
|
54: |
Integer constant '0xFFFF000A' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
112: |
Parameter 'sess' is not used in function 'get_prop_tee_dev_id' |
MISRAC2012-RULE_2_7-a-4 |
|
112: |
Pass parameter "sess" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
118: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
119: |
The expression of the 'essentially character' type is assigned to an object with the 'essentially unsigned' type |
MISRAC2012-RULE_10_3-b-2 |
|
119: |
The expression of the 'essentially character' type is assigned to an object with the 'essentially unsigned' type |
MISRAC2012-RULE_10_3-b-2 |
|
119: |
The expression of the 'essentially character' type is assigned to an object with the 'essentially unsigned' type |
MISRAC2012-RULE_10_3-b-2 |
|
119: |
The expression of the 'essentially character' type is assigned to an object with the 'essentially unsigned' type |
MISRAC2012-RULE_10_3-b-2 |
|
119: |
The expression of the 'essentially character' type is assigned to an object with the 'essentially unsigned' type |
MISRAC2012-RULE_10_3-b-2 |
|
123: |
Integer constant '0xFFFF0010' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
127: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
127: |
The variable 'data' used as the left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
128: |
Integer constant '0xFFFF0007' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
133: |
Integer constant '0xFFFF0007' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
145: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
155: |
Parameter 'sess' is not used in function 'get_prop_tee_sys_time_prot_level' |
MISRAC2012-RULE_2_7-a-4 |
|
155: |
Pass parameter "sess" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
162: |
Integer constant '0xFFFF0010' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
174: |
Integer constant '0xFFFF0010' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
181: |
Pass parameter "sess" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
186: |
Integer constant '0xFFFF0010' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
193: |
Declaration of object 'tee_propset_client' does not precede its definition |
MISRAC2012-RULE_8_4-a-2 |
|
193: |
The object 'tee_propset_client' is referenced only in the translation unit where it is defined |
MISRAC2012-RULE_8_7-a-4 |
|
196: |
The expression of the 'essentially Enum' type is assigned to an object with the 'essentially unsigned' type |
MISRAC2012-RULE_10_3-b-2 |
|
202: |
Declaration of object 'tee_propset_ta' does not precede its definition |
MISRAC2012-RULE_8_4-a-2 |
|
202: |
The object 'tee_propset_ta' is referenced only in the translation unit where it is defined |
MISRAC2012-RULE_8_7-a-4 |
|
205: |
The expression of the 'essentially Enum' type is assigned to an object with the 'essentially unsigned' type |
MISRAC2012-RULE_10_3-b-2 |
|
224: |
Declaration of object 'tee_propset_tee' does not precede its definition |
MISRAC2012-RULE_8_4-a-2 |
|
224: |
The object 'tee_propset_tee' is referenced only in the translation unit where it is defined |
MISRAC2012-RULE_8_7-a-4 |
|
227: |
The expression of the 'essentially Enum' type is assigned to an object with the 'essentially unsigned' type |
MISRAC2012-RULE_10_3-b-2 |
|
233: |
The expression of the 'essentially Enum' type is assigned to an object with the 'essentially unsigned' type |
MISRAC2012-RULE_10_3-b-2 |
|
238: |
The expression of the 'essentially Enum' type is assigned to an object with the 'essentially unsigned' type |
MISRAC2012-RULE_10_3-b-2 |
|
243: |
The expression of the 'essentially Enum' type is assigned to an object with the 'essentially unsigned' type |
MISRAC2012-RULE_10_3-b-2 |
|
248: |
The expression of the 'essentially Enum' type is assigned to an object with the 'essentially unsigned' type |
MISRAC2012-RULE_10_3-b-2 |
|
254: |
The expression of the 'essentially Enum' type is assigned to an object with the 'essentially unsigned' type |
MISRAC2012-RULE_10_3-b-2 |
|
260: |
The expression of the 'essentially Enum' type is assigned to an object with the 'essentially unsigned' type |
MISRAC2012-RULE_10_3-b-2 |
|
266: |
The expression of the 'essentially Enum' type is assigned to an object with the 'essentially unsigned' type |
MISRAC2012-RULE_10_3-b-2 |
|
272: |
The expression of the 'essentially Enum' type is assigned to an object with the 'essentially unsigned' type |
MISRAC2012-RULE_10_3-b-2 |
|
278: |
The expression of the 'essentially Enum' type is assigned to an object with the 'essentially unsigned' type |
MISRAC2012-RULE_10_3-b-2 |
|
284: |
The expression of the 'essentially Enum' type is assigned to an object with the 'essentially unsigned' type |
MISRAC2012-RULE_10_3-b-2 |
|
290: |
The expression of the 'essentially Enum' type is assigned to an object with the 'essentially unsigned' type |
MISRAC2012-RULE_10_3-b-2 |
|
296: |
The expression of the 'essentially Enum' type is assigned to an object with the 'essentially unsigned' type |
MISRAC2012-RULE_10_3-b-2 |
|
307: |
Declaration of object 'vendor_props_client' does not precede its definition |
MISRAC2012-RULE_8_4-a-2 |
|
307: |
The object 'vendor_props_client' is referenced only in the translation unit where it is defined |
MISRAC2012-RULE_8_7-a-4 |
|
308: |
Declaration of object 'vendor_props_ta' does not precede its definition |
MISRAC2012-RULE_8_4-a-2 |
|
308: |
The object 'vendor_props_ta' is referenced only in the translation unit where it is defined |
MISRAC2012-RULE_8_7-a-4 |
|
309: |
Declaration of object 'vendor_props_tee' does not precede its definition |
MISRAC2012-RULE_8_4-a-2 |
|
309: |
The 'vendor_props_tee' object is also defined in other translation units |
MISRAC2012-RULE_8_6-a-2 |
|
317: |
Integer constant '0xFFFFFFFE' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
317: |
The expression of type 'unsigned int' should not be cast to pointer to incomplete type 'struct __TEE_PropSetHandle *' |
MISRAC2012-RULE_11_2-a-2 |
|
317: |
The expression of type 'unsigned long' should not be cast to pointer to incomplete type 'struct __TEE_PropSetHandle *' |
MISRAC2012-RULE_11_2-a-2 |
|
322: |
Integer constant '0xFFFFFFFF' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
322: |
The expression of type 'unsigned int' should not be cast to pointer to incomplete type 'struct __TEE_PropSetHandle *' |
MISRAC2012-RULE_11_2-a-2 |
|
322: |
The expression of type 'unsigned long' should not be cast to pointer to incomplete type 'struct __TEE_PropSetHandle *' |
MISRAC2012-RULE_11_2-a-2 |
|
327: |
The expression of type 'unsigned long' should not be cast to pointer to incomplete type 'struct __TEE_PropSetHandle *' |
MISRAC2012-RULE_11_2-a-2 |
|
328: |
Integer constant '0xFFFFFFFD' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
328: |
The expression of type 'unsigned int' should not be cast to pointer to incomplete type 'struct __TEE_PropSetHandle *' |
MISRAC2012-RULE_11_2-a-2 |
|
353: |
Parameter 'index' is modified in function 'get_prop_struct' |
MISRAC2012-RULE_17_8-a-4 |
|
382: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
383: |
Integer constant '0xFFFF0008' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
386: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
394: |
The left hand operand of the logical operator '&&' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
394: |
The right hand operand of the logical operator '&&' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
399: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
402: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with a narrower essential type (4 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
406: |
Integer constant '0xFFFF0010' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
418: |
The left hand operand of the logical operator '&&' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
418: |
The right hand operand of the logical operator '&&' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
423: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with a narrower essential type (4 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
426: |
Integer constant '0xFFFF0010' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
443: |
Pass parameter "name" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
456: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
457: |
Integer constant '0xFFFF0008' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
459: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
459: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
459: |
The operands of a logical '||' in function 'syscall_get_property_name_to_index' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
459: |
The operands of a logical '||' in function 'syscall_get_property_name_to_index' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
460: |
Integer constant '0xFFFF0006' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
461: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
464: |
'malloc' function should not be used |
MISRAC2012-RULE_21_3-a-2 |
|
464: |
'malloc' function should not be used |
MISRAC2012-DIR_4_12-a-2 |
|
464: |
Pointer to void type should not be converted to pointer to object type 'char *' |
MISRAC2012-RULE_11_5-a-4 |
|
465: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
466: |
Integer constant '0xFFFF000C' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
469: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
470: |
The expression of the 'essentially signed' type is assigned to an object with the 'essentially character' type |
MISRAC2012-RULE_10_3-b-2 |
|
472: |
Integer constant '0xFFFF0008' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
474: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
476: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
479: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with a narrower essential type (4 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
479: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
480: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
482: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
491: |
Pass parameter "utc" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
493: |
Pass parameter "up" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
496: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with a narrower essential type (4 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
501: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
502: |
The expression of the 'essentially signed' type is assigned to an object with the 'essentially unsigned' type |
MISRAC2012-RULE_10_3-b-2 |
|
505: |
Shifting operation should be enclosed with if checking that RHS operand does not exceed the upper limit (one less than the
width in bits of the underlying type of the LHS operand)
|
MISRAC2012-RULE_12_2-a-2 |
|
507: |
Every non empty case clause in a switch statement shall be terminated with a break statement |
MISRAC2012-RULE_16_1-c-2 |
|
507: |
Every non empty case clause in a switch statement shall be terminated with a break statement |
MISRAC2012-RULE_16_3-a-2 |
|
514: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
516: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
517: |
Integer constant '0xFFFF0006' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
524: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
525: |
Integer constant '0xFFFF0001' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
529: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with a narrower essential type (4 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
530: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with a narrower essential type (4 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
533: |
Unused function's "memset" return value |
MISRAC2012-RULE_17_7-a-2 |
|
541: |
A tag name 'mobj' is reused |
MISRAC2012-RULE_5_7-a-2 |
|
541: |
Identifier 'mobj' is hiding an identifier from global or namespace scope |
MISRAC2012-RULE_5_3-a-2 |
|
550: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
551: |
Integer constant '0xFFFF0000' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
553: |
Pointer to void type should not be converted to pointer to object type 'uint8_t *' |
MISRAC2012-RULE_11_5-a-4 |
| +
|
553: |
The return value of the "mobj_get_va" method is not checked. It is checked at least 80% times in the testing scope |
MISRAC2012-DIR_4_7-a-2 |
| |
|
Example path
pseudo_ta.c (88): !mobj_get_va(mem->mobj, *** Method call *** Example of checking
Violation path
Method call
Point by which returned value should be checked
tee_svc.c (553): *va = mobj_get_va(*mobj, 0); |
|
|
579: |
Variable 'dst' of pointer type is initialized with '0' |
MISRAC2012-RULE_11_9-a-2 |
|
579: |
Variable 'dst' of pointer type is initialized with '0' |
MISRAC2012-RULE_11_9-b-2 |
|
585: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
586: |
Unused function's "memset" return value |
MISRAC2012-RULE_17_7-a-2 |
|
588: |
The expression of the 'essentially signed' type is assigned to an object with the 'essentially unsigned' type |
MISRAC2012-RULE_10_3-b-2 |
|
593: |
Pointer to object type 'struct utee_params *' should not be converted to integral type 'unsigned long' |
MISRAC2012-RULE_11_4-a-4 |
|
602: |
The left hand operand of the logical operator '&&' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
602: |
The operands of a logical '&&' in function 'tee_svc_copy_param' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
613: |
Shifting operation should be enclosed with if checking that RHS operand does not exceed the upper limit (one less than the
width in bits of the underlying type of the LHS operand)
|
MISRAC2012-RULE_12_2-a-2 |
|
617: |
Arithmetic type 'unsigned long' should not be converted to pointer to void type |
MISRAC2012-RULE_11_6-a-2 |
|
619: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
620: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
621: |
Integer constant '0xFFFF0006' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
628: |
Integer constant '0xFFFF0006' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
640: |
Missing statement or comment before terminating 'break' |
MISRAC2012-RULE_16_4-b-2 |
|
640: |
Missing statement or comment before terminating 'break' |
MISRAC2012-RULE_16_1-f-2 |
|
659: |
Shifting operation should be enclosed with if checking that RHS operand does not exceed the upper limit (one less than the
width in bits of the underlying type of the LHS operand)
|
MISRAC2012-RULE_12_2-a-2 |
|
662: |
Arithmetic type 'unsigned long' should not be converted to pointer to void type |
MISRAC2012-RULE_11_6-a-2 |
|
663: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
672: |
The variable 'dst' used as the left hand side operand of the '+=' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
678: |
Arithmetic type 'unsigned long' should not be converted to pointer to void type |
MISRAC2012-RULE_11_6-a-2 |
|
679: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
684: |
The variable 'dst' used as the left hand side operand of the '+=' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
689: |
Every non empty default clause in a switch statement shall be terminated with a break statement |
MISRAC2012-RULE_16_1-d-2 |
|
689: |
Every non empty default clause in a switch statement shall be terminated with a break statement |
MISRAC2012-RULE_16_3-b-2 |
|
704: |
Pass parameter "param" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
705: |
Pass parameter "tmp_buf_va" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
714: |
Shifting operation should be enclosed with if checking that RHS operand does not exceed the upper limit (one less than the
width in bits of the underlying type of the LHS operand)
|
MISRAC2012-RULE_12_2-a-2 |
|
724: |
The left hand operand of the logical operator '&&' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
724: |
The operands of a logical '&&' in function 'tee_svc_update_out_param' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
724: |
The operands of a logical '&&' in function 'tee_svc_update_out_param' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
724: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
726: |
Arithmetic type 'unsigned long' should not be converted to pointer to void type |
MISRAC2012-RULE_11_6-a-2 |
|
741: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
747: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
750: |
Every non empty default clause in a switch statement shall be terminated with a break statement |
MISRAC2012-RULE_16_1-d-2 |
|
750: |
Every non empty default clause in a switch statement shall be terminated with a break statement |
MISRAC2012-RULE_16_3-b-2 |
|
759: |
Identifiers given in declaration of 'syscall_open_ta_session' function (file: 'tee_svc.h', line: '53') are: 'params, sess'
not: 'usr_param, ta_sess'
|
MISRAC2012-RULE_8_3-b-2 |
|
770: |
'malloc' function should not be used |
MISRAC2012-RULE_21_3-a-2 |
|
770: |
'malloc' function should not be used |
MISRAC2012-DIR_4_12-a-2 |
|
770: |
Pointer to void type should not be converted to pointer to object type 'TEE_UUID *' |
MISRAC2012-RULE_11_5-a-4 |
|
771: |
'malloc' function should not be used |
MISRAC2012-RULE_21_3-a-2 |
|
771: |
'malloc' function should not be used |
MISRAC2012-DIR_4_12-a-2 |
|
771: |
Pointer to void type should not be converted to pointer to object type 'struct tee_ta_param *' |
MISRAC2012-RULE_11_5-a-4 |
|
772: |
'malloc' function should not be used |
MISRAC2012-RULE_21_3-a-2 |
|
772: |
'malloc' function should not be used |
MISRAC2012-DIR_4_12-a-2 |
|
772: |
Pointer to void type should not be converted to pointer to object type 'TEE_Identity *' |
MISRAC2012-RULE_11_5-a-4 |
|
776: |
The operands of a logical '||' in function 'syscall_open_ta_session' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
776: |
The operands of a logical '||' in function 'syscall_open_ta_session' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
776: |
The operands of a logical '||' in function 'syscall_open_ta_session' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
777: |
Integer constant '0xFFFF000C' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
778: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
781: |
Unused function's "memset" return value |
MISRAC2012-RULE_17_7-a-2 |
|
785: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
787: |
Integer constant '0xF0000000' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
788: |
Unused function's "memcpy" return value |
MISRAC2012-RULE_17_7-a-2 |
|
793: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
796: |
The argument number '6' (8 byte essential type) is passed to the function 'tee_ta_open_session' as a parameter with a narrower
essential type (4 byte)
|
MISRAC2012-RULE_10_3-a-2 |
|
799: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
807: |
Unused function's "copy_to_user_private" return value |
MISRAC2012-RULE_17_7-a-2 |
|
808: |
Unused function's "copy_to_user_private" return value |
MISRAC2012-RULE_17_7-a-2 |
|
817: |
Identifiers given in declaration of 'syscall_close_ta_session' function (file: 'tee_svc.h', line: '57') are: 'sess' not: 'ta_sess' |
MISRAC2012-RULE_8_3-b-2 |
|
824: |
The argument number '1' (8 byte essential type) is passed to the function 'tee_ta_find_session' as a parameter with a narrower
essential type (4 byte)
|
MISRAC2012-RULE_10_3-a-2 |
|
826: |
Integer constant '0xF0000000' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
827: |
Unused function's "memcpy" return value |
MISRAC2012-RULE_17_7-a-2 |
|
832: |
Identifiers given in declaration of 'syscall_invoke_ta_command' function (file: 'tee_svc.h', line: '59') are: 'sess, params'
not: 'ta_sess, usr_param'
|
MISRAC2012-RULE_8_3-b-2 |
|
850: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
851: |
Integer constant '0xFFFF0006' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
853: |
Integer constant '0xF0000000' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
854: |
Unused function's "memcpy" return value |
MISRAC2012-RULE_17_7-a-2 |
|
859: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
862: |
The argument number '4' (8 byte essential type) is passed to the function 'tee_ta_invoke_command' as a parameter with a narrower
essential type (4 byte)
|
MISRAC2012-RULE_10_3-a-2 |
|
862: |
The argument number '5' (8 byte essential type) is passed to the function 'tee_ta_invoke_command' as a parameter with a narrower
essential type (4 byte)
|
MISRAC2012-RULE_10_3-a-2 |
|
863: |
Integer constant '0xFFFF3024' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
864: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
887: |
Unused function's "copy_to_user_private" return value |
MISRAC2012-RULE_17_7-a-2 |
|
896: |
The argument number '2' (8 byte essential type) is passed to the function 'vm_check_access_rights' as a parameter with a narrower
essential type (4 byte)
|
MISRAC2012-RULE_10_3-a-2 |
|
897: |
Pointer to void type should not be converted to arithmetic type 'unsigned long' |
MISRAC2012-RULE_11_6-a-2 |
|
905: |
The expression of the 'essentially Boolean' type is assigned to an object with the 'essentially unsigned' type |
MISRAC2012-RULE_10_3-b-2 |
|
917: |
The expression of the 'essentially Boolean' type is assigned to an object with the 'essentially unsigned' type |
MISRAC2012-RULE_10_3-b-2 |
|
929: |
The expression of the 'essentially Boolean' type is assigned to an object with the 'essentially unsigned' type |
MISRAC2012-RULE_10_3-b-2 |
|
953: |
Integer constant '0xFFFF0002' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
955: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
960: |
The argument number '1' (8 byte essential type) is passed to the function 'tee_time_wait' as a parameter with a narrower essential
type (4 byte)
|
MISRAC2012-RULE_10_3-a-2 |
|
966: |
Identifiers given in declaration of 'syscall_get_time' function (file: 'tee_svc.h', line: '74') are: 'time' not: 'mytime' |
MISRAC2012-RULE_8_3-b-2 |
|
974: |
The expression of the 'essentially Enum' type in a switch statement's case label is converted to the 'essentially unsigned'
type
|
MISRAC2012-RULE_10_3-b-2 |
|
977: |
The expression of the 'essentially Enum' type in a switch statement's case label is converted to the 'essentially unsigned'
type
|
MISRAC2012-RULE_10_3-b-2 |
|
978: |
Pointer to void type should not be converted to pointer to object type 'const TEE_UUID *' in function's argument |
MISRAC2012-RULE_11_5-a-4 |
|
980: |
The expression of the 'essentially Enum' type in a switch statement's case label is converted to the 'essentially unsigned'
type
|
MISRAC2012-RULE_10_3-b-2 |
|
984: |
Integer constant '0xFFFF0006' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
988: |
Integer constant '0xFFFF300F' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
988: |
The operands of a logical '||' in function 'syscall_get_time' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
988: |
The operands of a logical '||' in function 'syscall_get_time' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
997: |
Identifiers given in declaration of 'syscall_set_ta_time' function (file: 'tee_svc.h', line: '75') are: 'time' not: 'mytime' |
MISRAC2012-RULE_8_3-b-2 |
|
1007: |
Pointer to void type should not be converted to pointer to object type 'const TEE_UUID *' in function's argument |
MISRAC2012-RULE_11_5-a-4 |
| /optee_os_MISRA/optee_os_ruchi393_core/tee/tee_svc_cryp.c |
|
67: |
An unused macro declaration 'TEE_TYPE_ATTR_OPTIONAL' has been found |
MISRAC2012-RULE_2_5-a-4 |
|
90: |
Do not define function-like macro: RAW_DATA |
MISRAC2012-DIR_4_9-a-4 |
|
91: |
Each instance of parameter: '_x' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
91: |
Each instance of parameter: '_x' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
91: |
Each instance of parameter: '_y' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
91: |
Each instance of parameter: '_y' should be enclosed in parentheses |
MISRAC2012-RULE_20_7-a-2 |
|
96: |
Integer constant '0xC0000000' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
106: |
Integer constant '0xD0000130' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
109: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with narrower essential type (2 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
109: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with narrower essential type (2 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
113: |
Integer constant '0xD0000230' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
116: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with narrower essential type (2 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
116: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with narrower essential type (2 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
122: |
Integer constant '0xD0000130' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
125: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with narrower essential type (2 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
125: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with narrower essential type (2 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
129: |
Integer constant '0xD0000230' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
132: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with narrower essential type (2 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
132: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with narrower essential type (2 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
136: |
Integer constant '0xC0000330' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
139: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with narrower essential type (2 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
139: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with narrower essential type (2 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
143: |
Integer constant '0xC0000430' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
146: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with narrower essential type (2 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
146: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with narrower essential type (2 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
150: |
Integer constant '0xC0000530' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
153: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with narrower essential type (2 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
153: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with narrower essential type (2 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
157: |
Integer constant '0xC0000630' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
160: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with narrower essential type (2 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
160: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with narrower essential type (2 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
164: |
Integer constant '0xC0000730' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
167: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with narrower essential type (2 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
167: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with narrower essential type (2 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
171: |
Integer constant '0xC0000830' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
174: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with narrower essential type (2 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
174: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with narrower essential type (2 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
180: |
Integer constant '0xD0001031' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
183: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with narrower essential type (2 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
183: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with narrower essential type (2 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
187: |
Integer constant '0xD0001131' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
190: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with narrower essential type (2 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
190: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with narrower essential type (2 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
194: |
Integer constant '0xD0001231' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
197: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with narrower essential type (2 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
197: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with narrower essential type (2 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
201: |
Integer constant '0xD0000131' of unsigned type should have 'U' suffix |
MISRAC2012-RULE_7_2-a-2 |
|
204: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with narrower essential type (2 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
204: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with narrower essential type (2 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
214: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with narrower essential type (2 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
214: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with narrower essential type (2 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
222: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with narrower essential type (2 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
222: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with narrower essential type (2 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
230: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with narrower essential type (2 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
230: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with narrower essential type (2 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
237: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with narrower essential type (2 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
237: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with narrower essential type (2 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
244: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with narrower essential type (2 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
244: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with narrower essential type (2 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
254: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with narrower essential type (2 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
254: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with narrower essential type (2 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
261: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with narrower essential type (2 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
261: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with narrower essential type (2 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
268: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with narrower essential type (2 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
268: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with narrower essential type (2 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
275: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with narrower essential type (2 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
275: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with narrower essential type (2 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
282: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with narrower essential type (2 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
282: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with narrower essential type (2 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
289: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with narrower essential type (2 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
289: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with narrower essential type (2 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
337: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with narrower essential type (2 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
337: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with narrower essential type (2 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
344: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with narrower essential type (2 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
344: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with narrower essential type (2 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
351: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with narrower essential type (2 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
351: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with narrower essential type (2 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
360: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with narrower essential type (2 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
360: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with narrower essential type (2 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
367: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with narrower essential type (2 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
367: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with narrower essential type (2 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
374: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with narrower essential type (2 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
374: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with narrower essential type (2 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
382: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with narrower essential type (2 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
382: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with narrower essential type (2 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
397: |
Do not define function-like macro: PROP |
MISRAC2012-DIR_4_9-a-4 |
|
401: |
Global variable 'tee_cryp_obj_props' is being used only in a single function 'tee_svc_find_type_props' |
MISRAC2012-RULE_8_9-a-4 |
|
402: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with narrower essential type (1 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
402: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with narrower essential type (2 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
405: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with narrower essential type (1 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
405: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with narrower essential type (2 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
409: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with narrower essential type (1 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
409: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with narrower essential type (2 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
413: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with narrower essential type (1 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
413: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with narrower essential type (2 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
416: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with narrower essential type (1 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
416: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with narrower essential type (2 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
419: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with narrower essential type (1 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
419: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with narrower essential type (2 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
422: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with narrower essential type (1 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
422: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with narrower essential type (2 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
425: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with narrower essential type (1 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
425: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with narrower essential type (2 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
428: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with narrower essential type (1 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
428: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with narrower essential type (2 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
431: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with narrower essential type (1 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
431: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with narrower essential type (2 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
434: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with narrower essential type (1 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
434: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with narrower essential type (2 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
437: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with narrower essential type (1 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
437: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with narrower essential type (2 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
441: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with narrower essential type (1 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
441: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with narrower essential type (2 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
446: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with narrower essential type (1 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
446: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with narrower essential type (2 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
451: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with narrower essential type (1 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
451: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with narrower essential type (2 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
455: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with narrower essential type (1 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
455: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with narrower essential type (2 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
459: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with narrower essential type (1 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
459: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with narrower essential type (2 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
463: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with narrower essential type (1 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
463: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with narrower essential type (2 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
467: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with narrower essential type (1 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
467: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with narrower essential type (2 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
471: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with narrower essential type (1 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
471: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with narrower essential type (2 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
475: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with narrower essential type (1 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
475: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with narrower essential type (2 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
479: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with narrower essential type (1 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
479: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with narrower essential type (2 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
483: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with narrower essential type (1 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
483: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with narrower essential type (2 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
487: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with narrower essential type (1 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
487: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with narrower essential type (2 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
491: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with narrower essential type (1 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
491: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with narrower essential type (2 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
495: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with narrower essential type (1 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
495: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with narrower essential type (2 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
499: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with narrower essential type (1 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
499: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with narrower essential type (2 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
503: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with narrower essential type (1 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
503: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with narrower essential type (2 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
507: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with narrower essential type (1 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
507: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with narrower essential type (2 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
511: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with narrower essential type (1 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
511: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with narrower essential type (2 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
525: |
An external identifier with the same name 'free' was declared in the 'malloc.h' file in line 11 |
MISRAC2012-RULE_5_8-a-2 |
|
538: |
The operands of a logical '&&' in function 'op_u32_to_binary_helper' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
540: |
In the call of the function 'memcpy' the first argument type 'unsigned char*' is not compatible with the second argument type
'unsigned int*'
|
MISRAC2012-RULE_21_15-a-2 |
|
540: |
The variable 'data' used as the left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
540: |
Unused function's "memcpy" return value |
MISRAC2012-RULE_17_7-a-2 |
|
552: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
552: |
The operands of a logical '||' in function 'op_u32_from_binary_helper' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
552: |
The operands of a logical '||' in function 'op_u32_from_binary_helper' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
555: |
In the call of the function 'memcpy' the first argument type 'unsigned int*' is not compatible with the second argument type
'unsigned char*'
|
MISRAC2012-RULE_21_15-a-2 |
|
555: |
The variable 'data' used as the left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
555: |
Unused function's "memcpy" return value |
MISRAC2012-RULE_17_7-a-2 |
|
564: |
Pointer to void type should not be converted to pointer to object type 'struct tee_cryp_obj_secret *' |
MISRAC2012-RULE_11_5-a-4 |
|
569: |
In the call of the function 'memcpy' the first argument type 'tee_cryp_obj_secret*' is not compatible with the second argument
type 'void*'
|
MISRAC2012-RULE_21_15-a-2 |
|
569: |
The variable 'key' used as the left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
569: |
Unused function's "memcpy" return value |
MISRAC2012-RULE_17_7-a-2 |
|
570: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with a narrower essential type (4 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
575: |
Parameter 'sess' is not used in function 'op_attr_secret_value_to_user' |
MISRAC2012-RULE_2_7-a-4 |
|
575: |
Pass parameter "sess" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
579: |
Pointer to void type should not be converted to pointer to object type 'struct tee_cryp_obj_secret *' |
MISRAC2012-RULE_11_5-a-4 |
|
592: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
592: |
The operands of a logical '||' in function 'op_attr_secret_value_to_user' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
592: |
The operands of a logical '||' in function 'op_attr_secret_value_to_user' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
595: |
The variable 'key' used as the left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
602: |
Pointer to void type should not be converted to pointer to object type 'struct tee_cryp_obj_secret *' |
MISRAC2012-RULE_11_5-a-4 |
|
605: |
Pointer to void type should not be converted to pointer to object type 'uint8_t *' in function's argument |
MISRAC2012-RULE_11_5-a-4 |
|
612: |
The operands of a logical '&&' in function 'op_attr_secret_value_to_binary' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
613: |
In the call of the function 'memcpy' the first argument type 'unsigned char*' is not compatible with the second argument type
'tee_cryp_obj_secret*'
|
MISRAC2012-RULE_21_15-a-2 |
|
613: |
Pointer to void type should not be converted to pointer to object type 'uint8_t *' |
MISRAC2012-RULE_11_5-a-4 |
|
613: |
The left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
613: |
The variable 'key' used as the left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
613: |
Unused function's "memcpy" return value |
MISRAC2012-RULE_17_7-a-2 |
|
622: |
Pointer to void type should not be converted to pointer to object type 'struct tee_cryp_obj_secret *' |
MISRAC2012-RULE_11_5-a-4 |
|
625: |
Pointer to void type should not be converted to pointer to object type 'const uint8_t *' in function's argument |
MISRAC2012-RULE_11_5-a-4 |
|
635: |
In the call of the function 'memcpy' the first argument type 'tee_cryp_obj_secret*' is not compatible with the second argument
type 'unsigned char*'
|
MISRAC2012-RULE_21_15-a-2 |
|
635: |
Pointer to void type should not be converted to pointer to object type 'const uint8_t *' |
MISRAC2012-RULE_11_5-a-4 |
|
635: |
The left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
635: |
The variable 'key' used as the left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
635: |
Unused function's "memcpy" return value |
MISRAC2012-RULE_17_7-a-2 |
|
643: |
Pointer to void type should not be converted to pointer to object type 'struct tee_cryp_obj_secret *' |
MISRAC2012-RULE_11_5-a-4 |
|
644: |
Pointer to void type should not be converted to pointer to object type 'struct tee_cryp_obj_secret *' |
MISRAC2012-RULE_11_5-a-4 |
|
648: |
The variable 'key' used as the left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
648: |
The variable 'src_key' used as the left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
648: |
Unused function's "memcpy" return value |
MISRAC2012-RULE_17_7-a-2 |
|
655: |
Pointer to void type should not be converted to pointer to object type 'struct tee_cryp_obj_secret *' |
MISRAC2012-RULE_11_5-a-4 |
|
658: |
The variable 'key' used as the left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
664: |
Pointer to void type should not be converted to pointer to object type 'struct bignum **' |
MISRAC2012-RULE_11_5-a-4 |
|
666: |
Pointer to void type should not be converted to pointer to object type 'const uint8_t *' in function's argument |
MISRAC2012-RULE_11_5-a-4 |
|
674: |
Pointer to void type should not be converted to pointer to object type 'struct bignum **' |
MISRAC2012-RULE_11_5-a-4 |
|
686: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
688: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
688: |
The operands of a logical '||' in function 'op_attr_bignum_to_user' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
688: |
The operands of a logical '||' in function 'op_attr_bignum_to_user' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
693: |
The argument number '2' ('essentially signed' type) is passed to the function 'vm_check_access_rights' as a parameter with
the 'essentially unsigned' type
|
MISRAC2012-RULE_10_3-b-2 |
|
696: |
Pointer to void type should not be converted to arithmetic type 'unsigned long' |
MISRAC2012-RULE_11_6-a-2 |
|
703: |
Pointer to void type should not be converted to pointer to object type 'uint8_t *' in function's argument |
MISRAC2012-RULE_11_5-a-4 |
|
711: |
Pointer to void type should not be converted to pointer to object type 'struct bignum **' |
MISRAC2012-RULE_11_5-a-4 |
|
712: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with a narrower essential type (4 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
715: |
Pointer to void type should not be converted to pointer to object type 'uint8_t *' in function's argument |
MISRAC2012-RULE_11_5-a-4 |
|
722: |
The operands of a logical '&&' in function 'op_attr_bignum_to_binary' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
723: |
Pointer to void type should not be converted to pointer to object type 'uint8_t *' |
MISRAC2012-RULE_11_5-a-4 |
|
723: |
The left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
732: |
Pointer to void type should not be converted to pointer to object type 'struct bignum **' |
MISRAC2012-RULE_11_5-a-4 |
|
735: |
Pointer to void type should not be converted to pointer to object type 'const uint8_t *' in function's argument |
MISRAC2012-RULE_11_5-a-4 |
|
740: |
Pointer to void type should not be converted to pointer to object type 'const uint8_t *' |
MISRAC2012-RULE_11_5-a-4 |
|
740: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
740: |
The left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
748: |
Pointer to void type should not be converted to pointer to object type 'struct bignum **' |
MISRAC2012-RULE_11_5-a-4 |
|
749: |
Pointer to void type should not be converted to pointer to object type 'struct bignum **' |
MISRAC2012-RULE_11_5-a-4 |
|
757: |
Pointer to void type should not be converted to pointer to object type 'struct bignum **' |
MISRAC2012-RULE_11_5-a-4 |
|
764: |
Pointer to void type should not be converted to pointer to object type 'struct bignum **' |
MISRAC2012-RULE_11_5-a-4 |
|
773: |
Pointer to void type should not be converted to pointer to object type 'uint32_t *' |
MISRAC2012-RULE_11_5-a-4 |
|
775: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
779: |
In the call of the function 'memcpy' the first argument type 'unsigned int*' is not compatible with the second argument type
'void*'
|
MISRAC2012-RULE_21_15-a-2 |
|
779: |
Unused function's "memcpy" return value |
MISRAC2012-RULE_17_7-a-2 |
|
784: |
Parameter 'sess' is not used in function 'op_attr_value_to_user' |
MISRAC2012-RULE_2_7-a-4 |
|
784: |
Pass parameter "sess" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
785: |
Pass parameter "size" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
788: |
Pointer to void type should not be converted to pointer to object type 'uint32_t *' |
MISRAC2012-RULE_11_5-a-4 |
|
790: |
The array of type 'uint32_t [2]' shall not be partially initialized |
MISRAC2012-RULE_9_3-a-2 |
|
797: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
797: |
The operands of a logical '||' in function 'op_attr_value_to_user' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
797: |
The operands of a logical '||' in function 'op_attr_value_to_user' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
806: |
Pointer to void type should not be converted to pointer to object type 'uint32_t *' |
MISRAC2012-RULE_11_5-a-4 |
|
808: |
Pointer to void type should not be converted to pointer to object type 'uint8_t *' in function's argument |
MISRAC2012-RULE_11_5-a-4 |
|
814: |
Pointer to void type should not be converted to pointer to object type 'uint32_t *' |
MISRAC2012-RULE_11_5-a-4 |
|
816: |
Pointer to void type should not be converted to pointer to object type 'const uint8_t *' in function's argument |
MISRAC2012-RULE_11_5-a-4 |
|
821: |
Pointer to void type should not be converted to pointer to object type 'uint32_t *' |
MISRAC2012-RULE_11_5-a-4 |
|
822: |
Pointer to void type should not be converted to pointer to object type 'uint32_t *' |
MISRAC2012-RULE_11_5-a-4 |
|
830: |
Pointer to void type should not be converted to pointer to object type 'uint32_t *' |
MISRAC2012-RULE_11_5-a-4 |
|
835: |
A tag name 'attr_ops' is reused |
MISRAC2012-RULE_5_7-a-2 |
|
835: |
The size of the array 'attr_ops' should be specified explicitly |
MISRAC2012-RULE_9_5-a-2 |
|
865: |
Pass parameter "dst" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
865: |
Pass parameter "src" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
874: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
874: |
The operands of a logical '&&' in function 'get_user_u64_as_size_t' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
874: |
The operands of a logical '&&' in function 'get_user_u64_as_size_t' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
894: |
The argument number '1' (8 byte essential type) is passed to the function 'uref_to_vaddr' as a parameter with a narrower essential
type (4 byte)
|
MISRAC2012-RULE_10_3-a-2 |
|
896: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
911: |
The argument number '1' (8 byte essential type) is passed to the function 'uref_to_vaddr' as a parameter with a narrower essential
type (4 byte)
|
MISRAC2012-RULE_10_3-a-2 |
|
913: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
915: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with a narrower essential type (4 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
929: |
The expression of the 'essentially unsigned' type is returned from function 'tee_svc_cryp_obj_find_type_attr_idx' with the
'essentially signed' type
|
MISRAC2012-RULE_10_3-b-2 |
|
941: |
The variable 'tee_cryp_obj_props' used as the left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
956: |
Essential type of LHS operand (32 bit) is wider than essential type of composite expression in RHS operand (8 bit) |
MISRAC2012-RULE_10_7-a-2 |
|
956: |
Shifting operation should be enclosed with if checking that RHS operand lies between zero and one less than the width in bits
of the underlying type of the LHS operand
|
MISRAC2012-RULE_12_2-a-2 |
|
956: |
The right hand operand of the shift operator '<<' has essentially signed type 'int' |
MISRAC2012-RULE_10_1-f-2 |
|
968: |
Essential type of LHS operand (32 bit) is wider than essential type of composite expression in RHS operand (8 bit) |
MISRAC2012-RULE_10_7-a-2 |
|
968: |
Shifting operation should be enclosed with if checking that RHS operand lies between zero and one less than the width in bits
of the underlying type of the LHS operand
|
MISRAC2012-RULE_12_2-a-2 |
|
968: |
The right hand operand of the shift operator '<<' has essentially signed type 'int' |
MISRAC2012-RULE_10_1-f-2 |
|
982: |
The argument number '1' (8 byte essential type) is passed to the function 'uref_to_vaddr' as a parameter with a narrower essential
type (4 byte)
|
MISRAC2012-RULE_10_3-a-2 |
|
987: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
991: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
991: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
991: |
The operands of a logical '&&' in function 'syscall_cryp_obj_get_attr' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
992: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
992: |
The operands of a logical '&&' in function 'syscall_cryp_obj_get_attr' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
996: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
1001: |
The argument number '1' (8 byte essential type) is passed to the function 'tee_svc_cryp_obj_find_type_attr_idx' as a parameter
with a narrower essential type (4 byte)
|
MISRAC2012-RULE_10_3-a-2 |
|
1002: |
Shifting operation should be enclosed with if checking that RHS operand lies between zero and one less than the width in bits
of the underlying type of the LHS operand
|
MISRAC2012-RULE_12_2-a-2 |
|
1002: |
The right hand operand of the shift operator '<<' has essentially signed type 'int' |
MISRAC2012-RULE_10_1-f-2 |
|
1005: |
The variable 'attr_ops' used as the left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
1006: |
Pointer to void type should not be converted to pointer to object type 'uint8_t *' |
MISRAC2012-RULE_11_5-a-4 |
|
1006: |
The left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
1015: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
1018: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
1022: |
The left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
1024: |
Pointer to void type should not be converted to pointer to object type 'uint8_t *' |
MISRAC2012-RULE_11_5-a-4 |
|
1024: |
The left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
1028: |
The function 'tee_obj_attr_clear' is referenced only in the translation unit where it is defined |
MISRAC2012-RULE_8_7-a-4 |
|
1033: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
1036: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
1040: |
The left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
1042: |
Pointer to void type should not be converted to pointer to object type 'uint8_t *' |
MISRAC2012-RULE_11_5-a-4 |
|
1042: |
The left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
1053: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
1053: |
The second and third operand have different essential types: 'unsigned long' and 'signed char' |
MISRAC2012-RULE_10_4-b-2 |
|
1060: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
1063: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
1067: |
The left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
1068: |
Pointer to void type should not be converted to pointer to object type 'uint8_t *' |
MISRAC2012-RULE_11_5-a-4 |
|
1068: |
The left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
1076: |
The operands of a logical '&&' in function 'tee_obj_attr_to_binary' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
1090: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
1093: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
1097: |
The left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
1098: |
Pointer to void type should not be converted to pointer to object type 'uint8_t *' |
MISRAC2012-RULE_11_5-a-4 |
|
1098: |
The left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
1119: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
1122: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
1128: |
The left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
1129: |
Pointer to void type should not be converted to pointer to object type 'uint8_t *' |
MISRAC2012-RULE_11_5-a-4 |
|
1129: |
The left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
1130: |
Pointer to void type should not be converted to pointer to object type 'uint8_t *' |
MISRAC2012-RULE_11_5-a-4 |
|
1130: |
The left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
1165: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
1168: |
Shifting operation should be enclosed with if checking that RHS operand does not exceed the upper limit (one less than the
width in bits of the underlying type of the LHS operand)
|
MISRAC2012-RULE_12_2-a-2 |
|
1170: |
The left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
1177: |
Pointer to void type should not be converted to pointer to object type 'uint8_t *' |
MISRAC2012-RULE_11_5-a-4 |
|
1177: |
The left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
1178: |
Pointer to void type should not be converted to pointer to object type 'uint8_t *' |
MISRAC2012-RULE_11_5-a-4 |
|
1178: |
The left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
1193: |
The operands of a logical '&&' in function 'is_gp_legacy_des_key_size' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
1193: |
The operands of a logical '&&' in function 'is_gp_legacy_des_key_size' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
1194: |
The operands of a logical '&&' in function 'is_gp_legacy_des_key_size' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
1194: |
The operands of a logical '||' in function 'is_gp_legacy_des_key_size' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
1194: |
The operands of a logical '||' in function 'is_gp_legacy_des_key_size' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
1210: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
1227: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
1236: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
1241: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
1246: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
1249: |
'calloc' function should not be used |
MISRAC2012-RULE_21_3-a-2 |
|
1249: |
'calloc' function should not be used |
MISRAC2012-DIR_4_12-a-2 |
|
1250: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
1257: |
Pointer to void type should not be converted to pointer to object type 'struct rsa_public_key *' in function's argument |
MISRAC2012-RULE_11_5-a-4 |
|
1261: |
Pointer to void type should not be converted to pointer to object type 'struct rsa_keypair *' in function's argument |
MISRAC2012-RULE_11_5-a-4 |
|
1264: |
Pointer to void type should not be converted to pointer to object type 'struct dsa_public_key *' in function's argument |
MISRAC2012-RULE_11_5-a-4 |
|
1268: |
Pointer to void type should not be converted to pointer to object type 'struct dsa_keypair *' in function's argument |
MISRAC2012-RULE_11_5-a-4 |
|
1271: |
Pointer to void type should not be converted to pointer to object type 'struct dh_keypair *' in function's argument |
MISRAC2012-RULE_11_5-a-4 |
|
1278: |
Pointer to void type should not be converted to pointer to object type 'struct ecc_public_key *' in function's argument |
MISRAC2012-RULE_11_5-a-4 |
|
1286: |
Pointer to void type should not be converted to pointer to object type 'struct ecc_keypair *' in function's argument |
MISRAC2012-RULE_11_5-a-4 |
|
1291: |
Pointer to void type should not be converted to pointer to object type 'struct tee_cryp_obj_secret *' |
MISRAC2012-RULE_11_5-a-4 |
|
1293: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with a narrower essential type (4 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
1303: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with a narrower essential type (4 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
1318: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
1321: |
The argument number '2' (8 byte essential type) is passed to the function 'tee_obj_set_type' as a parameter with a narrower
essential type (4 byte)
|
MISRAC2012-RULE_10_3-a-2 |
|
1341: |
The argument number '1' (8 byte essential type) is passed to the function 'uref_to_vaddr' as a parameter with a narrower essential
type (4 byte)
|
MISRAC2012-RULE_10_3-a-2 |
|
1362: |
The argument number '1' (8 byte essential type) is passed to the function 'uref_to_vaddr' as a parameter with a narrower essential
type (4 byte)
|
MISRAC2012-RULE_10_3-a-2 |
|
1380: |
Pass parameter "utc" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
1392: |
The argument number '2' ('essentially signed' type) is passed to the function 'vm_check_access_rights' as a parameter with
the 'essentially unsigned' type
|
MISRAC2012-RULE_10_3-b-2 |
|
1394: |
Pointer to object type 'const struct utee_attribute *' should not be converted to integral type 'unsigned long' |
MISRAC2012-RULE_11_4-a-4 |
|
1400: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
1400: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
1401: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with a narrower essential type (4 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
1402: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with a narrower essential type (4 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
1406: |
The expression of the 'essentially signed' type is assigned to an object with the 'essentially unsigned' type |
MISRAC2012-RULE_10_3-b-2 |
|
1413: |
Arithmetic type 'unsigned long' should not be converted to pointer to void type |
MISRAC2012-RULE_11_6-a-2 |
|
1414: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with a narrower essential type (4 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
1458: |
Shifting operation should be enclosed with if checking that RHS operand does not exceed the upper limit (one less than the
width in bits of the underlying type of the LHS operand)
|
MISRAC2012-RULE_12_2-a-2 |
|
1458: |
The expression of the 'essentially signed' type is assigned to an object with the 'essentially unsigned' type |
MISRAC2012-RULE_10_3-b-2 |
|
1461: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
1463: |
Provide 'else' after the last 'else-if' construct |
MISRAC2012-RULE_15_7-a-2 |
|
1463: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
1480: |
Shifting operation should be enclosed with if checking that RHS operand lies between zero and one less than the width in bits
of the underlying type of the LHS operand
|
MISRAC2012-RULE_12_2-a-2 |
|
1480: |
The expression of the 'essentially signed' type is assigned to an object with the 'essentially unsigned' type |
MISRAC2012-RULE_10_3-b-2 |
|
1480: |
The right hand operand of the shift operator '<<' has essentially signed type 'int' |
MISRAC2012-RULE_10_1-f-2 |
|
1490: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
1503: |
The operands of a logical '&&' in function 'tee_svc_cryp_check_attr' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
1504: |
The operands of a logical '&&' in function 'tee_svc_cryp_check_attr' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
1540: |
The expression of the 'essentially unsigned' type is assigned to an object with the 'essentially signed' type |
MISRAC2012-RULE_10_3-b-2 |
|
1543: |
'for' statement in a function 'get_used_bits' should be followed by a block |
MISRAC2012-RULE_15_6-a-2 |
|
1543: |
Disallowed comma operator is used in function 'get_used_bits' |
MISRAC2012-RULE_12_3-a-4 |
|
1543: |
Left-hand operand of right-shift operator is an expression of ' int' type |
MISRAC2012-RULE_1_3-o-2 |
|
1543: |
Pointer to void type should not be converted to pointer to object type 'bitstr_t *' |
MISRAC2012-RULE_11_5-a-4 |
|
1543: |
Reserved name '_byte' used |
MISRAC2012-RULE_21_2-a-2 |
|
1543: |
Reserved name '_lb' used |
MISRAC2012-RULE_21_2-a-2 |
|
1543: |
Reserved name '_name' used |
MISRAC2012-RULE_21_2-a-2 |
|
1543: |
Reserved name '_nbits' used |
MISRAC2012-RULE_21_2-a-2 |
|
1543: |
Reserved name '_stopbyte' used |
MISRAC2012-RULE_21_2-a-2 |
|
1543: |
Reserved name '_value' used |
MISRAC2012-RULE_21_2-a-2 |
|
1543: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
1543: |
The '++' operator should cause the only side effect in an expression |
MISRAC2012-RULE_13_3-a-4 |
|
1543: |
The names of the identifiers '_nbits' and 'nbits' (line: 1540 in the 'tee_svc_cryp.c' file) differ only in the presence/absence
of the underscore character
|
MISRAC2012-DIR_4_5-a-4 |
|
1543: |
The operand of the logical negation operator '!' should have essentially Boolean type |
MISRAC2012-RULE_10_1-a-2 |
|
1543: |
The third clause of a 'for' statement should not contain a comma operator |
MISRAC2012-RULE_14_2-d-2 |
|
1544: |
The expression of the 'essentially signed' type is returned from function 'get_used_bits' with the 'essentially unsigned'
type
|
MISRAC2012-RULE_10_3-b-2 |
|
1569: |
Essential type of LHS operand (32 bit) is wider than essential type of composite expression in RHS operand (8 bit) |
MISRAC2012-RULE_10_7-a-2 |
|
1569: |
Shifting operation should be enclosed with if checking that RHS operand lies between zero and one less than the width in bits
of the underlying type of the LHS operand
|
MISRAC2012-RULE_12_2-a-2 |
|
1569: |
The right hand operand of the shift operator '<<' has essentially signed type 'int' |
MISRAC2012-RULE_10_1-f-2 |
|
1570: |
The variable 'attr_ops' used as the left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
1571: |
Pointer to void type should not be converted to pointer to object type 'uint8_t *' |
MISRAC2012-RULE_11_5-a-4 |
|
1571: |
The left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
1573: |
Constant used as the right-hand operand of a shift operator shall be limited |
MISRAC2012-RULE_12_2-a-2 |
|
1573: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
1586: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
1589: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
1605: |
The value of a composite expression (32 bit essential type) is assigned to an object with wider essential type (64 bit) |
MISRAC2012-RULE_10_6-a-2 |
|
1619: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
1621: |
The variable 'attrs' used as the left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
1627: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with a narrower essential type (4 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
1639: |
Identifiers given in declaration of 'syscall_cryp_obj_populate' function (file: 'tee_svc_cryp.h', line: '24') are: 'attrs'
not: 'usr_attrs'
|
MISRAC2012-RULE_8_3-b-2 |
|
1640: |
Pass parameter "usr_attrs" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
1649: |
The argument number '1' (8 byte essential type) is passed to the function 'uref_to_vaddr' as a parameter with a narrower essential
type (4 byte)
|
MISRAC2012-RULE_10_3-a-2 |
|
1670: |
'malloc' function should not be used |
MISRAC2012-RULE_21_3-a-2 |
|
1670: |
'malloc' function should not be used |
MISRAC2012-DIR_4_12-a-2 |
|
1670: |
Pointer to void type should not be converted to pointer to object type 'TEE_Attribute *' |
MISRAC2012-RULE_11_5-a-4 |
|
1674: |
The argument number '3' (8 byte essential type) is passed to the function 'copy_in_attrs' as a parameter with a narrower essential
type (4 byte)
|
MISRAC2012-RULE_10_3-a-2 |
|
1677: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
1680: |
The argument number '4' (8 byte essential type) is passed to the function 'tee_svc_cryp_check_attr' as a parameter with a
narrower essential type (4 byte)
|
MISRAC2012-RULE_10_3-a-2 |
|
1682: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
1684: |
The argument number '4' (8 byte essential type) is passed to the function 'tee_svc_cryp_obj_populate_type' as a parameter
with a narrower essential type (4 byte)
|
MISRAC2012-RULE_10_3-a-2 |
|
1693: |
Identifiers given in declaration of 'syscall_cryp_obj_copy' function (file: 'tee_svc_cryp.h', line: '26') are: 'dst_obj, src_obj'
not: 'dst, src'
|
MISRAC2012-RULE_8_3-b-2 |
|
1701: |
The argument number '1' (8 byte essential type) is passed to the function 'uref_to_vaddr' as a parameter with a narrower essential
type (4 byte)
|
MISRAC2012-RULE_10_3-a-2 |
|
1706: |
The argument number '1' (8 byte essential type) is passed to the function 'uref_to_vaddr' as a parameter with a narrower essential
type (4 byte)
|
MISRAC2012-RULE_10_3-a-2 |
|
1737: |
The operands of a logical '||' in function 'check_pub_rsa_key' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
1737: |
The operands of a logical '||' in function 'check_pub_rsa_key' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
1767: |
Pointer to void type should not be converted to pointer to object type 'struct rsa_keypair *' |
MISRAC2012-RULE_11_5-a-4 |
|
1775: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
1777: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
1780: |
Unused function's "crypto_bignum_bin2bn" return value |
MISRAC2012-RULE_17_7-a-2 |
|
1787: |
Shifting operation should be enclosed with if checking that RHS operand does not exceed the upper limit (one less than the
width in bits of the underlying type of the LHS operand)
|
MISRAC2012-RULE_12_2-a-2 |
|
1787: |
The expression of the 'essentially signed' type is assigned to an object with the 'essentially unsigned' type |
MISRAC2012-RULE_10_3-b-2 |
|
1804: |
Pointer to void type should not be converted to pointer to object type 'struct dsa_keypair *' in function's argument |
MISRAC2012-RULE_11_5-a-4 |
|
1809: |
Shifting operation should be enclosed with if checking that RHS operand does not exceed the upper limit (one less than the
width in bits of the underlying type of the LHS operand)
|
MISRAC2012-RULE_12_2-a-2 |
|
1809: |
The expression of the 'essentially signed' type is assigned to an object with the 'essentially unsigned' type |
MISRAC2012-RULE_10_3-b-2 |
|
1829: |
Pointer to void type should not be converted to pointer to object type 'struct dh_keypair *' |
MISRAC2012-RULE_11_5-a-4 |
|
1831: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
1833: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
1859: |
Pointer to void type should not be converted to pointer to object type 'struct ecc_keypair *' |
MISRAC2012-RULE_11_5-a-4 |
|
1873: |
Identifiers given in declaration of 'syscall_obj_generate_key' function (file: 'tee_svc_cryp.h', line: '28') are: 'params'
not: 'usr_params'
|
MISRAC2012-RULE_8_3-b-2 |
|
1885: |
The argument number '1' (8 byte essential type) is passed to the function 'uref_to_vaddr' as a parameter with a narrower essential
type (4 byte)
|
MISRAC2012-RULE_10_3-a-2 |
|
1904: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
1912: |
'malloc' function should not be used |
MISRAC2012-RULE_21_3-a-2 |
|
1912: |
'malloc' function should not be used |
MISRAC2012-DIR_4_12-a-2 |
|
1912: |
Pointer to void type should not be converted to pointer to object type 'TEE_Attribute *' |
MISRAC2012-RULE_11_5-a-4 |
|
1915: |
The argument number '3' (8 byte essential type) is passed to the function 'copy_in_attrs' as a parameter with a narrower essential
type (4 byte)
|
MISRAC2012-RULE_10_3-a-2 |
|
1918: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
1921: |
The argument number '4' (8 byte essential type) is passed to the function 'tee_svc_cryp_check_attr' as a parameter with a
narrower essential type (4 byte)
|
MISRAC2012-RULE_10_3-a-2 |
|
1923: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
1945: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
1947: |
Pointer to void type should not be converted to pointer to object type 'struct tee_cryp_obj_secret *' |
MISRAC2012-RULE_11_5-a-4 |
|
1950: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
1953: |
The variable 'key' used as the left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
1955: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
1957: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with a narrower essential type (4 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
1960: |
Shifting operation should be enclosed with if checking that RHS operand does not exceed the upper limit (one less than the
width in bits of the underlying type of the LHS operand)
|
MISRAC2012-RULE_12_2-a-2 |
|
1960: |
The expression of the 'essentially signed' type is assigned to an object with the 'essentially unsigned' type |
MISRAC2012-RULE_10_3-b-2 |
|
1965: |
The argument number '3' (8 byte essential type) is passed to the function 'tee_svc_obj_generate_key_rsa' as a parameter with
a narrower essential type (4 byte)
|
MISRAC2012-RULE_10_3-a-2 |
|
1966: |
The argument number '5' (8 byte essential type) is passed to the function 'tee_svc_obj_generate_key_rsa' as a parameter with
a narrower essential type (4 byte)
|
MISRAC2012-RULE_10_3-a-2 |
|
1968: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
1972: |
The argument number '3' (8 byte essential type) is passed to the function 'tee_svc_obj_generate_key_dsa' as a parameter with
a narrower essential type (4 byte)
|
MISRAC2012-RULE_10_3-a-2 |
|
1973: |
The argument number '5' (8 byte essential type) is passed to the function 'tee_svc_obj_generate_key_dsa' as a parameter with
a narrower essential type (4 byte)
|
MISRAC2012-RULE_10_3-a-2 |
|
1975: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
1979: |
The argument number '3' (8 byte essential type) is passed to the function 'tee_svc_obj_generate_key_dh' as a parameter with
a narrower essential type (4 byte)
|
MISRAC2012-RULE_10_3-a-2 |
|
1980: |
The argument number '5' (8 byte essential type) is passed to the function 'tee_svc_obj_generate_key_dh' as a parameter with
a narrower essential type (4 byte)
|
MISRAC2012-RULE_10_3-a-2 |
|
1982: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
1988: |
The argument number '3' (8 byte essential type) is passed to the function 'tee_svc_obj_generate_key_ecc' as a parameter with
a narrower essential type (4 byte)
|
MISRAC2012-RULE_10_3-a-2 |
|
1989: |
The argument number '5' (8 byte essential type) is passed to the function 'tee_svc_obj_generate_key_ecc' as a parameter with
a narrower essential type (4 byte)
|
MISRAC2012-RULE_10_3-a-2 |
|
1991: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
1994: |
Every non empty default clause in a switch statement shall be terminated with a break statement |
MISRAC2012-RULE_16_1-d-2 |
|
1994: |
Every non empty default clause in a switch statement shall be terminated with a break statement |
MISRAC2012-RULE_16_3-b-2 |
|
2001: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with a narrower essential type (4 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
2014: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
2015: |
Pointer to object type 'struct tee_cryp_state *' should not be converted to integral type 'unsigned long' |
MISRAC2012-RULE_11_4-a-4 |
|
2049: |
Every non empty default clause in a switch statement shall be terminated with a break statement |
MISRAC2012-RULE_16_1-d-2 |
|
2049: |
Every non empty default clause in a switch statement shall be terminated with a break statement |
MISRAC2012-RULE_16_3-b-2 |
|
2053: |
'free' function should not be used |
MISRAC2012-RULE_21_3-a-2 |
|
2053: |
'free' function should not be used |
MISRAC2012-DIR_4_12-a-2 |
|
2099: |
The operands of a logical '||' in function 'tee_svc_cryp_check_key_type' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
2099: |
The operands of a logical '||' in function 'tee_svc_cryp_check_key_type' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
2104: |
The operands of a logical '||' in function 'tee_svc_cryp_check_key_type' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
2104: |
The operands of a logical '||' in function 'tee_svc_cryp_check_key_type' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
2155: |
The operands of a logical '&&' in function 'tee_svc_cryp_check_key_type' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
2156: |
The operands of a logical '&&' in function 'tee_svc_cryp_check_key_type' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
2161: |
Identifiers given in declaration of 'syscall_cryp_state_alloc' function (file: 'tee_svc_cryp.h', line: '32') are: 'op_mode'
not: 'mode'
|
MISRAC2012-RULE_8_3-b-2 |
|
2161: |
Value 35 is out of acceptable range: 'lower than 30' |
METRIC.CC-3 |
|
2173: |
The argument number '1' (8 byte essential type) is passed to the function 'uref_to_vaddr' as a parameter with a narrower essential
type (4 byte)
|
MISRAC2012-RULE_10_3-a-2 |
|
2178: |
The argument number '2' (8 byte essential type) is passed to the function 'tee_svc_cryp_check_key_type' as a parameter with
a narrower essential type (4 byte)
|
MISRAC2012-RULE_10_3-a-2 |
|
2178: |
The argument number '3' ('essentially unsigned' type) is passed to the function 'tee_svc_cryp_check_key_type' as a parameter
with the 'essentially Enum' type
|
MISRAC2012-RULE_10_3-b-2 |
|
2183: |
The argument number '1' (8 byte essential type) is passed to the function 'uref_to_vaddr' as a parameter with a narrower essential
type (4 byte)
|
MISRAC2012-RULE_10_3-a-2 |
|
2188: |
The argument number '2' (8 byte essential type) is passed to the function 'tee_svc_cryp_check_key_type' as a parameter with
a narrower essential type (4 byte)
|
MISRAC2012-RULE_10_3-a-2 |
|
2188: |
The argument number '3' ('essentially unsigned' type) is passed to the function 'tee_svc_cryp_check_key_type' as a parameter
with the 'essentially Enum' type
|
MISRAC2012-RULE_10_3-b-2 |
|
2193: |
'calloc' function should not be used |
MISRAC2012-RULE_21_3-a-2 |
|
2193: |
'calloc' function should not be used |
MISRAC2012-DIR_4_12-a-2 |
|
2193: |
Pointer to void type should not be converted to pointer to object type 'struct tee_cryp_state *' |
MISRAC2012-RULE_11_5-a-4 |
|
2197: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with a narrower essential type (4 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
2198: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with a narrower essential type (4 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
2201: |
The argument number '1' (8 byte essential type) is passed to the function '__tee_alg_get_class' as a parameter with a narrower
essential type (4 byte)
|
MISRAC2012-RULE_10_3-a-2 |
|
2203: |
The operands of a logical '&&' in function 'syscall_cryp_state_alloc' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
2203: |
The operands of a logical '||' in function 'syscall_cryp_state_alloc' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
2203: |
The operands of a logical '||' in function 'syscall_cryp_state_alloc' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
2204: |
The operands of a logical '&&' in function 'syscall_cryp_state_alloc' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
2204: |
The operands of a logical '||' in function 'syscall_cryp_state_alloc' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
2204: |
The operands of a logical '||' in function 'syscall_cryp_state_alloc' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
2207: |
The argument number '2' (8 byte essential type) is passed to the function 'crypto_cipher_alloc_ctx' as a parameter with a
narrower essential type (4 byte)
|
MISRAC2012-RULE_10_3-a-2 |
|
2213: |
The operands of a logical '||' in function 'syscall_cryp_state_alloc' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
2213: |
The operands of a logical '||' in function 'syscall_cryp_state_alloc' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
2216: |
The argument number '2' (8 byte essential type) is passed to the function 'crypto_authenc_alloc_ctx' as a parameter with a
narrower essential type (4 byte)
|
MISRAC2012-RULE_10_3-a-2 |
|
2222: |
The operands of a logical '||' in function 'syscall_cryp_state_alloc' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
2222: |
The operands of a logical '||' in function 'syscall_cryp_state_alloc' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
2225: |
The argument number '2' (8 byte essential type) is passed to the function 'crypto_mac_alloc_ctx' as a parameter with a narrower
essential type (4 byte)
|
MISRAC2012-RULE_10_3-a-2 |
|
2231: |
The operands of a logical '||' in function 'syscall_cryp_state_alloc' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
2231: |
The operands of a logical '||' in function 'syscall_cryp_state_alloc' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
2234: |
The argument number '2' (8 byte essential type) is passed to the function 'crypto_hash_alloc_ctx' as a parameter with a narrower
essential type (4 byte)
|
MISRAC2012-RULE_10_3-a-2 |
|
2241: |
The operands of a logical '&&' in function 'syscall_cryp_state_alloc' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
2242: |
The operands of a logical '&&' in function 'syscall_cryp_state_alloc' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
2246: |
The operands of a logical '||' in function 'syscall_cryp_state_alloc' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
2246: |
The operands of a logical '||' in function 'syscall_cryp_state_alloc' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
2251: |
The operands of a logical '||' in function 'syscall_cryp_state_alloc' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
2251: |
The operands of a logical '||' in function 'syscall_cryp_state_alloc' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
2254: |
The operands of a logical '||' in function 'syscall_cryp_state_alloc' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
2254: |
The operands of a logical '||' in function 'syscall_cryp_state_alloc' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
2263: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
2267: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
2272: |
Pointer to object type 'struct tee_obj *' should not be converted to integral type 'unsigned long' |
MISRAC2012-RULE_11_4-a-4 |
|
2276: |
Pointer to object type 'struct tee_obj *' should not be converted to integral type 'unsigned long' |
MISRAC2012-RULE_11_4-a-4 |
|
2292: |
The argument number '1' (8 byte essential type) is passed to the function 'uref_to_vaddr' as a parameter with a narrower essential
type (4 byte)
|
MISRAC2012-RULE_10_3-a-2 |
|
2296: |
The argument number '1' (8 byte essential type) is passed to the function 'uref_to_vaddr' as a parameter with a narrower essential
type (4 byte)
|
MISRAC2012-RULE_10_3-a-2 |
|
2299: |
The operands of a logical '||' in function 'syscall_cryp_state_copy' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
2299: |
The operands of a logical '||' in function 'syscall_cryp_state_copy' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
2329: |
'while' statement in a function 'tee_svc_cryp_free_states' should be followed by a block |
MISRAC2012-RULE_15_6-a-2 |
|
2339: |
The argument number '1' (8 byte essential type) is passed to the function 'uref_to_vaddr' as a parameter with a narrower essential
type (4 byte)
|
MISRAC2012-RULE_10_3-a-2 |
|
2347: |
Parameter 'iv' is not used in function 'syscall_hash_init' |
MISRAC2012-RULE_2_7-a-4 |
|
2348: |
Parameter 'iv_len' is not used in function 'syscall_hash_init' |
MISRAC2012-RULE_2_7-a-4 |
|
2354: |
The argument number '1' (8 byte essential type) is passed to the function 'uref_to_vaddr' as a parameter with a narrower essential
type (4 byte)
|
MISRAC2012-RULE_10_3-a-2 |
|
2377: |
Pointer to void type should not be converted to pointer to object type 'struct tee_cryp_obj_secret *' |
MISRAC2012-RULE_11_5-a-4 |
|
2378: |
Pointer to void type should not be converted to pointer to object type 'const uint8_t *' in function's argument |
MISRAC2012-RULE_11_5-a-4 |
|
2378: |
The variable 'key' used as the left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
2401: |
The operands of a logical '&&' in function 'syscall_hash_update' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
2409: |
The argument number '2' ('essentially signed' type) is passed to the function 'vm_check_access_rights' as a parameter with
the 'essentially unsigned' type
|
MISRAC2012-RULE_10_3-b-2 |
|
2411: |
Pointer to void type should not be converted to arithmetic type 'unsigned long' |
MISRAC2012-RULE_11_6-a-2 |
|
2415: |
The argument number '1' (8 byte essential type) is passed to the function 'uref_to_vaddr' as a parameter with a narrower essential
type (4 byte)
|
MISRAC2012-RULE_10_3-a-2 |
|
2424: |
Pointer to void type should not be converted to pointer to object type 'const uint8_t *' in function's argument |
MISRAC2012-RULE_11_5-a-4 |
|
2429: |
Pointer to void type should not be converted to pointer to object type 'const uint8_t *' in function's argument |
MISRAC2012-RULE_11_5-a-4 |
|
2451: |
The operands of a logical '&&' in function 'syscall_hash_final' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
2455: |
The argument number '2' ('essentially signed' type) is passed to the function 'vm_check_access_rights' as a parameter with
the 'essentially unsigned' type
|
MISRAC2012-RULE_10_3-b-2 |
|
2457: |
Pointer to void type should not be converted to arithmetic type 'unsigned long' |
MISRAC2012-RULE_11_6-a-2 |
|
2466: |
The argument number '2' ('essentially signed' type) is passed to the function 'vm_check_access_rights' as a parameter with
the 'essentially unsigned' type
|
MISRAC2012-RULE_10_3-b-2 |
|
2469: |
Pointer to void type should not be converted to arithmetic type 'unsigned long' |
MISRAC2012-RULE_11_6-a-2 |
|
2473: |
The argument number '1' (8 byte essential type) is passed to the function 'uref_to_vaddr' as a parameter with a narrower essential
type (4 byte)
|
MISRAC2012-RULE_10_3-a-2 |
|
2487: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
2490: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
2491: |
Pointer to void type should not be converted to pointer to object type 'const uint8_t *' in function's argument |
MISRAC2012-RULE_11_5-a-4 |
|
2496: |
Pointer to void type should not be converted to pointer to object type 'uint8_t *' in function's argument |
MISRAC2012-RULE_11_5-a-4 |
|
2507: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
2510: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
2511: |
Pointer to void type should not be converted to pointer to object type 'const uint8_t *' in function's argument |
MISRAC2012-RULE_11_5-a-4 |
|
2516: |
Pointer to void type should not be converted to pointer to object type 'uint8_t *' in function's argument |
MISRAC2012-RULE_11_5-a-4 |
|
2541: |
The argument number '1' (8 byte essential type) is passed to the function 'uref_to_vaddr' as a parameter with a narrower essential
type (4 byte)
|
MISRAC2012-RULE_10_3-a-2 |
|
2549: |
The argument number '2' ('essentially signed' type) is passed to the function 'vm_check_access_rights' as a parameter with
the 'essentially unsigned' type
|
MISRAC2012-RULE_10_3-b-2 |
|
2551: |
Pointer to void type should not be converted to arithmetic type 'unsigned long' |
MISRAC2012-RULE_11_6-a-2 |
|
2561: |
Pointer to void type should not be converted to pointer to object type 'struct tee_cryp_obj_secret *' |
MISRAC2012-RULE_11_5-a-4 |
|
2564: |
Pointer to void type should not be converted to pointer to object type 'struct tee_cryp_obj_secret *' |
MISRAC2012-RULE_11_5-a-4 |
|
2569: |
The argument number '2' ('essentially unsigned' type) is passed to the function 'crypto_cipher_init' as a parameter with the
'essentially Enum' type
|
MISRAC2012-RULE_10_3-b-2 |
|
2570: |
The variable 'key1' used as the left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
2571: |
The variable 'key2' used as the left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
2572: |
Pointer to void type should not be converted to pointer to object type 'const uint8_t *' in function's argument |
MISRAC2012-RULE_11_5-a-4 |
|
2574: |
The argument number '2' ('essentially unsigned' type) is passed to the function 'crypto_cipher_init' as a parameter with the
'essentially Enum' type
|
MISRAC2012-RULE_10_3-b-2 |
|
2575: |
The variable 'key1' used as the left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
2576: |
Pointer to void type should not be converted to pointer to object type 'const uint8_t *' in function's argument |
MISRAC2012-RULE_11_5-a-4 |
|
2596: |
The argument number '1' (8 byte essential type) is passed to the function 'uref_to_vaddr' as a parameter with a narrower essential
type (4 byte)
|
MISRAC2012-RULE_10_3-a-2 |
|
2604: |
The argument number '2' ('essentially signed' type) is passed to the function 'vm_check_access_rights' as a parameter with
the 'essentially unsigned' type
|
MISRAC2012-RULE_10_3-b-2 |
|
2606: |
Pointer to void type should not be converted to arithmetic type 'unsigned long' |
MISRAC2012-RULE_11_6-a-2 |
|
2614: |
The expression of the 'essentially signed' type is assigned to an object with the 'essentially unsigned' type |
MISRAC2012-RULE_10_3-b-2 |
|
2622: |
Pointer to void type should not be converted to arithmetic type 'unsigned long' |
MISRAC2012-RULE_11_6-a-2 |
|
2629: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
2634: |
The argument number '3' ('essentially unsigned' type) is passed to the function 'tee_do_cipher_update' as a parameter with
the 'essentially Enum' type
|
MISRAC2012-RULE_10_3-b-2 |
|
2635: |
Pointer to void type should not be converted to pointer to object type 'const uint8_t *' in function's argument |
MISRAC2012-RULE_11_5-a-4 |
|
2635: |
Pointer to void type should not be converted to pointer to object type 'uint8_t *' in function's argument |
MISRAC2012-RULE_11_5-a-4 |
|
2638: |
The operands of a logical '&&' in function 'tee_svc_cipher_update_helper' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
2644: |
The operands of a logical '||' in function 'tee_svc_cipher_update_helper' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
2644: |
The operands of a logical '||' in function 'tee_svc_cipher_update_helper' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
2645: |
The operands of a logical '&&' in function 'tee_svc_cipher_update_helper' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
2656: |
Identifiers given in declaration of 'syscall_cipher_update' function (file: 'tee_svc_cryp.h', line: '49') are: 'dest, dest_len'
not: 'dst, dst_len'
|
MISRAC2012-RULE_8_3-b-2 |
|
2663: |
Identifiers given in declaration of 'syscall_cipher_final' function (file: 'tee_svc_cryp.h', line: '51') are: 'dest, dest_len'
not: 'dst, dst_len'
|
MISRAC2012-RULE_8_3-b-2 |
|
2677: |
The names of the identifiers 'INFO' and 'info' (line: 2673 in the 'tee_svc_cryp.c' file) differ only in capitalization |
MISRAC2012-DIR_4_5-a-4 |
|
2677: |
The names of the identifiers 'SALT' and 'salt' (line: 2673 in the 'tee_svc_cryp.c' file) differ only in capitalization |
MISRAC2012-DIR_4_5-a-4 |
|
2680: |
Assignment operator '=' is used in improper context |
MISRAC2012-RULE_13_4-a-4 |
|
2681: |
Assignment operator '=' is used in improper context |
MISRAC2012-RULE_13_4-a-4 |
|
2681: |
Assignment operator '=' is used in improper context |
MISRAC2012-RULE_13_4-a-4 |
|
2731: |
Assignment operator '=' is used in improper context |
MISRAC2012-RULE_13_4-a-4 |
|
2768: |
The names of the identifiers 'SALT' and 'salt' (line: 2763 in the 'tee_svc_cryp.c' file) differ only in capitalization |
MISRAC2012-DIR_4_5-a-4 |
|
2772: |
Assignment operator '=' is used in improper context |
MISRAC2012-RULE_13_4-a-4 |
|
2772: |
Assignment operator '=' is used in improper context |
MISRAC2012-RULE_13_4-a-4 |
|
2834: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
2840: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
2841: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
2855: |
Pointer to void type should not be converted to pointer to object type 'const uint8_t *' in function's argument |
MISRAC2012-RULE_11_5-a-4 |
|
2855: |
Unused function's "crypto_bignum_bin2bn" return value |
MISRAC2012-RULE_17_7-a-2 |
|
2861: |
Pointer to void type should not be converted to pointer to object type 'const uint8_t *' in function's argument |
MISRAC2012-RULE_11_5-a-4 |
|
2861: |
Unused function's "crypto_bignum_bin2bn" return value |
MISRAC2012-RULE_17_7-a-2 |
|
2867: |
Pointer to void type should not be converted to pointer to object type 'const uint8_t *' in function's argument |
MISRAC2012-RULE_11_5-a-4 |
|
2867: |
Unused function's "crypto_bignum_bin2bn" return value |
MISRAC2012-RULE_17_7-a-2 |
|
2873: |
Pointer to void type should not be converted to pointer to object type 'const uint8_t *' in function's argument |
MISRAC2012-RULE_11_5-a-4 |
|
2873: |
Unused function's "crypto_bignum_bin2bn" return value |
MISRAC2012-RULE_17_7-a-2 |
|
2879: |
Pointer to void type should not be converted to pointer to object type 'const uint8_t *' |
MISRAC2012-RULE_11_5-a-4 |
|
2884: |
Pointer to void type should not be converted to pointer to object type 'const uint8_t *' |
MISRAC2012-RULE_11_5-a-4 |
|
2889: |
Pointer to void type should not be converted to pointer to object type 'const uint8_t *' |
MISRAC2012-RULE_11_5-a-4 |
|
2893: |
Pointer to void type should not be converted to pointer to object type 'uint8_t *' |
MISRAC2012-RULE_11_5-a-4 |
|
2896: |
Every non empty default clause in a switch statement shall be terminated with a break statement |
MISRAC2012-RULE_16_1-d-2 |
|
2896: |
Every non empty default clause in a switch statement shall be terminated with a break statement |
MISRAC2012-RULE_16_3-b-2 |
|
2899: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
2905: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
2917: |
Identifiers given in declaration of 'syscall_cryp_derive_key' function (file: 'tee_svc_cryp.h', line: '54') are: 'params'
not: 'usr_params'
|
MISRAC2012-RULE_8_3-b-2 |
|
2917: |
Value 38 is out of acceptable range: 'lower than 30' |
METRIC.CC-3 |
|
2932: |
The argument number '1' (8 byte essential type) is passed to the function 'uref_to_vaddr' as a parameter with a narrower essential
type (4 byte)
|
MISRAC2012-RULE_10_3-a-2 |
|
2939: |
'malloc' function should not be used |
MISRAC2012-RULE_21_3-a-2 |
|
2939: |
'malloc' function should not be used |
MISRAC2012-DIR_4_12-a-2 |
|
2939: |
Pointer to void type should not be converted to pointer to object type 'TEE_Attribute *' |
MISRAC2012-RULE_11_5-a-4 |
|
2942: |
The argument number '3' (8 byte essential type) is passed to the function 'copy_in_attrs' as a parameter with a narrower essential
type (4 byte)
|
MISRAC2012-RULE_10_3-a-2 |
|
2944: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
2949: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
2951: |
The argument number '1' (8 byte essential type) is passed to the function 'uref_to_vaddr' as a parameter with a narrower essential
type (4 byte)
|
MISRAC2012-RULE_10_3-a-2 |
|
2953: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
2956: |
Pointer to void type should not be converted to pointer to object type 'struct tee_cryp_obj_secret *' |
MISRAC2012-RULE_11_5-a-4 |
|
2962: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
2969: |
The operands of a logical '||' in function 'syscall_cryp_derive_key' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
2970: |
The operands of a logical '||' in function 'syscall_cryp_derive_key' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
2972: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
2979: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
2985: |
Pointer to void type should not be converted to pointer to object type 'const uint8_t *' in function's argument |
MISRAC2012-RULE_11_5-a-4 |
|
2985: |
Unused function's "crypto_bignum_bin2bn" return value |
MISRAC2012-RULE_17_7-a-2 |
|
2987: |
Pointer to void type should not be converted to pointer to object type 'struct dh_keypair *' in function's argument |
MISRAC2012-RULE_11_5-a-4 |
|
2990: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with a narrower essential type (4 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
2991: |
The variable 'sk' used as the left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
3008: |
The operands of a logical '||' in function 'syscall_cryp_derive_key' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
3009: |
The operands of a logical '||' in function 'syscall_cryp_derive_key' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
3010: |
The operands of a logical '||' in function 'syscall_cryp_derive_key' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
3012: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
3031: |
Every non empty default clause in a switch statement shall be terminated with a break statement |
MISRAC2012-RULE_16_1-d-2 |
|
3031: |
Every non empty default clause in a switch statement shall be terminated with a break statement |
MISRAC2012-RULE_16_3-b-2 |
|
3033: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
3040: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
3041: |
Pointer to void type should not be converted to pointer to object type 'struct ecc_keypair *' |
MISRAC2012-RULE_11_5-a-4 |
|
3042: |
Pointer to void type should not be converted to pointer to object type 'const uint8_t *' in function's argument |
MISRAC2012-RULE_11_5-a-4 |
|
3042: |
Unused function's "crypto_bignum_bin2bn" return value |
MISRAC2012-RULE_17_7-a-2 |
|
3045: |
Pointer to void type should not be converted to pointer to object type 'const uint8_t *' in function's argument |
MISRAC2012-RULE_11_5-a-4 |
|
3045: |
Unused function's "crypto_bignum_bin2bn" return value |
MISRAC2012-RULE_17_7-a-2 |
|
3049: |
The variable 'sk' used as the left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
3051: |
Pointer to void type should not be converted to pointer to object type 'struct ecc_keypair *' in function's argument |
MISRAC2012-RULE_11_5-a-4 |
|
3056: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with a narrower essential type (4 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
3069: |
Pointer to void type should not be converted to pointer to object type 'struct tee_cryp_obj_secret *' |
MISRAC2012-RULE_11_5-a-4 |
|
3070: |
The variable 'ik' used as the left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
3072: |
The argument number '2' (8 byte essential type) is passed to the function 'get_hkdf_params' as a parameter with a narrower
essential type (4 byte)
|
MISRAC2012-RULE_10_3-a-2 |
|
3075: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
3080: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
3083: |
Pointer to void type should not be converted to pointer to object type 'const uint8_t *' in function's argument |
MISRAC2012-RULE_11_5-a-4 |
|
3084: |
Pointer to void type should not be converted to pointer to object type 'const uint8_t *' in function's argument |
MISRAC2012-RULE_11_5-a-4 |
|
3084: |
The variable 'sk' used as the left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
3087: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with a narrower essential type (4 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
3098: |
Pointer to void type should not be converted to pointer to object type 'struct tee_cryp_obj_secret *' |
MISRAC2012-RULE_11_5-a-4 |
|
3099: |
The variable 'ss' used as the left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
3101: |
The argument number '2' (8 byte essential type) is passed to the function 'get_concat_kdf_params' as a parameter with a narrower
essential type (4 byte)
|
MISRAC2012-RULE_10_3-a-2 |
|
3104: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
3109: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
3113: |
Pointer to void type should not be converted to pointer to object type 'const uint8_t *' in function's argument |
MISRAC2012-RULE_11_5-a-4 |
|
3113: |
The variable 'sk' used as the left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
3116: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with a narrower essential type (4 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
3127: |
Pointer to void type should not be converted to pointer to object type 'struct tee_cryp_obj_secret *' |
MISRAC2012-RULE_11_5-a-4 |
|
3128: |
The variable 'ss' used as the left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
3130: |
The argument number '2' (8 byte essential type) is passed to the function 'get_pbkdf2_params' as a parameter with a narrower
essential type (4 byte)
|
MISRAC2012-RULE_10_3-a-2 |
|
3133: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
3138: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
3141: |
Pointer to void type should not be converted to pointer to object type 'const uint8_t *' in function's argument |
MISRAC2012-RULE_11_5-a-4 |
|
3142: |
The argument number '6' (8 byte essential type) is passed to the function 'tee_cryp_pbkdf2' as a parameter with a narrower
essential type (4 byte)
|
MISRAC2012-RULE_10_3-a-2 |
|
3143: |
The variable 'sk' used as the left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
3145: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with a narrower essential type (4 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
3156: |
The variable 'sk' used as the left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
3163: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
3165: |
The argument number '2' (8 byte essential type) is passed to the function 'get_sm2_kep_params' as a parameter with a narrower
essential type (4 byte)
|
MISRAC2012-RULE_10_3-a-2 |
|
3168: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
3173: |
Pointer to void type should not be converted to pointer to object type 'struct ecc_keypair *' in function's argument |
MISRAC2012-RULE_11_5-a-4 |
|
3174: |
Pointer to void type should not be converted to pointer to object type 'struct ecc_keypair *' in function's argument |
MISRAC2012-RULE_11_5-a-4 |
|
3179: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with a narrower essential type (4 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
3202: |
Pointer to void type should not be converted to arithmetic type 'unsigned long' |
MISRAC2012-RULE_11_6-a-2 |
|
3224: |
The argument number '2' ('essentially signed' type) is passed to the function 'vm_check_access_rights' as a parameter with
the 'essentially unsigned' type
|
MISRAC2012-RULE_10_3-b-2 |
|
3226: |
Pointer to void type should not be converted to arithmetic type 'unsigned long' |
MISRAC2012-RULE_11_6-a-2 |
|
3230: |
The argument number '1' (8 byte essential type) is passed to the function 'uref_to_vaddr' as a parameter with a narrower essential
type (4 byte)
|
MISRAC2012-RULE_10_3-a-2 |
|
3240: |
Pointer to void type should not be converted to pointer to object type 'struct tee_cryp_obj_secret *' |
MISRAC2012-RULE_11_5-a-4 |
|
3241: |
The argument number '2' ('essentially unsigned' type) is passed to the function 'crypto_authenc_init' as a parameter with
the 'essentially Enum' type
|
MISRAC2012-RULE_10_3-b-2 |
|
3241: |
The variable 'key' used as the left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
3242: |
Pointer to void type should not be converted to pointer to object type 'const uint8_t *' in function's argument |
MISRAC2012-RULE_11_5-a-4 |
|
3261: |
The argument number '2' ('essentially signed' type) is passed to the function 'vm_check_access_rights' as a parameter with
the 'essentially unsigned' type
|
MISRAC2012-RULE_10_3-b-2 |
|
3263: |
Pointer to void type should not be converted to arithmetic type 'unsigned long' |
MISRAC2012-RULE_11_6-a-2 |
|
3267: |
The argument number '1' (8 byte essential type) is passed to the function 'uref_to_vaddr' as a parameter with a narrower essential
type (4 byte)
|
MISRAC2012-RULE_10_3-a-2 |
|
3277: |
Pointer to void type should not be converted to pointer to object type 'const uint8_t *' in function's argument |
MISRAC2012-RULE_11_5-a-4 |
|
3277: |
The argument number '2' ('essentially unsigned' type) is passed to the function 'crypto_authenc_update_aad' as a parameter
with the 'essentially Enum' type
|
MISRAC2012-RULE_10_3-b-2 |
|
3285: |
Identifiers given in declaration of 'syscall_authenc_update_payload' function (file: 'tee_svc_cryp.h', line: '65') are: 'dest_data,
dest_len' not: 'dst_data, dst_len'
|
MISRAC2012-RULE_8_3-b-2 |
|
3295: |
The argument number '1' (8 byte essential type) is passed to the function 'uref_to_vaddr' as a parameter with a narrower essential
type (4 byte)
|
MISRAC2012-RULE_10_3-a-2 |
|
3306: |
The argument number '2' ('essentially signed' type) is passed to the function 'vm_check_access_rights' as a parameter with
the 'essentially unsigned' type
|
MISRAC2012-RULE_10_3-b-2 |
|
3308: |
Pointer to void type should not be converted to arithmetic type 'unsigned long' |
MISRAC2012-RULE_11_6-a-2 |
|
3317: |
The argument number '2' ('essentially signed' type) is passed to the function 'vm_check_access_rights' as a parameter with
the 'essentially unsigned' type
|
MISRAC2012-RULE_10_3-b-2 |
|
3320: |
Pointer to void type should not be converted to arithmetic type 'unsigned long' |
MISRAC2012-RULE_11_6-a-2 |
|
3326: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
3329: |
Pointer to void type should not be converted to pointer to object type 'const uint8_t *' in function's argument |
MISRAC2012-RULE_11_5-a-4 |
|
3329: |
The argument number '2' ('essentially unsigned' type) is passed to the function 'crypto_authenc_update_payload' as a parameter
with the 'essentially Enum' type
|
MISRAC2012-RULE_10_3-b-2 |
|
3330: |
Pointer to void type should not be converted to pointer to object type 'uint8_t *' in function's argument |
MISRAC2012-RULE_11_5-a-4 |
|
3332: |
The operands of a logical '||' in function 'syscall_authenc_update_payload' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
3332: |
The operands of a logical '||' in function 'syscall_authenc_update_payload' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
3342: |
Identifiers given in declaration of 'syscall_authenc_enc_final' function (file: 'tee_svc_cryp.h', line: '68') are: 'dest_data,
dest_len' not: 'dst_data, dst_len'
|
MISRAC2012-RULE_8_3-b-2 |
|
3354: |
The argument number '1' (8 byte essential type) is passed to the function 'uref_to_vaddr' as a parameter with a narrower essential
type (4 byte)
|
MISRAC2012-RULE_10_3-a-2 |
|
3368: |
The argument number '2' ('essentially signed' type) is passed to the function 'vm_check_access_rights' as a parameter with
the 'essentially unsigned' type
|
MISRAC2012-RULE_10_3-b-2 |
|
3370: |
Pointer to void type should not be converted to arithmetic type 'unsigned long' |
MISRAC2012-RULE_11_6-a-2 |
|
3382: |
The argument number '2' ('essentially signed' type) is passed to the function 'vm_check_access_rights' as a parameter with
the 'essentially unsigned' type
|
MISRAC2012-RULE_10_3-b-2 |
|
3385: |
Pointer to void type should not be converted to arithmetic type 'unsigned long' |
MISRAC2012-RULE_11_6-a-2 |
|
3392: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
3400: |
The argument number '2' ('essentially signed' type) is passed to the function 'vm_check_access_rights' as a parameter with
the 'essentially unsigned' type
|
MISRAC2012-RULE_10_3-b-2 |
|
3403: |
Pointer to void type should not be converted to arithmetic type 'unsigned long' |
MISRAC2012-RULE_11_6-a-2 |
|
3407: |
Pointer to void type should not be converted to pointer to object type 'const uint8_t *' in function's argument |
MISRAC2012-RULE_11_5-a-4 |
|
3407: |
Pointer to void type should not be converted to pointer to object type 'uint8_t *' in function's argument |
MISRAC2012-RULE_11_5-a-4 |
|
3408: |
Pointer to void type should not be converted to pointer to object type 'uint8_t *' in function's argument |
MISRAC2012-RULE_11_5-a-4 |
|
3411: |
The operands of a logical '||' in function 'syscall_authenc_enc_final' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
3411: |
The operands of a logical '||' in function 'syscall_authenc_enc_final' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
3428: |
Identifiers given in declaration of 'syscall_authenc_dec_final' function (file: 'tee_svc_cryp.h', line: '71') are: 'dest_data,
dest_len' not: 'dst_data, dst_len'
|
MISRAC2012-RULE_8_3-b-2 |
|
3438: |
The argument number '1' (8 byte essential type) is passed to the function 'uref_to_vaddr' as a parameter with a narrower essential
type (4 byte)
|
MISRAC2012-RULE_10_3-a-2 |
|
3452: |
The argument number '2' ('essentially signed' type) is passed to the function 'vm_check_access_rights' as a parameter with
the 'essentially unsigned' type
|
MISRAC2012-RULE_10_3-b-2 |
|
3454: |
Pointer to void type should not be converted to arithmetic type 'unsigned long' |
MISRAC2012-RULE_11_6-a-2 |
|
3466: |
The argument number '2' ('essentially signed' type) is passed to the function 'vm_check_access_rights' as a parameter with
the 'essentially unsigned' type
|
MISRAC2012-RULE_10_3-b-2 |
|
3469: |
Pointer to void type should not be converted to arithmetic type 'unsigned long' |
MISRAC2012-RULE_11_6-a-2 |
|
3476: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
3480: |
Pointer to void type should not be converted to arithmetic type 'unsigned long' |
MISRAC2012-RULE_11_6-a-2 |
|
3484: |
Pointer to void type should not be converted to pointer to object type 'const uint8_t *' in function's argument |
MISRAC2012-RULE_11_5-a-4 |
|
3484: |
Pointer to void type should not be converted to pointer to object type 'uint8_t *' in function's argument |
MISRAC2012-RULE_11_5-a-4 |
|
3485: |
Pointer to void type should not be converted to pointer to object type 'const uint8_t *' in function's argument |
MISRAC2012-RULE_11_5-a-4 |
|
3488: |
The operands of a logical '||' in function 'syscall_authenc_dec_final' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
3488: |
The operands of a logical '||' in function 'syscall_authenc_dec_final' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
3489: |
The operands of a logical '&&' in function 'syscall_authenc_dec_final' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
3504: |
Potential macro 'INT_MAX' used as '1' parameter of potential macro 'assert' |
MISRAC2012-RULE_20_12-a-2 |
|
3509: |
The expression of the 'essentially unsigned' type is returned from function 'pkcs1_get_salt_len' with the 'essentially signed'
type
|
MISRAC2012-RULE_10_3-b-2 |
|
3517: |
The expression of the 'essentially unsigned' type is returned from function 'pkcs1_get_salt_len' with the 'essentially signed'
type
|
MISRAC2012-RULE_10_3-b-2 |
|
3520: |
Identifiers given in declaration of 'syscall_asymm_operate' function (file: 'tee_svc_cryp.h', line: '75') are: 'dest_data,
dest_len' not: 'dst_data, dst_len'
|
MISRAC2012-RULE_8_3-b-2 |
|
3537: |
The argument number '1' (8 byte essential type) is passed to the function 'uref_to_vaddr' as a parameter with a narrower essential
type (4 byte)
|
MISRAC2012-RULE_10_3-a-2 |
|
3542: |
The argument number '2' ('essentially signed' type) is passed to the function 'vm_check_access_rights' as a parameter with
the 'essentially unsigned' type
|
MISRAC2012-RULE_10_3-b-2 |
|
3544: |
Pointer to void type should not be converted to arithmetic type 'unsigned long' |
MISRAC2012-RULE_11_6-a-2 |
|
3553: |
The argument number '2' ('essentially signed' type) is passed to the function 'vm_check_access_rights' as a parameter with
the 'essentially unsigned' type
|
MISRAC2012-RULE_10_3-b-2 |
|
3556: |
Pointer to void type should not be converted to arithmetic type 'unsigned long' |
MISRAC2012-RULE_11_6-a-2 |
|
3565: |
'malloc' function should not be used |
MISRAC2012-RULE_21_3-a-2 |
|
3565: |
'malloc' function should not be used |
MISRAC2012-DIR_4_12-a-2 |
|
3565: |
Pointer to void type should not be converted to pointer to object type 'TEE_Attribute *' |
MISRAC2012-RULE_11_5-a-4 |
|
3568: |
The argument number '3' (8 byte essential type) is passed to the function 'copy_in_attrs' as a parameter with a narrower essential
type (4 byte)
|
MISRAC2012-RULE_10_3-a-2 |
|
3570: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
3574: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
3577: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
3583: |
Pointer to void type should not be converted to pointer to object type 'const uint8_t *' in function's argument |
MISRAC2012-RULE_11_5-a-4 |
|
3583: |
Pointer to void type should not be converted to pointer to object type 'struct rsa_public_key *' in function's argument |
MISRAC2012-RULE_11_5-a-4 |
|
3584: |
Pointer to void type should not be converted to pointer to object type 'uint8_t *' in function's argument |
MISRAC2012-RULE_11_5-a-4 |
|
3587: |
Pointer to void type should not be converted to pointer to object type 'const uint8_t *' in function's argument |
MISRAC2012-RULE_11_5-a-4 |
|
3587: |
Pointer to void type should not be converted to pointer to object type 'struct rsa_keypair *' in function's argument |
MISRAC2012-RULE_11_5-a-4 |
|
3588: |
Pointer to void type should not be converted to pointer to object type 'uint8_t *' in function's argument |
MISRAC2012-RULE_11_5-a-4 |
|
3601: |
Pointer to void type should not be converted to pointer to object type 'const uint8_t *' in function's argument |
MISRAC2012-RULE_11_5-a-4 |
|
3601: |
Pointer to void type should not be converted to pointer to object type 'struct ecc_public_key *' in function's argument |
MISRAC2012-RULE_11_5-a-4 |
|
3602: |
Pointer to void type should not be converted to pointer to object type 'uint8_t *' in function's argument |
MISRAC2012-RULE_11_5-a-4 |
|
3605: |
Pointer to void type should not be converted to pointer to object type 'const uint8_t *' in function's argument |
MISRAC2012-RULE_11_5-a-4 |
|
3605: |
Pointer to void type should not be converted to pointer to object type 'struct ecc_keypair *' in function's argument |
MISRAC2012-RULE_11_5-a-4 |
|
3606: |
Pointer to void type should not be converted to pointer to object type 'uint8_t *' in function's argument |
MISRAC2012-RULE_11_5-a-4 |
|
3628: |
Pointer to void type should not be converted to pointer to object type 'struct rsa_public_key *' in function's argument |
MISRAC2012-RULE_11_5-a-4 |
|
3629: |
Pointer to void type should not be converted to pointer to object type 'const uint8_t *' in function's argument |
MISRAC2012-RULE_11_5-a-4 |
|
3630: |
Pointer to void type should not be converted to pointer to object type 'const uint8_t *' in function's argument |
MISRAC2012-RULE_11_5-a-4 |
|
3631: |
Pointer to void type should not be converted to pointer to object type 'uint8_t *' in function's argument |
MISRAC2012-RULE_11_5-a-4 |
|
3634: |
Pointer to void type should not be converted to pointer to object type 'const uint8_t *' in function's argument |
MISRAC2012-RULE_11_5-a-4 |
|
3634: |
Pointer to void type should not be converted to pointer to object type 'struct rsa_keypair *' in function's argument |
MISRAC2012-RULE_11_5-a-4 |
|
3635: |
Pointer to void type should not be converted to pointer to object type 'const uint8_t *' in function's argument |
MISRAC2012-RULE_11_5-a-4 |
|
3635: |
Pointer to void type should not be converted to pointer to object type 'uint8_t *' in function's argument |
MISRAC2012-RULE_11_5-a-4 |
|
3659: |
The argument number '2' (8 byte essential type) is passed to the function 'pkcs1_get_salt_len' as a parameter with a narrower
essential type (4 byte)
|
MISRAC2012-RULE_10_3-a-2 |
|
3660: |
Pointer to void type should not be converted to pointer to object type 'struct rsa_keypair *' in function's argument |
MISRAC2012-RULE_11_5-a-4 |
|
3661: |
Pointer to void type should not be converted to pointer to object type 'const uint8_t *' in function's argument |
MISRAC2012-RULE_11_5-a-4 |
|
3661: |
Pointer to void type should not be converted to pointer to object type 'uint8_t *' in function's argument |
MISRAC2012-RULE_11_5-a-4 |
|
3668: |
Pointer to void type should not be converted to pointer to object type 'const uint8_t *' in function's argument |
MISRAC2012-RULE_11_5-a-4 |
|
3668: |
Pointer to void type should not be converted to pointer to object type 'struct dsa_keypair *' in function's argument |
MISRAC2012-RULE_11_5-a-4 |
|
3669: |
Pointer to void type should not be converted to pointer to object type 'uint8_t *' in function's argument |
MISRAC2012-RULE_11_5-a-4 |
|
3677: |
Pointer to void type should not be converted to pointer to object type 'const uint8_t *' in function's argument |
MISRAC2012-RULE_11_5-a-4 |
|
3677: |
Pointer to void type should not be converted to pointer to object type 'struct ecc_keypair *' in function's argument |
MISRAC2012-RULE_11_5-a-4 |
|
3678: |
Pointer to void type should not be converted to pointer to object type 'uint8_t *' in function's argument |
MISRAC2012-RULE_11_5-a-4 |
|
3688: |
The operands of a logical '||' in function 'syscall_asymm_operate' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
3688: |
The operands of a logical '||' in function 'syscall_asymm_operate' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
3713: |
The argument number '1' (8 byte essential type) is passed to the function 'uref_to_vaddr' as a parameter with a narrower essential
type (4 byte)
|
MISRAC2012-RULE_10_3-a-2 |
|
3721: |
The argument number '2' ('essentially signed' type) is passed to the function 'vm_check_access_rights' as a parameter with
the 'essentially unsigned' type
|
MISRAC2012-RULE_10_3-b-2 |
|
3723: |
Pointer to void type should not be converted to arithmetic type 'unsigned long' |
MISRAC2012-RULE_11_6-a-2 |
|
3728: |
The argument number '2' ('essentially signed' type) is passed to the function 'vm_check_access_rights' as a parameter with
the 'essentially unsigned' type
|
MISRAC2012-RULE_10_3-b-2 |
|
3730: |
Pointer to void type should not be converted to arithmetic type 'unsigned long' |
MISRAC2012-RULE_11_6-a-2 |
|
3739: |
'malloc' function should not be used |
MISRAC2012-RULE_21_3-a-2 |
|
3739: |
'malloc' function should not be used |
MISRAC2012-DIR_4_12-a-2 |
|
3739: |
Pointer to void type should not be converted to pointer to object type 'TEE_Attribute *' |
MISRAC2012-RULE_11_5-a-4 |
|
3742: |
The argument number '3' (8 byte essential type) is passed to the function 'copy_in_attrs' as a parameter with a narrower essential
type (4 byte)
|
MISRAC2012-RULE_10_3-a-2 |
|
3744: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
3748: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
3751: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
3765: |
The argument number '2' (8 byte essential type) is passed to the function 'pkcs1_get_salt_len' as a parameter with a narrower
essential type (4 byte)
|
MISRAC2012-RULE_10_3-a-2 |
|
3768: |
Pointer to void type should not be converted to pointer to object type 'struct rsa_public_key *' in function's argument |
MISRAC2012-RULE_11_5-a-4 |
|
3769: |
Pointer to void type should not be converted to pointer to object type 'const uint8_t *' in function's argument |
MISRAC2012-RULE_11_5-a-4 |
|
3769: |
Pointer to void type should not be converted to pointer to object type 'const uint8_t *' in function's argument |
MISRAC2012-RULE_11_5-a-4 |
|
3780: |
Pointer to void type should not be converted to pointer to object type 'struct dsa_public_key *' |
MISRAC2012-RULE_11_5-a-4 |
|
3811: |
Pointer to void type should not be converted to pointer to object type 'const uint8_t *' in function's argument |
MISRAC2012-RULE_11_5-a-4 |
|
3811: |
Pointer to void type should not be converted to pointer to object type 'struct dsa_public_key *' in function's argument |
MISRAC2012-RULE_11_5-a-4 |
|
3812: |
Pointer to void type should not be converted to pointer to object type 'const uint8_t *' in function's argument |
MISRAC2012-RULE_11_5-a-4 |
|
3817: |
Pointer to void type should not be converted to pointer to object type 'const uint8_t *' in function's argument |
MISRAC2012-RULE_11_5-a-4 |
|
3817: |
Pointer to void type should not be converted to pointer to object type 'struct ecc_public_key *' in function's argument |
MISRAC2012-RULE_11_5-a-4 |
|
3818: |
Pointer to void type should not be converted to pointer to object type 'const uint8_t *' in function's argument |
MISRAC2012-RULE_11_5-a-4 |
|
3821: |
Every non empty default clause in a switch statement shall be terminated with a break statement |
MISRAC2012-RULE_16_1-d-2 |
|
3821: |
Every non empty default clause in a switch statement shall be terminated with a break statement |
MISRAC2012-RULE_16_3-b-2 |
| /optee_os_MISRA/optee_os_ruchi393_core/tee/tee_svc_storage.c |
|
74: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
75: |
Pointer to object type 'struct tee_storage_enum *' should not be converted to integral type 'unsigned long' |
MISRAC2012-RULE_11_4-a-4 |
|
86: |
The operands of a logical '||' in function 'tee_svc_close_enum' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
86: |
The operands of a logical '||' in function 'tee_svc_close_enum' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
91: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
97: |
'free' function should not be used |
MISRAC2012-RULE_21_3-a-2 |
|
97: |
'free' function should not be used |
MISRAC2012-DIR_4_12-a-2 |
|
106: |
Pointer to void type should not be converted to pointer to object type 'uint8_t *' |
MISRAC2012-RULE_11_5-a-4 |
|
108: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with a narrower essential type (4 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
109: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
119: |
The '++' operator should cause the only side effect in an expression |
MISRAC2012-RULE_13_3-a-4 |
|
119: |
The expression of the 'essentially character' type is assigned to an object with the 'essentially unsigned' type |
MISRAC2012-RULE_10_3-b-2 |
|
121: |
The argument number '3' (8 byte essential type) is passed to the function 'tee_b2hs' as a parameter with a narrower essential
type (4 byte)
|
MISRAC2012-RULE_10_3-a-2 |
|
122: |
The '++' operator should cause the only side effect in an expression |
MISRAC2012-RULE_13_3-a-4 |
|
122: |
The expression of the 'essentially character' type is assigned to an object with the 'essentially unsigned' type |
MISRAC2012-RULE_10_3-b-2 |
|
125: |
The '++' operator should cause the only side effect in an expression |
MISRAC2012-RULE_13_3-a-4 |
|
125: |
The expression of the 'essentially character' type is assigned to an object with the 'essentially unsigned' type |
MISRAC2012-RULE_10_3-b-2 |
|
127: |
Pointer to void type should not be converted to pointer to object type 'uint8_t *' in function's argument |
MISRAC2012-RULE_11_5-a-4 |
|
127: |
The variable 'file' used as the left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
127: |
Unused function's "tee_b2hs" return value |
MISRAC2012-RULE_17_7-a-2 |
|
135: |
The identifier 'tee_svc_storage_create_filename_dfh' has the same first 31 characters of the name as the identifier 'tee_svc_storage_create_filename'
defined in the 'tee_svc_storage.h' file in line '71'
|
MISRAC2012-RULE_5_1-a-2 |
|
138: |
Pointer to void type should not be converted to pointer to object type 'char *' |
MISRAC2012-RULE_11_5-a-4 |
|
151: |
The variable 'file' used as the left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
159: |
Pointer to void type should not be converted to pointer to object type 'uint8_t *' |
MISRAC2012-RULE_11_5-a-4 |
|
160: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with a narrower essential type (4 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
160: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
165: |
The expression of the 'essentially character' type is assigned to an object with the 'essentially unsigned' type |
MISRAC2012-RULE_10_3-b-2 |
|
166: |
Cast from 'const TEE_UUID *' removes 'const' qualifier |
MISRAC2012-RULE_11_8-a-2 |
|
166: |
The argument number '3' (8 byte essential type) is passed to the function 'tee_b2hs' as a parameter with a narrower essential
type (4 byte)
|
MISRAC2012-RULE_10_3-a-2 |
|
166: |
The variable 'dir' used as the left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
166: |
Unused function's "tee_b2hs" return value |
MISRAC2012-RULE_17_7-a-2 |
|
174: |
Unused function value (function called through expression) |
MISRAC2012-RULE_17_7-a-2 |
|
193: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
201: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
206: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
210: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
215: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
220: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
224: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
225: |
'malloc' function should not be used |
MISRAC2012-RULE_21_3-a-2 |
|
225: |
'malloc' function should not be used |
MISRAC2012-DIR_4_12-a-2 |
|
228: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
236: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
237: |
The operands of a logical '||' in function 'tee_svc_storage_read_head' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
237: |
The operands of a logical '||' in function 'tee_svc_storage_read_head' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
239: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
240: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
245: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
247: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with a narrower essential type (4 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
254: |
'free' function should not be used |
MISRAC2012-RULE_21_3-a-2 |
|
254: |
'free' function should not be used |
MISRAC2012-DIR_4_12-a-2 |
|
263: |
The expression of the 'essentially signed' type is assigned to an object with the 'essentially unsigned' type |
MISRAC2012-RULE_10_3-b-2 |
|
269: |
The argument number '1' (8 byte essential type) is passed to the function 'tee_svc_storage_file_ops' as a parameter with a
narrower essential type (4 byte)
|
MISRAC2012-RULE_10_3-a-2 |
|
277: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
282: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
287: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
291: |
Pointer to void type should not be converted to arithmetic type 'unsigned long' |
MISRAC2012-RULE_11_6-a-2 |
|
293: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
295: |
Pointer to void type should not be converted to pointer to object type 'TEE_UUID *' in function's argument |
MISRAC2012-RULE_11_5-a-4 |
|
296: |
The argument number '3' (8 byte essential type) is passed to the function 'tee_pobj_get' as a parameter with a narrower essential
type (4 byte)
|
MISRAC2012-RULE_10_3-a-2 |
|
296: |
The argument number '4' (8 byte essential type) is passed to the function 'tee_pobj_get' as a parameter with a narrower essential
type (4 byte)
|
MISRAC2012-RULE_10_3-a-2 |
|
299: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
303: |
Unused function's "tee_pobj_release" return value |
MISRAC2012-RULE_17_7-a-2 |
|
305: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
308: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with a narrower essential type (4 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
317: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
319: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
324: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
326: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
333: |
The operands of a logical '||' in function 'syscall_storage_obj_open' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
333: |
The operands of a logical '||' in function 'syscall_storage_obj_open' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
335: |
The operands of a logical '&&' in function 'syscall_storage_obj_open' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
336: |
Unused function's "tee_svc_storage_remove_corrupt_obj" return value |
MISRAC2012-RULE_17_7-a-2 |
|
339: |
'free' function should not be used |
MISRAC2012-RULE_21_3-a-2 |
|
339: |
'free' function should not be used |
MISRAC2012-DIR_4_12-a-2 |
|
345: |
Pass parameter "attr_o" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
345: |
Pass parameter "data" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
354: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
357: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
360: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
366: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
368: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
369: |
'malloc' function should not be used |
MISRAC2012-RULE_21_3-a-2 |
|
369: |
'malloc' function should not be used |
MISRAC2012-DIR_4_12-a-2 |
|
374: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
379: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
385: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with a narrower essential type (4 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
398: |
'free' function should not be used |
MISRAC2012-RULE_21_3-a-2 |
|
398: |
'free' function should not be used |
MISRAC2012-DIR_4_12-a-2 |
|
407: |
The expression of the 'essentially signed' type is assigned to an object with the 'essentially unsigned' type |
MISRAC2012-RULE_10_3-b-2 |
|
414: |
The argument number '1' (8 byte essential type) is passed to the function 'tee_svc_storage_file_ops' as a parameter with a
narrower essential type (4 byte)
|
MISRAC2012-RULE_10_3-a-2 |
|
422: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
432: |
Pointer to void type should not be converted to arithmetic type 'unsigned long' |
MISRAC2012-RULE_11_6-a-2 |
|
434: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
436: |
Pointer to void type should not be converted to pointer to object type 'TEE_UUID *' in function's argument |
MISRAC2012-RULE_11_5-a-4 |
|
437: |
The argument number '3' (8 byte essential type) is passed to the function 'tee_pobj_get' as a parameter with a narrower essential
type (4 byte)
|
MISRAC2012-RULE_10_3-a-2 |
|
437: |
The argument number '4' (8 byte essential type) is passed to the function 'tee_pobj_get' as a parameter with a narrower essential
type (4 byte)
|
MISRAC2012-RULE_10_3-a-2 |
|
440: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
443: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
444: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
445: |
The expression of the 'essentially signed' type is assigned to an object with the 'essentially unsigned' type |
MISRAC2012-RULE_10_3-b-2 |
|
449: |
Pointer to void type should not be converted to arithmetic type 'unsigned long' |
MISRAC2012-RULE_11_6-a-2 |
|
452: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
455: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
462: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
465: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with a narrower essential type (4 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
470: |
The argument number '1' (8 byte essential type) is passed to the function 'uref_to_vaddr' as a parameter with a narrower essential
type (4 byte)
|
MISRAC2012-RULE_10_3-a-2 |
|
472: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
476: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
480: |
The argument number '2' ('essentially unsigned' type) is passed to the function 'tee_svc_storage_init_file' as a parameter
with the 'essentially Boolean' type
|
MISRAC2012-RULE_10_3-b-2 |
|
481: |
The argument number '5' (8 byte essential type) is passed to the function 'tee_svc_storage_init_file' as a parameter with
a narrower essential type (4 byte)
|
MISRAC2012-RULE_10_3-a-2 |
|
483: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
490: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
500: |
The operands of a logical '||' in function 'syscall_storage_obj_create' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
500: |
The operands of a logical '||' in function 'syscall_storage_obj_create' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
502: |
The operands of a logical '&&' in function 'syscall_storage_obj_create' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
503: |
Unused function value (function called through expression) |
MISRAC2012-RULE_17_7-a-2 |
|
504: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
508: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
509: |
Unused function's "tee_pobj_release" return value |
MISRAC2012-RULE_17_7-a-2 |
| +
|
521: |
Value of "len" is never used |
MISRAC2012-RULE_2_2-b-2 |
| |
|
Point where value is declared
Point where value is declared
tee_svc_storage.c (521): size_t len = 0; |
|
|
523: |
The argument number '1' (8 byte essential type) is passed to the function 'uref_to_vaddr' as a parameter with a narrower essential
type (4 byte)
|
MISRAC2012-RULE_10_3-a-2 |
|
530: |
The operands of a logical '||' in function 'syscall_storage_obj_del' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
530: |
The operands of a logical '||' in function 'syscall_storage_obj_del' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
533: |
Unreachable code inside 'if' block |
MISRAC2012-RULE_2_1-c-2 |
|
535: |
'calloc' function should not be used |
MISRAC2012-RULE_21_3-a-2 |
|
535: |
'calloc' function should not be used |
MISRAC2012-DIR_4_12-a-2 |
|
535: |
Pointer to void type should not be converted to pointer to object type 'uint8_t *' |
MISRAC2012-RULE_11_5-a-4 |
|
543: |
'free' function should not be used |
MISRAC2012-RULE_21_3-a-2 |
|
543: |
'free' function should not be used |
MISRAC2012-DIR_4_12-a-2 |
|
567: |
The argument number '1' (8 byte essential type) is passed to the function 'uref_to_vaddr' as a parameter with a narrower essential
type (4 byte)
|
MISRAC2012-RULE_10_3-a-2 |
|
573: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
578: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
581: |
The operands of a logical '||' in function 'syscall_storage_obj_rename' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
581: |
The operands of a logical '||' in function 'syscall_storage_obj_rename' should be parenthesized |
MISRAC2012-RULE_12_1-b-4 |
|
583: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
587: |
Pointer to void type should not be converted to arithmetic type 'unsigned long' |
MISRAC2012-RULE_11_6-a-2 |
|
589: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
593: |
Pointer to void type should not be converted to pointer to object type 'TEE_UUID *' in function's argument |
MISRAC2012-RULE_11_5-a-4 |
|
594: |
The argument number '3' (8 byte essential type) is passed to the function 'tee_pobj_get' as a parameter with a narrower essential
type (4 byte)
|
MISRAC2012-RULE_10_3-a-2 |
|
597: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
601: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
602: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
604: |
The argument number '3' (8 byte essential type) is passed to the function 'tee_pobj_rename' as a parameter with a narrower
essential type (4 byte)
|
MISRAC2012-RULE_10_3-a-2 |
|
607: |
Unused function's "tee_pobj_release" return value |
MISRAC2012-RULE_17_7-a-2 |
|
609: |
'free' function should not be used |
MISRAC2012-RULE_21_3-a-2 |
|
609: |
'free' function should not be used |
MISRAC2012-DIR_4_12-a-2 |
|
610: |
'free' function should not be used |
MISRAC2012-RULE_21_3-a-2 |
|
610: |
'free' function should not be used |
MISRAC2012-DIR_4_12-a-2 |
|
624: |
'malloc' function should not be used |
MISRAC2012-RULE_21_3-a-2 |
|
624: |
'malloc' function should not be used |
MISRAC2012-DIR_4_12-a-2 |
|
624: |
Pointer to void type should not be converted to pointer to object type 'struct tee_storage_enum *' |
MISRAC2012-RULE_11_5-a-4 |
|
643: |
The argument number '1' (8 byte essential type) is passed to the function 'uref_to_vaddr' as a parameter with a narrower essential
type (4 byte)
|
MISRAC2012-RULE_10_3-a-2 |
|
657: |
The argument number '1' (8 byte essential type) is passed to the function 'uref_to_vaddr' as a parameter with a narrower essential
type (4 byte)
|
MISRAC2012-RULE_10_3-a-2 |
|
661: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
678: |
The argument number '1' (8 byte essential type) is passed to the function 'tee_svc_storage_file_ops' as a parameter with a
narrower essential type (4 byte)
|
MISRAC2012-RULE_10_3-a-2 |
|
681: |
The argument number '1' (8 byte essential type) is passed to the function 'uref_to_vaddr' as a parameter with a narrower essential
type (4 byte)
|
MISRAC2012-RULE_10_3-a-2 |
|
685: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
709: |
The argument number '1' (8 byte essential type) is passed to the function 'uref_to_vaddr' as a parameter with a narrower essential
type (4 byte)
|
MISRAC2012-RULE_10_3-a-2 |
|
711: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
715: |
Pointer to object type 'TEE_ObjectInfo *' should not be converted to integral type 'unsigned long' |
MISRAC2012-RULE_11_4-a-4 |
|
717: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
720: |
Pointer to void type should not be converted to arithmetic type 'unsigned long' |
MISRAC2012-RULE_11_6-a-2 |
|
722: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
726: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
731: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
736: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
739: |
The argument number '3' (8 byte essential type) is passed to the function 'tee_pobj_get' as a parameter with a narrower essential
type (4 byte)
|
MISRAC2012-RULE_10_3-a-2 |
|
741: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
742: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
749: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
751: |
Unused function's "memcpy" return value |
MISRAC2012-RULE_17_7-a-2 |
|
752: |
Unused function's "memcpy" return value |
MISRAC2012-RULE_17_7-a-2 |
|
758: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
759: |
Test of a value against zero should be made explicit |
MISRAC2012-RULE_14_4-a-2 |
|
761: |
Unused function's "tee_pobj_release" return value |
MISRAC2012-RULE_17_7-a-2 |
|
780: |
The argument number '1' (8 byte essential type) is passed to the function 'uref_to_vaddr' as a parameter with a narrower essential
type (4 byte)
|
MISRAC2012-RULE_10_3-a-2 |
|
782: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
786: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
791: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
797: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
802: |
Pointer to void type should not be converted to arithmetic type 'unsigned long' |
MISRAC2012-RULE_11_6-a-2 |
|
804: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
809: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
815: |
Unused function's "tee_svc_storage_remove_corrupt_obj" return value |
MISRAC2012-RULE_17_7-a-2 |
|
817: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
820: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with a narrower essential type (4 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
828: |
Pass parameter "data" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
836: |
The argument number '1' (8 byte essential type) is passed to the function 'uref_to_vaddr' as a parameter with a narrower essential
type (4 byte)
|
MISRAC2012-RULE_10_3-a-2 |
|
838: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
842: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
847: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
853: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
858: |
Pointer to void type should not be converted to arithmetic type 'unsigned long' |
MISRAC2012-RULE_11_6-a-2 |
|
860: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
864: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
868: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
870: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with a narrower essential type (4 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
886: |
The argument number '1' (8 byte essential type) is passed to the function 'uref_to_vaddr' as a parameter with a narrower essential
type (4 byte)
|
MISRAC2012-RULE_10_3-a-2 |
|
888: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
892: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
897: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
902: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
907: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
911: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
916: |
The expression of the 'unsigned long' essential type (8 byte) is assigned to an object with a narrower essential type (4 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
939: |
The argument number '1' (8 byte essential type) is passed to the function 'uref_to_vaddr' as a parameter with a narrower essential
type (4 byte)
|
MISRAC2012-RULE_10_3-a-2 |
|
947: |
The expression of the 'essentially Enum' type in a switch statement's case label is converted to the 'essentially unsigned'
type
|
MISRAC2012-RULE_10_3-b-2 |
|
950: |
The expression of the 'essentially Enum' type in a switch statement's case label is converted to the 'essentially unsigned'
type
|
MISRAC2012-RULE_10_3-b-2 |
|
954: |
The expression of the 'essentially Enum' type in a switch statement's case label is converted to the 'essentially unsigned'
type
|
MISRAC2012-RULE_10_3-b-2 |
|
970: |
The expression of the 'essentially signed' type is assigned to an object with the 'essentially unsigned' type |
MISRAC2012-RULE_10_3-b-2 |
|
980: |
'while' statement in a function 'tee_svc_storage_close_all_enum' should be followed by a block |
MISRAC2012-RULE_15_6-a-2 |
|
981: |
Unused function's "tee_svc_close_enum" return value |
MISRAC2012-RULE_17_7-a-2 |
| /optee_os_MISRA/optee_os_ruchi393_core/tee/tee_ta_enc_manager.c |
|
25: |
Do not use the 'goto' statement |
MISRAC2012-RULE_15_1-a-4 |
|
28: |
The left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
39: |
Pass parameter "src" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
53: |
Pass parameter "ehdr" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
54: |
Pass parameter "src" with const specifier |
MISRAC2012-RULE_8_13-a-4 |
|
60: |
Pointer to object type 'struct shdr_encrypted_ta *' is cast to pointer to different object type 'struct shdr_encrypted_ta
*'
|
MISRAC2012-RULE_11_3-a-2 |
|
60: |
Reserved name '_x' used |
MISRAC2012-RULE_21_2-a-2 |
|
60: |
The left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
60: |
The left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
| /optee_os_MISRA/optee_os_ruchi393_core/tee/tee_time_generic.c |
|
28: |
The first argument to the function 'memcmp()' is a pointer to an inappropriate type 'const TEE_UUID' |
MISRAC2012-RULE_21_16-a-2 |
|
28: |
The second argument to the function 'memcmp()' is a pointer to an inappropriate type 'TEE_UUID' |
MISRAC2012-RULE_21_16-a-2 |
|
45: |
The first argument to the function 'memcmp()' is a pointer to an inappropriate type 'const TEE_UUID' |
MISRAC2012-RULE_21_16-a-2 |
|
45: |
The second argument to the function 'memcmp()' is a pointer to an inappropriate type 'TEE_UUID' |
MISRAC2012-RULE_21_16-a-2 |
|
54: |
'realloc' function should not be used |
MISRAC2012-RULE_21_3-a-2 |
|
54: |
'realloc' function should not be used |
MISRAC2012-DIR_4_12-a-2 |
|
54: |
Pointer to void type should not be converted to pointer to object type 'struct tee_ta_time_offs *' |
MISRAC2012-RULE_11_5-a-4 |
|
65: |
Reserved name 'time' used |
MISRAC2012-RULE_21_2-b-2 |
|
65: |
Reserved name 'time' used |
MISRAC2012-RULE_21_2-c-2 |
|
88: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
99: |
Reserved name 'time' used |
MISRAC2012-RULE_21_2-b-2 |
|
99: |
Reserved name 'time' used |
MISRAC2012-RULE_21_2-c-2 |
|
114: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
117: |
Use parentheses when different operators are used in expression |
MISRAC2012-RULE_12_1-a-4 |
|
134: |
'while' statement in a function 'tee_time_busy_wait' should be followed by a block |
MISRAC2012-RULE_15_6-a-2 |
| /optee_os_MISRA/optee_os_ruchi393_core/tee/uuid.c |
|
10: |
Identifiers given in declaration of 'tee_uuid_to_octets' function (file: 'uuid.h', line: '17') are: 'dst, src' not: 'd, s' |
MISRAC2012-RULE_8_3-b-2 |
|
12: |
The expression of the 'unsigned int' essential type (4 byte) is assigned to an object with a narrower essential type (1 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
13: |
The expression of the 'unsigned int' essential type (4 byte) is assigned to an object with a narrower essential type (1 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
14: |
The expression of the 'unsigned int' essential type (4 byte) is assigned to an object with a narrower essential type (1 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
15: |
The expression of the 'unsigned int' essential type (4 byte) is assigned to an object with a narrower essential type (1 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
16: |
The expression of the 'unsigned short' essential type (2 byte) is assigned to an object with a narrower essential type (1
byte)
|
MISRAC2012-RULE_10_3-a-2 |
|
17: |
The expression of the 'unsigned short' essential type (2 byte) is assigned to an object with a narrower essential type (1
byte)
|
MISRAC2012-RULE_10_3-a-2 |
|
18: |
The expression of the 'unsigned short' essential type (2 byte) is assigned to an object with a narrower essential type (1
byte)
|
MISRAC2012-RULE_10_3-a-2 |
|
19: |
The expression of the 'unsigned short' essential type (2 byte) is assigned to an object with a narrower essential type (1
byte)
|
MISRAC2012-RULE_10_3-a-2 |
|
20: |
The variable 'd' used as the left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
20: |
Unused function's "memcpy" return value |
MISRAC2012-RULE_17_7-a-2 |
|
23: |
Identifiers given in declaration of 'tee_uuid_from_octets' function (file: 'uuid.h', line: '24') are: 'dst, src' not: 'd,
s'
|
MISRAC2012-RULE_8_3-b-2 |
|
27: |
The expression of the 'unsigned int' essential type (4 byte) is assigned to an object with a narrower essential type (2 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
28: |
The expression of the 'unsigned int' essential type (4 byte) is assigned to an object with a narrower essential type (2 byte) |
MISRAC2012-RULE_10_3-a-2 |
|
29: |
The variable 's' used as the left hand side operand of the '+' operator has a pointer type |
MISRAC2012-RULE_18_4-a-4 |
|
29: |
Unused function's "memcpy" return value |
MISRAC2012-RULE_17_7-a-2 |